From adc1274d04ec5687480d3570c5e85c081b297cac Mon Sep 17 00:00:00 2001 From: Chris Josten Date: Mon, 3 Oct 2022 12:44:36 +0200 Subject: [PATCH] Update for OpenSSL 3.1 --- source/hunt/jwt/JwtOpenSSL.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/hunt/jwt/JwtOpenSSL.d b/source/hunt/jwt/JwtOpenSSL.d index f7a8f53..5c1519b 100644 --- a/source/hunt/jwt/JwtOpenSSL.d +++ b/source/hunt/jwt/JwtOpenSSL.d @@ -116,7 +116,7 @@ private ubyte[] signShaPem(const(EVP_MD) *alg, int type, string key, string msg) } scope(exit) EVP_PKEY_free(pkey); - int pkey_type = EVP_PKEY_id(pkey); + int pkey_type = EVP_PKEY_get_id(pkey); if (pkey_type != type){ warning("Invalid argument"); return null; @@ -338,7 +338,7 @@ private bool verifyShaPem(const(EVP_MD) *alg, int type, string head, const(ubyte } scope(exit) EVP_PKEY_free(pkey); - int pkey_type = EVP_PKEY_id(pkey); + int pkey_type = EVP_PKEY_get_id(pkey); if (pkey_type != type) { version(HUNT_JWT_DEBUG) warning("Invalid argument"); return false;