From: Martin Willi Date: Thu, 12 Jun 2008 14:17:37 +0000 (-0000) Subject: implemented identification_t.match() case insensitive for RFC822/FQDN X-Git-Tag: 4.2.4~48 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=1726ca10270fb2b79f9a3874f90c61f2124b3705 implemented identification_t.match() case insensitive for RFC822/FQDN --- diff --git a/src/libstrongswan/utils/identification.c b/src/libstrongswan/utils/identification.c index c06c806..cf64f04 100644 --- a/src/libstrongswan/utils/identification.c +++ b/src/libstrongswan/utils/identification.c @@ -832,8 +832,8 @@ static id_match_t matches_string(private_identification_t *this, { /* not better than ID_ANY */ return ID_MATCH_ANY; } - if (memeq(this->encoded.ptr + this->encoded.len - len, - other->encoded.ptr + 1, len)) + if (strncasecmp(this->encoded.ptr + this->encoded.len - len, + other->encoded.ptr + 1, len) == 0) { return ID_MATCH_ONE_WILDCARD; }