Closed ronaaron closed 3 years ago
Well, reversing the order causes some other problem. So now I'm unsure.
I think this should be rewritten like this:
int err = tls_established(context);
if (err < 0)
return err;
if (err)
return 1;
Hmm. No, that still fails the connection with the URLs I gave.
"https://google.com/" is ok, but the "https://www.posti.fi/" and "https://www.calendardate.com/todays.htm" both fail.
Perhaps there is some other issue at play.
Hello Ron. Just tested it with www.calendardate.com, it works. Maybe there was some kind of unsupported certificate?
Around line 10339 in tlse.c, the code
is wrong, I think. Because in bug #55 the tls_consume_stream() actually fails (returns -4) but the tls_established() returns true.
I think the critical_error check should happen first.