@@ -12947,7 +12947,7 @@ int CipherRequires(byte first, byte second, int requirement)
1294712947#endif /* !NO_TLS */
1294812948
1294912949#ifndef NO_CERTS
12950- #ifdef WOLFSSL_IP_ALT_NAME
12950+ #if defined( WOLFSSL_IP_ALT_NAME) && !defined(WOLFSSL_USER_IO)
1295112951static int MatchIPv6(const char* pattern, int patternLen,
1295212952 const char* str, word32 strLen)
1295312953{
@@ -12979,7 +12979,7 @@ static int MatchIPv6(const char* pattern, int patternLen,
1297912979 /* Compare raw address bytes */
1298012980 return XMEMCMP(&addr1, &addr2, sizeof(WOLFSSL_SOCKADDR_IN6)) == 0;
1298112981}
12982- #endif
12982+ #endif /* WOLFSSL_IP_ALT_NAME && !WOLFSSL_USER_IO */
1298312983
1298412984/* Match names with wildcards, each wildcard can represent a single name
1298512985 component or fragment but not multiple names, i.e.,
@@ -12999,7 +12999,7 @@ int MatchDomainName(const char* pattern, int patternLen, const char* str,
1299912999 if (pattern == NULL || str == NULL || patternLen <= 0 || strLen == 0)
1300013000 return 0;
1300113001
13002- #ifdef WOLFSSL_IP_ALT_NAME
13002+ #if defined( WOLFSSL_IP_ALT_NAME) && !defined(WOLFSSL_USER_IO)
1300313003 /* First try to match IPv6 addresses */
1300413004 if (MatchIPv6(pattern, patternLen, str, strLen))
1300513005 return 1;
0 commit comments