libfetch: merge NetBSD's common.c 1.29 too to reduce differences and fix a warning.

This commit is contained in:
Juan RP 2014-06-29 10:04:07 +02:00
parent 7bb36ddaa2
commit be1ef74ba2

View File

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