After the start date and expire date fields, two newlines are printed, and it's
kinda ugly:

> *      subject: C=US,ST=California,L=Mountain View,O=Google 
> Inc,CN=*.google.com
> *      start date: Fri, 27 Feb 2015 20:32:20 GMT
> 
> *      expire date: Thu, 28 May 2015 00:00:00 GMT
> 
> *      issuer: C=US,O=Google Inc,CN=Google Internet Authority G2

With the patch the following is printed:

> *      subject: C=US,ST=California,L=Mountain View,O=Google 
> Inc,CN=*.google.com
> *      start date: Fri, 27 Feb 2015 20:32:20 GMT
> *      expire date: Thu, 28 May 2015 00:00:00 GMT
> *      issuer: C=US,O=Google Inc,CN=Google Internet Authority G2

Cheers
From a394625eacb8bbd010a374419a122adb7d210466 Mon Sep 17 00:00:00 2001
From: Alessandro Ghedini <[email protected]>
Date: Tue, 10 Mar 2015 00:31:05 +0100
Subject: [PATCH] gtls: don't print double newline after certificate dates

---
 lib/vtls/gtls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index aeaef82..91d9b1c 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -207,7 +207,7 @@ static void showtime(struct SessionHandle *data,
 
   snprintf(data->state.buffer,
            BUFSIZE,
-           "\t %s: %s, %02d %s %4d %02d:%02d:%02d GMT\n",
+           "\t %s: %s, %02d %s %4d %02d:%02d:%02d GMT",
            text,
            Curl_wkday[tm->tm_wday?tm->tm_wday-1:6],
            tm->tm_mday,
-- 
2.1.4

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to