mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
SSLVerifyHost: Make some functions static
These functions shouldn't be visible outside of this file. This was caught by -Werror=missing-declarations. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
committed by
J-P Nurmi
parent
fd34f84bfd
commit
5f9ad5cc87
@@ -119,7 +119,7 @@ inline char Curl_raw_toupper(char in)
|
||||
* The function is capable of comparing a-z case insensitively even for
|
||||
* non-ascii.
|
||||
*/
|
||||
int Curl_raw_equal(const char *first, const char *second)
|
||||
static int Curl_raw_equal(const char *first, const char *second)
|
||||
{
|
||||
while(*first && *second) {
|
||||
if(Curl_raw_toupper(*first) != Curl_raw_toupper(*second))
|
||||
@@ -133,7 +133,7 @@ int Curl_raw_equal(const char *first, const char *second)
|
||||
return this as a successful match */
|
||||
return (Curl_raw_toupper(*first) == Curl_raw_toupper(*second));
|
||||
}
|
||||
int Curl_raw_nequal(const char *first, const char *second, size_t max)
|
||||
static int Curl_raw_nequal(const char *first, const char *second, size_t max)
|
||||
{
|
||||
while(*first && *second && max) {
|
||||
if(Curl_raw_toupper(*first) != Curl_raw_toupper(*second)) {
|
||||
@@ -234,7 +234,7 @@ static int hostmatch(char *hostname, char *pattern)
|
||||
CURL_HOST_MATCH : CURL_HOST_NOMATCH;
|
||||
}
|
||||
|
||||
int Curl_cert_hostcheck(const char *match_pattern, const char *hostname)
|
||||
static int Curl_cert_hostcheck(const char *match_pattern, const char *hostname)
|
||||
{
|
||||
char *matchp;
|
||||
char *hostp;
|
||||
|
||||
Reference in New Issue
Block a user