From 2680cacd325ed7c658fc57f3340895ef22cb32b3 Mon Sep 17 00:00:00 2001 From: Quentin Minster Date: Sun, 15 Jul 2018 22:28:14 +0200 Subject: [PATCH] Use OPENSSL_init_crypto() `ERR_load_crypto_strings()` is deprecated as of OpenSSL 1.1.0, and may not be available in some OpenSSL builds. Use its replacement, `OPENSSL_init_crypto()`, instead. --- crypto-openssl-11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto-openssl-11.cpp b/crypto-openssl-11.cpp index adf03bb..7ea7c87 100644 --- a/crypto-openssl-11.cpp +++ b/crypto-openssl-11.cpp @@ -46,7 +46,7 @@ void init_crypto () { - ERR_load_crypto_strings(); + OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, nullptr); } struct Aes_ecb_encryptor::Aes_impl {