Skip to content

Commit

Permalink
Some compilers didnt like the inline declaration?
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Nov 15, 2024
1 parent c1d46a8 commit 40696f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crypto/pkcs7/bio/cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ static long enc_ctrl(BIO *b, int cmd, long num, void *ptr) {
long ret = 1;

BIO_ENC_CTX *ctx = BIO_get_data(b);
EVP_CIPHER_CTX **cipher_ctx;
BIO *next = BIO_next(b);
if (ctx == NULL) {
return 0;
Expand Down Expand Up @@ -242,7 +243,7 @@ static long enc_ctrl(BIO *b, int cmd, long num, void *ptr) {
ret = (long)ctx->ok;
break;
case BIO_C_GET_CIPHER_CTX:
EVP_CIPHER_CTX **cipher_ctx = ptr;
cipher_ctx = (EVP_CIPHER_CTX **)ptr;
if (!cipher_ctx) {
ret = 0;
break;
Expand Down

0 comments on commit 40696f9

Please sign in to comment.