mirror of
https://github.com/curl/curl.git
synced 2025-02-05 14:30:10 +08:00
x509asn1: fix compile errors and warnings
Various small issues when built for GSKit Closes #10238
This commit is contained in:
parent
f22cd67b7d
commit
1f693e0aca
@ -48,6 +48,7 @@
|
||||
#include "curl_ctype.h"
|
||||
#include "hostcheck.h"
|
||||
#include "vtls/vtls.h"
|
||||
#include "vtls/vtls_int.h"
|
||||
#include "sendf.h"
|
||||
#include "inet_pton.h"
|
||||
#include "curl_base64.h"
|
||||
@ -1313,7 +1314,8 @@ CURLcode Curl_verifyhost(struct Curl_cfilter *cf,
|
||||
|
||||
/* Get the server IP address. */
|
||||
#ifdef ENABLE_IPV6
|
||||
if(conn->bits.ipv6_ip && Curl_inet_pton(AF_INET6, connssl->hostname, &addr))
|
||||
if(cf->conn->bits.ipv6_ip &&
|
||||
Curl_inet_pton(AF_INET6, connssl->hostname, &addr))
|
||||
addrlen = sizeof(struct in6_addr);
|
||||
else
|
||||
#endif
|
||||
@ -1359,7 +1361,7 @@ CURLcode Curl_verifyhost(struct Curl_cfilter *cf,
|
||||
break;
|
||||
|
||||
case 7: /* IP address. */
|
||||
matched = (name.end - name.beg) == addrlen &&
|
||||
matched = (size_t)(name.end - name.beg) == addrlen &&
|
||||
!memcmp(&addr, name.beg, addrlen);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user