diff options
author | Bodo Möller <bodo@openssl.org> | 1999-08-02 21:41:46 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-08-02 21:41:46 +0000 |
commit | 2b8e4959fb563f79fcad351a7c66d4d142c0fe8d (patch) | |
tree | 91f2871bdc80ce76ec33f25891d4764fe506cc2d | |
parent | f3e67ac1bc9f27f24d2deae0fe97142988ef6bff (diff) | |
download | openssl-2b8e4959fb563f79fcad351a7c66d4d142c0fe8d.zip openssl-2b8e4959fb563f79fcad351a7c66d4d142c0fe8d.tar.gz openssl-2b8e4959fb563f79fcad351a7c66d4d142c0fe8d.tar.bz2 |
generate error message
-rw-r--r-- | ssl/ssl_lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 72b7e3a..e8b1f74 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); |