Loading lib/hostcheck.c +7 −2 Original line number Diff line number Diff line Loading @@ -22,6 +22,9 @@ #include "setup.h" #if defined(USE_SSLEAY) || defined(USE_AXTLS) /* these two backends use functions from this file */ #include "hostcheck.h" #include "rawstr.h" Loading @@ -34,7 +37,7 @@ * http://tools.ietf.org/html/rfc6125#section-6.4.3 */ int Curl_hostmatch(const char *hostname, const char *pattern) static int hostmatch(const char *hostname, const char *pattern) { const char *pattern_label_end, *pattern_wildcard, *hostname_label_end; int wildcard_enabled; Loading Loading @@ -85,7 +88,9 @@ int Curl_cert_hostcheck(const char *match_pattern, const char *hostname) if(Curl_raw_equal(hostname, match_pattern)) /* trivial case */ return 1; if(Curl_hostmatch(hostname,match_pattern) == CURL_HOST_MATCH) if(hostmatch(hostname,match_pattern) == CURL_HOST_MATCH) return 1; return 0; } #endif /* SSLEAY or AXTLS */ lib/hostcheck.h +0 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ #define CURL_HOST_NOMATCH 0 #define CURL_HOST_MATCH 1 int Curl_hostmatch(const char *hostname, const char *pattern); int Curl_cert_hostcheck(const char *match_pattern, const char *hostname); #endif Loading
lib/hostcheck.c +7 −2 Original line number Diff line number Diff line Loading @@ -22,6 +22,9 @@ #include "setup.h" #if defined(USE_SSLEAY) || defined(USE_AXTLS) /* these two backends use functions from this file */ #include "hostcheck.h" #include "rawstr.h" Loading @@ -34,7 +37,7 @@ * http://tools.ietf.org/html/rfc6125#section-6.4.3 */ int Curl_hostmatch(const char *hostname, const char *pattern) static int hostmatch(const char *hostname, const char *pattern) { const char *pattern_label_end, *pattern_wildcard, *hostname_label_end; int wildcard_enabled; Loading Loading @@ -85,7 +88,9 @@ int Curl_cert_hostcheck(const char *match_pattern, const char *hostname) if(Curl_raw_equal(hostname, match_pattern)) /* trivial case */ return 1; if(Curl_hostmatch(hostname,match_pattern) == CURL_HOST_MATCH) if(hostmatch(hostname,match_pattern) == CURL_HOST_MATCH) return 1; return 0; } #endif /* SSLEAY or AXTLS */
lib/hostcheck.h +0 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ #define CURL_HOST_NOMATCH 0 #define CURL_HOST_MATCH 1 int Curl_hostmatch(const char *hostname, const char *pattern); int Curl_cert_hostcheck(const char *match_pattern, const char *hostname); #endif