mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[ win64 ] HAVE_INET_PTON ifndef
This commit is contained in:
parent
e2cf1923c4
commit
041c1184ee
@ -173,7 +173,7 @@ do_real_lookup(char *name, struct sockaddr_storage **addrs, int *addrno,
|
||||
{
|
||||
struct in_addr inp;
|
||||
|
||||
#ifndef WIN32
|
||||
#ifndef HAVE_INET_PTON
|
||||
if (is_ip_address(name, strlen(name)) && inet_aton(name, &inp))
|
||||
hostent = gethostbyaddr(&inp, sizeof(inp), AF_INET);
|
||||
#else
|
||||
|
@ -284,7 +284,7 @@ match_uri_host_ip(const char *uri_host,
|
||||
* network byte order. */
|
||||
switch (ASN1_STRING_length(cert_host_asn1)) {
|
||||
case 4:
|
||||
#ifndef win32
|
||||
#ifndef HAVE_INET_PTON
|
||||
return inet_aton(uri_host, &uri_host_in) != 0
|
||||
&& memcmp(cert_host_addr, &uri_host_in.s_addr, 4) == 0;
|
||||
#else
|
||||
@ -310,7 +310,6 @@ static int
|
||||
verify_callback(int preverify_ok, X509_STORE_CTX *ctx)
|
||||
{
|
||||
|
||||
X509_NAME *name;
|
||||
X509 *cert;
|
||||
SSL *ssl;
|
||||
struct socket *socket;
|
||||
@ -362,7 +361,7 @@ verify_callback(int preverify_ok, X509_STORE_CTX *ctx)
|
||||
sk_GENERAL_NAME_pop_free(alts, GENERAL_NAME_free);
|
||||
}
|
||||
if (!matched && !saw_dns_name) {
|
||||
|
||||
X509_NAME *name;
|
||||
int cn_index;
|
||||
X509_NAME_ENTRY *entry = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user