aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls/gtls.c
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2015-05-20 22:50:55 +0300
committerDaniel Stenberg <daniel@haxx.se>2015-05-20 22:41:30 +0200
commitd5aab55b3353bec1d34a2e1434399d23db79b254 (patch)
treed8704ab470b1e8a396a7c771e784072331ccacaf /lib/vtls/gtls.c
parent0f6f7c100a8f722efe25d94f4946ef5843298c5a (diff)
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.
Diffstat (limited to 'lib/vtls/gtls.c')
-rw-r--r--lib/vtls/gtls.c3
1 files changed, 2 insertions, 1 deletions
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;