[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lynx-dev] Cannot connect to some sites with GnuTLS
From: |
hanswurst |
Subject: |
[Lynx-dev] Cannot connect to some sites with GnuTLS |
Date: |
Sat, 10 Aug 2013 06:50:07 -0400 |
Hi,
I cannot connect to an https website with lynx.
https://www.criticalmass-hamburg.de/
In SSL_connect(), gnutls_handshake() returns GNUTLS_E_WARNING_ALERT_RECEIVED.
The warning received is GNUTLS_A_UNRECOGNIZED_NAME.
Here's a patch to add the missing checks:
while (rc = gnutls_handshake(ssl->gnutls_state), rc < 0 &&
!gnutls_error_is_fatal(rc)) {
if (rc == GNUTLS_E_WARNING_ALERT_RECEIVED) {
switch (gnutls_alert_get(ssl->gnutls_state)) {
case GNUTLS_A_UNRECOGNIZED_NAME:
continue; /* ignore */
}
break; /* treat all other alerts as fatal */
}
}
Cheers
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Lynx-dev] Cannot connect to some sites with GnuTLS,
hanswurst <=