diff options
Diffstat (limited to 'demos/evp/aesgcm.c')
-rw-r--r-- | demos/evp/aesgcm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/evp/aesgcm.c b/demos/evp/aesgcm.c index 17b0ef4748..df59f469fd 100644 --- a/demos/evp/aesgcm.c +++ b/demos/evp/aesgcm.c @@ -102,7 +102,8 @@ void aes_gcm_decrypt(void) printf("Plaintext:\n"); BIO_dump_fp(stdout, outbuf, outlen); /* Set expected tag value. */ - EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, sizeof(gcm_tag), gcm_tag); + EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, sizeof(gcm_tag), + (void *)gcm_tag); /* Finalise: note get no output for GCM */ rv = EVP_DecryptFinal_ex(ctx, outbuf, &outlen); /* |