diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2004-12-13 18:02:23 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2004-12-13 18:02:23 +0000 |
commit | abbc186bd2798afc4ad405af15d7e2668d66ef3e (patch) | |
tree | 534987276bedf4b83f084cee44bd32d92aaa8c01 /apps/s_cb.c | |
parent | de6859e4422b2b00448731c47872befb4df2a278 (diff) |
Fix s_client so it works without a certificate again.
Diffstat (limited to 'apps/s_cb.c')
-rw-r--r-- | apps/s_cb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/s_cb.c b/apps/s_cb.c index 21aab25d7e..92d9ae8893 100644 --- a/apps/s_cb.c +++ b/apps/s_cb.c @@ -231,6 +231,8 @@ int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file) int set_cert_key_stuff(SSL_CTX *ctx, X509 *cert, EVP_PKEY *key) { + if (cert == NULL) + return 1; if (SSL_CTX_use_certificate(ctx,cert) <= 0) { BIO_printf(bio_err,"error setting certificate\n"); |