mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-06 18:29:50 +09:00
libcrypto: Use a pointer for EVP_CIPHER_CTX
This has been made opaque and it needs to be a pointer. This is for OpenSSL 1.1.0 support. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
607c671f67
commit
5d2e9ee66e
@@ -123,6 +123,9 @@ void ssh_cipher_clear(struct ssh_cipher_struct *cipher){
|
||||
if (cipher->cleanup != NULL){
|
||||
cipher->cleanup(cipher);
|
||||
}
|
||||
#ifdef HAVE_LIBCRYPTO
|
||||
EVP_CIPHER_CTX_free(cipher->ctx);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void cipher_free(struct ssh_cipher_struct *cipher) {
|
||||
|
||||
Reference in New Issue
Block a user