1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[uri] URI_DNS_HOST instead of URI_HOST | URI_IDN.

Also could be considered URI_HOST_IDN.
This commit is contained in:
Witold Filipczyk 2022-01-15 18:15:55 +01:00
parent 1e365c9798
commit 9d2a55d6c3

View File

@ -157,7 +157,7 @@ verify_certificates(struct socket *socket)
* only contain ASCII characters. Internationalized domain
* names must thus be in Punycode form. Because GnuTLS 2.8.6
* does not itself support IDN, ELinks must convert. */
hostname = get_uri_string(conn->proxied_uri, URI_HOST | URI_IDN);
hostname = get_uri_string(conn->proxied_uri, URI_DNS_HOST);
if (!hostname) return -6;
ret = !gnutls_x509_crt_check_hostname(cert, hostname);
@ -319,7 +319,7 @@ verify_callback(int preverify_ok, X509_STORE_CTX *ctx)
ssl = X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx());
socket = SSL_get_ex_data(ssl, socket_SSL_ex_data_idx);
conn = socket->conn;
host_in_uri = get_uri_string(conn->proxied_uri, URI_HOST | URI_IDN);
host_in_uri = get_uri_string(conn->proxied_uri, URI_DNS_HOST);
if (!host_in_uri)
return 0;