diff options
-rw-r--r-- | lib/ssluse.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index a6709d933..b4bd31493 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -2205,14 +2205,7 @@ static CURLcode servercert(struct connectdata *conn, rc = x509_name_oneline(X509_get_subject_name(connssl->server_cert), buffer, BUFSIZE); - if(rc) { - if(strict) - failf(data, "SSL: couldn't get X509-subject!"); - X509_free(connssl->server_cert); - connssl->server_cert = NULL; - return CURLE_SSL_CONNECT_ERROR; - } - infof(data, "\t subject: %s\n", buffer); + infof(data, "\t subject: %s\n", rc?"[NONE]":buffer); certdate = X509_get_notBefore(connssl->server_cert); asn1_output(certdate, buffer, BUFSIZE); |