diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-09-12 08:14:35 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-09-12 08:14:35 +0000 |
commit | 1fde1431c9d857c3ae8482bb596dab8ec0bd9a48 (patch) | |
tree | f0f4ff8221fcc6045c6884b5e157b07441ec83d1 /lib | |
parent | bec97a0999f92a02ddae393a0aca3e78a30fd485 (diff) |
narrowed some source lines to fit in 80 cols
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssluse.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 2f76aa606..6636a9b0f 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -660,7 +660,10 @@ Curl_SSLConnect(struct connectdata *conn) if (data->set.ssl.verifyhost) { char peer_CN[257]; - if (X509_NAME_get_text_by_NID(X509_get_subject_name(conn->ssl.server_cert), NID_commonName, peer_CN, sizeof(peer_CN)) < 0) { + if (X509_NAME_get_text_by_NID(X509_get_subject_name(conn->ssl.server_cert), + NID_commonName, + peer_CN, + sizeof(peer_CN)) < 0) { failf(data, "SSL: unable to obtain common name from peer certificate"); X509_free(conn->ssl.server_cert); return CURLE_SSL_PEER_CERTIFICATE; @@ -668,13 +671,16 @@ Curl_SSLConnect(struct connectdata *conn) if (!strequal(peer_CN, conn->hostname)) { if (data->set.ssl.verifyhost > 1) { - failf(data, "SSL: certificate subject name '%s' does not match target host name '%s'", - peer_CN, conn->hostname); + failf(data, "SSL: certificate subject name '%s' does not match " + "target host name '%s'", + peer_CN, conn->hostname); X509_free(conn->ssl.server_cert); return CURLE_SSL_PEER_CERTIFICATE; } else - infof(data, "\t common name: %s (does not match '%s')\n", peer_CN, conn->hostname); + infof(data, + "\t common name: %s (does not match '%s')\n", + peer_CN, conn->hostname); } else infof(data, "\t common name: %s (matched)\n", peer_CN); |