summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-10-19 17:38:18 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-10-19 23:03:57 +0200
commit54aa9c48b20387f763a24f6000583cab5a44d110 (patch)
tree6548dc41a937760ee1b97329d6519735831010d9
parent275e5431333c5d09f9445ba407d5c8bdd8027957 (diff)
downloadcurl-54aa9c48b20387f763a24f6000583cab5a44d110.tar.gz
tls: remove newline from three infof() calls
Follow-up to e7416cf Reported-by: billionai on github Fixes #7879 Closes #7880
-rw-r--r--lib/vtls/nss.c2
-rw-r--r--lib/vtls/openssl.c2
-rw-r--r--lib/vtls/wolfssl.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c
index c9cc2fd09..1897b9ab1 100644
--- a/lib/vtls/nss.c
+++ b/lib/vtls/nss.c
@@ -955,7 +955,7 @@ static void display_cert_info(struct Curl_easy *data,
subject = CERT_NameToAscii(&cert->subject);
issuer = CERT_NameToAscii(&cert->issuer);
common_name = CERT_GetCommonName(&cert->subject);
- infof(data, "subject: %s\n", subject);
+ infof(data, "subject: %s", subject);
CERT_GetCertTimes(cert, &notBefore, &notAfter);
PR_ExplodeTime(notBefore, PR_GMTParameters, &printableTime);
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 03cc028b1..66d714d77 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -2950,7 +2950,7 @@ static CURLcode ossl_connect_step1(struct Curl_easy *data,
NULL, cert_name, sizeof(cert_name))) {
strcpy(cert_name, "Unknown");
}
- infof(data, "SSL: Checking cert %s\"\n", cert_name);
+ infof(data, "SSL: Checking cert \"%s\"", cert_name);
#endif
encoded_cert = (const unsigned char *)pContext->pbCertEncoded;
diff --git a/lib/vtls/wolfssl.c b/lib/vtls/wolfssl.c
index 10ad08c44..8c5b9157b 100644
--- a/lib/vtls/wolfssl.c
+++ b/lib/vtls/wolfssl.c
@@ -564,7 +564,7 @@ wolfssl_connect_step1(struct Curl_easy *data, struct connectdata *conn,
/* we got a session id, use it! */
if(!SSL_set_session(backend->handle, ssl_sessionid)) {
Curl_ssl_delsessionid(data, ssl_sessionid);
- infof(data, "Can't use session ID, going on without\n");
+ infof(data, "Can't use session ID, going on without");
}
else
infof(data, "SSL re-using session ID");