summaryrefslogtreecommitdiffstats
path: root/plugins/cryptopan
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-18 12:43:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-18 12:43:12 +0000
commit1435ec536cf66a8835243a370da69418ac67915a (patch)
tree2412dd10d16e6e086a1aa9c894720cf47e362af4 /plugins/cryptopan
parentReleasing debian version 2.1.1-1. (diff)
downloaddnscap-1435ec536cf66a8835243a370da69418ac67915a.tar.xz
dnscap-1435ec536cf66a8835243a370da69418ac67915a.zip
Merging upstream version 2.1.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugins/cryptopan')
-rw-r--r--plugins/cryptopan/cryptopan.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/cryptopan/cryptopan.c b/plugins/cryptopan/cryptopan.c
index 14f185f..5eb54c7 100644
--- a/plugins/cryptopan/cryptopan.c
+++ b/plugins/cryptopan/cryptopan.c
@@ -228,7 +228,14 @@ void cryptopan_getopt(int* argc, char** argv[])
}
if (!EVP_CipherInit_ex(ctx, EVP_aes_128_ecb(), NULL, key, iv, 1)) {
unsigned long e = ERR_get_error();
- fprintf(stderr, "%s:%s:%s\n", 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);