projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix s_client so it works without a certificate again.
[openssl.git]
/
apps
/
s_cb.c
diff --git
a/apps/s_cb.c
b/apps/s_cb.c
index 21aab25d7e05667f7ad8ee2fa55a30a2be9bf82a..92d9ae8893159143375a7e32e239a8358deef6a2 100644
(file)
--- 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");