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.
This commit is contained in:
Dmitry Eremin-Solenikov 2015-05-20 22:50:55 +03:00 committed by Daniel Stenberg
parent 0f6f7c100a
commit d5aab55b33

View File

@ -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;