]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
EVP_get_default_properties - implementation
authorDmitry Belyavskiy <beldmit@gmail.com>
Wed, 11 Sep 2024 14:02:14 +0000 (16:02 +0200)
committerPauli <ppzgs1@gmail.com>
Sun, 15 Sep 2024 22:15:52 +0000 (08:15 +1000)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25434)

crypto/evp/evp_fetch.c
include/openssl/evp.h

index 2067c4062f8276b8b0bcacea142f1a734d9af1af..408b3897c994af9d64528c8c5f4bf8172047dd74 100644 (file)
@@ -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);
index 5466327087210565c85c56439e860a7e03a9f1e9..94d13f1fcdbe81f6a1bce8fd8ae493ba1ba88fd9 100644 (file)
@@ -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);