From 87898ff0dd54493166bcf523f0886a902a91be5f Mon Sep 17 00:00:00 2001 From: Norman Ashley Date: Sun, 29 Sep 2024 01:09:41 -0400 Subject: [PATCH] init OpenSSL when OQS_USE_OPENSSL is enabled in liboqs. Signed-off-by: Norman Ashley --- src/common/common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/common.c b/src/common/common.c index ee7b19f70..0060ce84c 100644 --- a/src/common/common.c +++ b/src/common/common.c @@ -228,6 +228,10 @@ OQS_API int OQS_CPU_has_extension(OQS_CPU_EXT ext) { } OQS_API void OQS_init(void) { +#if defined(OQS_USE_OPENSSL) + OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN | OPENSSL_INIT_ADD_ALL_CIPHERS, + NULL); +#endif #if defined(OQS_DIST_BUILD) OQS_CPU_has_extension(OQS_CPU_EXT_INIT); #endif