openssl 1.1 support

This commit is contained in:
Alex Fabijanic
2017-09-22 16:29:33 -05:00
parent 6b57edd031
commit 0e81e082ff
224 changed files with 1499 additions and 1452 deletions

View File

@@ -216,7 +216,8 @@ void EVPPKey::duplicate(EVP_PKEY* pEVPPKey)
if (!_pEVPPKey) throw NullPointerException("EVPPKey::duplicate(): "
"EVP_PKEY_new() returned null.");
switch (pEVPPKey->type)
int keyType = type(pEVPPKey);
switch (keyType)
{
case EVP_PKEY_RSA:
{
@@ -242,7 +243,7 @@ void EVPPKey::duplicate(EVP_PKEY* pEVPPKey)
}
default:
throw NotImplementedException("EVPPKey:duplicate(); Key type: " +
NumberFormatter::format(pEVPPKey->type));
NumberFormatter::format(keyType));
}
}