]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tls: remove newline from three infof() calls
authorDaniel Stenberg <daniel@haxx.se>
Tue, 19 Oct 2021 15:38:18 +0000 (17:38 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 Oct 2021 21:03:57 +0000 (23:03 +0200)
Follow-up to e7416cf

Reported-by: billionai on github
Fixes #7879
Closes #7880

lib/vtls/nss.c
lib/vtls/openssl.c
lib/vtls/wolfssl.c

index c9cc2fd096209473706c6532af09b34ebb9eda9c..1897b9ab1d5a56cdd3dfec1bb432b73720a21c5e 100644 (file)
@@ -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);
index 03cc028b15c6df6b30e1344f0800900ef46238ca..66d714d779f4e2a78dbdb97fdb24163d7f661c59 100644 (file)
@@ -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;
index 10ad08c44d06697c780541002ff465d71b584e08..8c5b9157b858b68cae2cd4986a99255fb5c6d1af 100644 (file)
@@ -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");