implemented identification_t.match() case insensitive for RFC822/FQDN
authorMartin Willi <martin@strongswan.org>
Thu, 12 Jun 2008 14:17:37 +0000 (14:17 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 12 Jun 2008 14:17:37 +0000 (14:17 -0000)
src/libstrongswan/utils/identification.c

index c06c806..cf64f04 100644 (file)
@@ -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;
                }