summaryrefslogtreecommitdiffstats
path: root/crypto/evp/p_lib.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2001-08-03 18:48:35 +0000
committerBen Laurie <ben@openssl.org>2001-08-03 18:48:35 +0000
commitbb2297a41d1873e38daf9428be5cb5181b5751a2 (patch)
treecde31fd413783a837d48959c7fa65ac0cc01df1f /crypto/evp/p_lib.c
parent75e98d0563ccb7710b099678043d28cfc35cbb57 (diff)
Header bloat reduction for EVP_PKEY.
Diffstat (limited to 'crypto/evp/p_lib.c')
-rw-r--r--crypto/evp/p_lib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c
index 39882e317d..53780726f3 100644
--- a/crypto/evp/p_lib.c
+++ b/crypto/evp/p_lib.c
@@ -64,6 +64,7 @@
#include <openssl/x509.h>
static void EVP_PKEY_free_it(EVP_PKEY *x);
+
int EVP_PKEY_bits(EVP_PKEY *pkey)
{
#ifndef OPENSSL_NO_RSA
@@ -80,8 +81,6 @@ int EVP_PKEY_bits(EVP_PKEY *pkey)
int EVP_PKEY_size(EVP_PKEY *pkey)
{
- if (pkey == NULL)
- return(0);
#ifndef OPENSSL_NO_RSA
if (pkey->type == EVP_PKEY_RSA)
return(RSA_size(pkey->pkey.rsa));