Skip to content

Commit

Permalink
init OpenSSL when OQS_USE_OPENSSL is enabled in liboqs.
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Ashley <[email protected]>
  • Loading branch information
ashman-p committed Sep 29, 2024
1 parent a552876 commit 87898ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87898ff

Please sign in to comment.