diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-05-24 06:19:45 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-05-24 06:19:45 +0000 |
commit | efe769c42efe29f3b7a602a63357a1925b626a24 (patch) | |
tree | e484acdfea9137d1e2d70b30e94dca2e652171fb /src/tsig.h | |
parent | Releasing debian version 2.11.2-1. (diff) | |
download | dnsperf-efe769c42efe29f3b7a602a63357a1925b626a24.tar.xz dnsperf-efe769c42efe29f3b7a602a63357a1925b626a24.zip |
Merging upstream version 2.12.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/tsig.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -23,13 +23,23 @@ #ifndef PERF_TSIG_H #define PERF_TSIG_H 1 +#include <openssl/opensslv.h> +#if OPENSSL_VERSION_NUMBER < 0x30000000L #include <openssl/hmac.h> +#else +#include <openssl/evp.h> +#endif typedef struct perf_tsigkey { char name[256]; size_t namelen, alglen; const char* alg; - HMAC_CTX* hmac; +#if OPENSSL_VERSION_NUMBER < 0x30000000L + HMAC_CTX* hmac; +#else + EVP_PKEY* pkey; + EVP_MD_CTX* mdctx; +#endif } perf_tsigkey_t; perf_tsigkey_t* perf_tsig_parsekey(const char* arg); |