1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

openssl: fix dereferencing ambiguity potentially causing build failure (#267)

When dereferencing from *aes_ctr_cipher, being a pointer itself,
ambiguity can occur; fixed possible build errors.
This commit is contained in:
Giulio Benetti
2018-09-13 19:05:24 +02:00
committed by Will Cosgrove
parent 64769acab5
commit b5b6673c28

View File

@@ -571,13 +571,13 @@ make_ctr_evp (size_t keylen, EVP_CIPHER **aes_ctr_cipher, int type)
EVP_CIPHER_meth_set_cleanup(*aes_ctr_cipher, aes_ctr_cleanup);
}
#else
*aes_ctr_cipher->nid = type;
*aes_ctr_cipher->block_size = 16;
*aes_ctr_cipher->key_len = keylen;
*aes_ctr_cipher->iv_len = 16;
*aes_ctr_cipher->init = aes_ctr_init;
*aes_ctr_cipher->do_cipher = aes_ctr_do_cipher;
*aes_ctr_cipher->cleanup = aes_ctr_cleanup;
(*aes_ctr_cipher)->nid = type;
(*aes_ctr_cipher)->block_size = 16;
(*aes_ctr_cipher)->key_len = keylen;
(*aes_ctr_cipher)->iv_len = 16;
(*aes_ctr_cipher)->init = aes_ctr_init;
(*aes_ctr_cipher)->do_cipher = aes_ctr_do_cipher;
(*aes_ctr_cipher)->cleanup = aes_ctr_cleanup;
#endif
return *aes_ctr_cipher;