mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
bcd325e770
OK sthen@
22 lines
829 B
Plaintext
22 lines
829 B
Plaintext
Index: src/utils/ssl_utils.c
|
|
--- src/utils/ssl_utils.c.orig
|
|
+++ src/utils/ssl_utils.c
|
|
@@ -221,7 +221,7 @@ calculate_hmac_sha256(const char *data, int len, char
|
|
unsigned int res_len = WD_AUTH_HASH_LEN;
|
|
HMAC_CTX *ctx = NULL;
|
|
|
|
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined (LIBRESSL_VERSION_NUMBER))
|
|
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
|
ctx = HMAC_CTX_new();
|
|
HMAC_CTX_reset(ctx);
|
|
#else
|
|
@@ -233,7 +233,7 @@ calculate_hmac_sha256(const char *data, int len, char
|
|
HMAC_Init_ex(ctx, key, strlen(key), EVP_sha256(), NULL);
|
|
HMAC_Update(ctx, (unsigned char *) data, len);
|
|
HMAC_Final(ctx, (unsigned char *) str, &res_len);
|
|
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined (LIBRESSL_VERSION_NUMBER))
|
|
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
|
HMAC_CTX_reset(ctx);
|
|
HMAC_CTX_free(ctx);
|
|
#else
|