[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] libcrypto: Fix compilation without deprecated OpenSSL APIs
[Thread Prev] | [Thread Next]
- Subject: [PATCH] libcrypto: Fix compilation without deprecated OpenSSL APIs
- From: Rosen Penev <rosenp@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sun, 28 Apr 2019 16:53:41 -0700
- To: libssh@xxxxxxxxxx
Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx> --- src/libcrypto.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcrypto.c b/src/libcrypto.c index ad743609..23921632 100644 --- a/src/libcrypto.c +++ b/src/libcrypto.c @@ -1094,7 +1094,9 @@ int ssh_crypto_init(void) OPENSSL_ia32cap &= ~(1LL << 57); } #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L OpenSSL_add_all_algorithms(); +#endif for (i = 0; ssh_ciphertab[i].name != NULL; i++) { int cmp; @@ -1123,8 +1125,10 @@ void ssh_crypto_finalize(void) return; } +#if OPENSSL_VERSION_NUMBER < 0x10100000L EVP_cleanup(); CRYPTO_cleanup_all_ex_data(); +#endif libcrypto_initialized = 0; } -- 2.17.1
Archive administrator: postmaster@lists.cynapses.org