mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-06 13:20:57 +03:00
libcrypto: update EVP API usage
The EVP_CIPHER_CTX_init API is deprecated and doesn't exist in some OpenSSL versions. Switch to EVP_CIPHER_CTX_reset which works with 1.1.x which is the min version libssh requires. Signed-off-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
358553e976
commit
e93c1f6a61
@@ -406,7 +406,7 @@ static void evp_cipher_init(struct ssh_cipher_struct *cipher)
|
||||
if (cipher->ctx == NULL) {
|
||||
cipher->ctx = EVP_CIPHER_CTX_new();
|
||||
} else {
|
||||
EVP_CIPHER_CTX_init(cipher->ctx);
|
||||
EVP_CIPHER_CTX_reset(cipher->ctx);
|
||||
}
|
||||
|
||||
switch(cipher->ciphertype){
|
||||
|
||||
Reference in New Issue
Block a user