From 87a217f9f1640ed08dbe06564f6fbcd3cdfdeefb Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 20 Mar 2006 15:43:26 +0000 Subject: - works quite well now with ipsec.conf & ipsec starter --- Source/charon/utils/identification.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Source/charon/utils/identification.h') diff --git a/Source/charon/utils/identification.h b/Source/charon/utils/identification.h index 38bac5ee1..b973da9a4 100644 --- a/Source/charon/utils/identification.h +++ b/Source/charon/utils/identification.h @@ -152,6 +152,20 @@ struct identification_t { */ bool (*equals) (identification_t *this,identification_t *other); + /** + * @brief Check if an ID belongs to a wildcard ID. + * + * An identification_t may contain wildcards, such as + * *@strongswan.org. This call checks if a given ID + * (e.g. tester@strongswan.org) belongs to a such wildcard + * ID. Returns TRUE if IDs are identical. + * + * @param this the ID containing a wildcard + * @param other the ID without wildcard + * @return TRUE if other belongs to this + */ + bool (*belongs_to) (identification_t *this, identification_t *other); + /** * @brief Clone a identification_t instance. * -- cgit v1.2.3