libfetch: merge NetBSD's common.c 1.29 too to reduce differences and fix a warning.
This commit is contained in:
parent
7bb36ddaa2
commit
be1ef74ba2
@ -462,8 +462,8 @@ fetch_ssl(conn_t *conn, const struct url *URL, int verbose)
|
|||||||
fprintf(stderr, "SSL_set_fd failed\n");
|
fprintf(stderr, "SSL_set_fd failed\n");
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
#ifndef OPENSSL_NO_TLSEXT
|
#if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT)
|
||||||
if (!SSL_set_tlsext_host_name(conn->ssl, URL->host)) {
|
if (!SSL_set_tlsext_host_name(conn->ssl, (char *)(uintptr_t)URL->host)) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"TLS server name indication extension failed for host %s\n",
|
"TLS server name indication extension failed for host %s\n",
|
||||||
URL->host);
|
URL->host);
|
||||||
|
Loading…
Reference in New Issue
Block a user