From: Dmitry Belyavskiy Date: Wed, 11 Sep 2024 14:02:14 +0000 (+0200) Subject: EVP_get_default_properties - implementation X-Git-Tag: openssl-3.5.0-alpha1~1116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54fb2fd0131ee6e7792bf7a65a89e090e28d4bd6;p=thirdparty%2Fopenssl.git EVP_get_default_properties - implementation Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/25434) --- diff --git a/crypto/evp/evp_fetch.c b/crypto/evp/evp_fetch.c index 2067c4062f8..408b3897c99 100644 --- a/crypto/evp/evp_fetch.c +++ b/crypto/evp/evp_fetch.c @@ -581,6 +581,11 @@ char *evp_get_global_properties_str(OSSL_LIB_CTX *libctx, int loadconfig) return propstr; } +char *EVP_get1_default_properties(OSSL_LIB_CTX *libctx) +{ + return evp_get_global_properties_str(libctx, ossl_lib_ctx_is_global_default(libctx)); +} + struct filter_data_st { int operation_id; void (*user_fn)(void *method, void *arg); diff --git a/include/openssl/evp.h b/include/openssl/evp.h index 54663270872..94d13f1fcdb 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -98,6 +98,7 @@ extern "C" { #endif int EVP_set_default_properties(OSSL_LIB_CTX *libctx, const char *propq); +char *EVP_get1_default_properties(OSSL_LIB_CTX *libctx); int EVP_default_properties_is_fips_enabled(OSSL_LIB_CTX *libctx); int EVP_default_properties_enable_fips(OSSL_LIB_CTX *libctx, int enable);