diff options
author | Martin Willi <martin@strongswan.org> | 2006-03-20 15:43:26 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-03-20 15:43:26 +0000 |
commit | 87a217f9f1640ed08dbe06564f6fbcd3cdfdeefb (patch) | |
tree | 928291a14cedbcb875d205b5a38527a37f515561 /Source/charon/utils/identification.h | |
parent | e8d25806f3281b71d2512e926c08f50f72d5d505 (diff) | |
download | strongswan-87a217f9f1640ed08dbe06564f6fbcd3cdfdeefb.tar.bz2 strongswan-87a217f9f1640ed08dbe06564f6fbcd3cdfdeefb.tar.xz |
- works quite well now with ipsec.conf & ipsec starter
Diffstat (limited to 'Source/charon/utils/identification.h')
-rw-r--r-- | Source/charon/utils/identification.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -153,6 +153,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. * * @param this the identification_t object to clone |