OpenSSL 1.1 for EVP_PKEY

This commit is contained in:
orignal 2016-11-10 12:51:39 -05:00
parent 3562ac1438
commit 6377631ae7
4 changed files with 16 additions and 8 deletions

View file

@ -40,7 +40,7 @@ namespace data
if (family) family[0] = 0;
}
auto pkey = X509_get_pubkey (cert);
int keyType = EVP_PKEY_type(pkey->type);
int keyType = EVP_PKEY_base_id (pkey);
switch (keyType)
{
case EVP_PKEY_DSA: