Skip to content

Commit

Permalink
gtls: don't fail on non-fatal alerts during handshake
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lumag authored and bagder committed May 20, 2015
1 parent 0f6f7c1 commit d5aab55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vtls/gtls.c
Expand Up @@ -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;
Expand Down

0 comments on commit d5aab55

Please sign in to comment.