From: Bodo Möller Date: Mon, 2 Aug 1999 21:41:46 +0000 (+0000) Subject: generate error message X-Git-Tag: OpenSSL_0_9_4~38 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2b8e4959fb563f79fcad351a7c66d4d142c0fe8d;p=oweals%2Fopenssl.git generate error message --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 72b7e3aa4e..e8b1f74769 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -576,7 +576,10 @@ int SSL_check_private_key(SSL *ssl) return(0); } if (ssl->cert == NULL) + { + SSLerr(SSL_F_SSL_CHECK_PRIVATE_KEY,SSL_R_NO_CERTIFICATE_ASSIGNED); return 0; + } if (ssl->cert->key->x509 == NULL) { SSLerr(SSL_F_SSL_CHECK_PRIVATE_KEY,SSL_R_NO_CERTIFICATE_ASSIGNED);