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:
Jakub Jelen
2016-11-05 16:54:02 +01:00
committed by Andreas Schneider
parent 607c671f67
commit 5d2e9ee66e
3 changed files with 18 additions and 10 deletions

View File

@@ -130,7 +130,7 @@ struct ssh_cipher_struct {
struct ssh_3des_key_schedule *des3_key;
struct ssh_aes_key_schedule *aes_key;
const EVP_CIPHER *cipher;
EVP_CIPHER_CTX ctx;
EVP_CIPHER_CTX *ctx;
#endif
unsigned int keysize; /* bytes of key used. != keylen */
/* sets the new key for immediate use */