From d5aab55b3353bec1d34a2e1434399d23db79b254 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Wed, 20 May 2015 22:50:55 +0300 Subject: [PATCH] gtls: don't fail on non-fatal alerts during handshake Stop curl from failing when non-fatal alert is received during handshake. This e.g. fixes lots of problems when working with https sites through proxies. --- lib/vtls/gtls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index 3c473cb7c..d6eb6c445 100644 --- a/lib/vtls/gtls.c +++ b/lib/vtls/gtls.c @@ -327,7 +327,8 @@ static CURLcode handshake(struct connectdata *conn, if(strerr == NULL) strerr = gnutls_strerror(rc); - failf(data, "gnutls_handshake() warning: %s", strerr); + infof(data, "gnutls_handshake() warning: %s\n", strerr); + continue; } else if(rc < 0) { const char *strerr = NULL;