From: Dmitry Eremin-Solenikov Date: Wed, 20 May 2015 19:50:55 +0000 (+0300) Subject: gtls: don't fail on non-fatal alerts during handshake X-Git-Tag: curl-7_43_0~100 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5aab55b3353bec1d34a2e1434399d23db79b254;p=curl 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. --- 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;