aboutsummaryrefslogtreecommitdiffstats
path: root/ssl/ssl_lib.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-08-02 18:40:36 +0000
committerBodo Möller <bodo@openssl.org>1999-08-02 18:40:36 +0000
commita63a3f58fd26ed41fbea596f646c9d94981aea5a (patch)
tree96d5aa275e617ce8a3b65d060901c24898c8722a /ssl/ssl_lib.c
parentf3db3d172f706146caca57469adee7687e664d16 (diff)
downloadopenssl-a63a3f58fd26ed41fbea596f646c9d94981aea5a.tar.gz
The SSL_CTX's cert structure is not relevant for the SSL
(because now SSL_new makes a copy).
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r--ssl/ssl_lib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 365b3ce0e4..0b30ccf918 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -575,8 +575,6 @@ int SSL_check_private_key(SSL *ssl)
SSLerr(SSL_F_SSL_CHECK_PRIVATE_KEY,ERR_R_PASSED_NULL_PARAMETER);
return(0);
}
- if (ssl->cert == NULL)
- return(SSL_CTX_check_private_key(ssl->ctx));
if (ssl->cert->key->x509 == NULL)
{
SSLerr(SSL_F_SSL_CHECK_PRIVATE_KEY,SSL_R_NO_CERTIFICATE_ASSIGNED);