summaryrefslogtreecommitdiffstats
path: root/crypto/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/context.c')
-rw-r--r--crypto/context.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/context.c b/crypto/context.c
index 02fecf9f35..dcf960bfa7 100644
--- a/crypto/context.c
+++ b/crypto/context.c
@@ -8,6 +8,7 @@
*/
#include "crypto/cryptlib.h"
+#include <openssl/conf.h>
#include "internal/thread_once.h"
#include "internal/property.h"
@@ -145,6 +146,13 @@ OPENSSL_CTX *OPENSSL_CTX_new(void)
return ctx;
}
+#ifndef FIPS_MODE
+int OPENSSL_CTX_load_config(OPENSSL_CTX *ctx, const char *config_file)
+{
+ return CONF_modules_load_file_with_libctx(ctx, config_file, NULL, 0) > 0;
+}
+#endif
+
void OPENSSL_CTX_free(OPENSSL_CTX *ctx)
{
if (ctx != NULL)