X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=crypto%2Fstore%2Fstore_init.c;fp=crypto%2Fstore%2Fstore_init.c;h=dc507c67510b506994ec1a1ebc08f6b9d6801169;hb=12b4e5821d59b5d0c35f830e078d842583be6486;hp=d308dc5d0b36a12e3f818caae93aae56f3449ad9;hpb=343475126e55b4e814acb495196b92680df70a88;p=openssl.git diff --git a/crypto/store/store_init.c b/crypto/store/store_init.c index d308dc5d0b..dc507c6751 100644 --- a/crypto/store/store_init.c +++ b/crypto/store/store_init.c @@ -7,25 +7,9 @@ * https://www.openssl.org/source/license.html */ -#include #include "crypto/store.h" #include "store_local.h" -static CRYPTO_ONCE store_init = CRYPTO_ONCE_STATIC_INIT; -DEFINE_RUN_ONCE_STATIC(do_store_init) -{ - return OPENSSL_init_crypto(0, NULL); -} - -int ossl_store_init_once(void) -{ - if (!RUN_ONCE(&store_init, do_store_init)) { - ERR_raise(ERR_LIB_OSSL_STORE, ERR_R_MALLOC_FAILURE); - return 0; - } - return 1; -} - void ossl_store_cleanup_int(void) { ossl_store_destroy_loaders_int();