Skip to content

Commit

Permalink
openssl: fix dereferencing ambiguity potentially causing build failure (
Browse files Browse the repository at this point in the history
#267)

When dereferencing from *aes_ctr_cipher, being a pointer itself,
ambiguity can occur; fixed possible build errors.
  • Loading branch information
giuliobenetti authored and willco007 committed Sep 13, 2018
1 parent 64769ac commit b5b6673
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/openssl.c
Expand Up @@ -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;
Expand Down

0 comments on commit b5b6673

Please sign in to comment.