summaryrefslogtreecommitdiffstats
path: root/plugins/anonaes128
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-18 12:43:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-18 12:43:06 +0000
commit04fa95b621e5c217f982a5593bf4f6695d6ce956 (patch)
tree4058f5a44f3c4583b31ffe7e95111375dc85fcac /plugins/anonaes128
parentAdding upstream version 2.1.1. (diff)
downloaddnscap-04fa95b621e5c217f982a5593bf4f6695d6ce956.tar.xz
dnscap-04fa95b621e5c217f982a5593bf4f6695d6ce956.zip
Adding upstream version 2.1.2.upstream/2.1.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugins/anonaes128')
-rw-r--r--plugins/anonaes128/anonaes128.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/anonaes128/anonaes128.c b/plugins/anonaes128/anonaes128.c
index 56c8656..b2d8dbd 100644
--- a/plugins/anonaes128/anonaes128.c
+++ b/plugins/anonaes128/anonaes128.c
@@ -198,7 +198,14 @@ void anonaes128_getopt(int* argc, char** argv[])
}
if (!EVP_CipherInit_ex(ctx, EVP_aes_128_ecb(), NULL, key, iv, decrypt ? 0 : 1)) {
unsigned long e = ERR_get_error();
- fprintf(stderr, "%s:%s:%s", ERR_lib_error_string(e), ERR_func_error_string(e), ERR_reason_error_string(e));
+ fprintf(stderr, "%s:%s:%s\n",
+ ERR_lib_error_string(e),
+#if OPENSSL_VERSION_NUMBER < 0x30000000L
+ ERR_func_error_string(e),
+#else
+ "",
+#endif
+ ERR_reason_error_string(e));
usage("unable to initialize AES128 cipher");
}
EVP_CIPHER_CTX_set_padding(ctx, 0);