Reinstate accidentally deleted code.

This commit is contained in:
Ben Laurie 2001-08-03 19:00:43 +00:00
parent 61454a9f8c
commit 92dad6cc84

View File

@ -81,7 +81,9 @@ int EVP_PKEY_bits(EVP_PKEY *pkey)
int EVP_PKEY_size(EVP_PKEY *pkey)
{
#ifndef OPENSSL_NO_RSA
if (pkey == NULL)
return(0);
#ifndef OPENSSL_NO_RSA
if (pkey->type == EVP_PKEY_RSA)
return(RSA_size(pkey->pkey.rsa));
else