projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61454a9
)
Reinstate accidentally deleted code.
author
Ben Laurie
<ben@openssl.org>
Fri, 3 Aug 2001 19:00:43 +0000
(19:00 +0000)
committer
Ben Laurie
<ben@openssl.org>
Fri, 3 Aug 2001 19:00:43 +0000
(19:00 +0000)
crypto/evp/p_lib.c
patch
|
blob
|
history
diff --git
a/crypto/evp/p_lib.c
b/crypto/evp/p_lib.c
index 53780726f3666e2c68f8122b026be01063c2dbba..0c2c9a1cddc2e271fc2a2eef2a1d79211895e7bb 100644
(file)
--- a/
crypto/evp/p_lib.c
+++ b/
crypto/evp/p_lib.c
@@
-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