1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-09-20 02:09:25 +03:00

LibreSSL-3.7.0 compatibility

This commit is contained in:
Ilya Shipitsin
2022-12-25 11:35:29 +06:00
parent 260413d242
commit 86e44e8d7b
2 changed files with 8 additions and 0 deletions

View File

@ -14,8 +14,10 @@ static int CryptoKeyTypeToID(const CRYPTO_KEY_TYPE type)
break;
case KEY_X25519:
return EVP_PKEY_X25519;
#if defined(EVP_PKEY_X448)
case KEY_X448:
return EVP_PKEY_X448;
#endif
default:
Debug("CryptoKeyTypeToID(): Unhandled type %u!\n", type);
}
@ -164,9 +166,11 @@ bool CryptoKeyOpaqueToRaw(const void *opaque, CRYPTO_KEY_RAW **private, CRYPTO_K
case EVP_PKEY_X25519:
type = KEY_X25519;
break;
#if defined(EVP_PKEY_X448)
case EVP_PKEY_X448:
type = KEY_X448;
break;
#endif
default:
return false;
}