projects
/
openssl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c50e02
)
In EVP_PKEY_assign[_...], return 0 for an error when they
author
Bodo Möller
<bodo@openssl.org>
Fri, 14 Jan 2000 18:41:28 +0000
(18:41 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Fri, 14 Jan 2000 18:41:28 +0000
(18:41 +0000)
"key" is NULL.
crypto/evp/p_lib.c
patch
|
blob
|
history
diff --git
a/crypto/evp/p_lib.c
b/crypto/evp/p_lib.c
index 94c4047a5e165dd626bd5f1b138338b4b7c4250c..5dcbbc84a5d150b6ea63f927a42a24946991b8f7 100644
(file)
--- a/
crypto/evp/p_lib.c
+++ b/
crypto/evp/p_lib.c
@@
-202,7
+202,7
@@
int EVP_PKEY_assign(EVP_PKEY *pkey, int type, char *key)
pkey->type=EVP_PKEY_type(type);
pkey->save_type=type;
pkey->pkey.ptr=key;
- return(
1
);
+ return(
key != NULL
);
}
#ifndef NO_RSA