aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/identification.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-06-12 14:17:37 +0000
committerMartin Willi <martin@strongswan.org>2008-06-12 14:17:37 +0000
commit1726ca10270fb2b79f9a3874f90c61f2124b3705 (patch)
tree931ce60f22742def9bdd231ce04e1ce866747bbc /src/libstrongswan/utils/identification.c
parent035930fc4ac48e38603b8c71a1c66b4a5edccbbb (diff)
downloadstrongswan-1726ca10270fb2b79f9a3874f90c61f2124b3705.tar.bz2
strongswan-1726ca10270fb2b79f9a3874f90c61f2124b3705.tar.xz
implemented identification_t.match() case insensitive for RFC822/FQDN
Diffstat (limited to 'src/libstrongswan/utils/identification.c')
-rw-r--r--src/libstrongswan/utils/identification.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/utils/identification.c b/src/libstrongswan/utils/identification.c
index c06c8069e..cf64f044d 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;
}