whitelist: Use hash() method so DNs with different string types match

strongSwan uses PrintableString when encoding DNs from strings (if the
character set permits it, otherwise T61String is currently used) but
certificates might be encoded with UTF8String even for simple ASCII strings.
By ignoring this string type when hashing RDNs we make sure the same hash
results in this case as long as the actual string values are the same.

Fixes #991.
This commit is contained in:
Tobias Brunner 2015-06-11 17:40:10 +02:00
parent 520fba4899
commit 6fe8fe0cfd
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ struct private_whitelist_listener_t {
*/
static u_int hash(identification_t *key)
{
return chunk_hash(key->get_encoding(key));
return key->hash(key, 0);
}
/**