Update for OpenSSL 3.1
This commit is contained in:
parent
fdbe0b706e
commit
adc1274d04
|
@ -116,7 +116,7 @@ private ubyte[] signShaPem(const(EVP_MD) *alg, int type, string key, string msg)
|
||||||
}
|
}
|
||||||
scope(exit) EVP_PKEY_free(pkey);
|
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){
|
if (pkey_type != type){
|
||||||
warning("Invalid argument");
|
warning("Invalid argument");
|
||||||
return null;
|
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);
|
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) {
|
if (pkey_type != type) {
|
||||||
version(HUNT_JWT_DEBUG) warning("Invalid argument");
|
version(HUNT_JWT_DEBUG) warning("Invalid argument");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue