aboutsummaryrefslogtreecommitdiffstats
path: root/Source/lib/utils/identification.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-04-27 11:38:24 +0000
committerMartin Willi <martin@strongswan.org>2006-04-27 11:38:24 +0000
commiteea353466ec86ad5fd3fc4fb7ac560ebced64f3d (patch)
treeaa0908775b34dbce4b98526c1cfce7fd82a34074 /Source/lib/utils/identification.h
parentf1e87b9022fa68ea4cc38317eea1a59a41a5ae3d (diff)
downloadstrongswan-eea353466ec86ad5fd3fc4fb7ac560ebced64f3d.tar.bz2
strongswan-eea353466ec86ad5fd3fc4fb7ac560ebced64f3d.tar.xz
- reworked usage of IDs in various states
- using ID_ANY for any, not NULL as before - initiator sends IDr payload in IKE_AUTH when ID unique
Diffstat (limited to 'Source/lib/utils/identification.h')
-rw-r--r--Source/lib/utils/identification.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/lib/utils/identification.h b/Source/lib/utils/identification.h
index 4df665c09..309b6858c 100644
--- a/Source/lib/utils/identification.h
+++ b/Source/lib/utils/identification.h
@@ -171,6 +171,18 @@ struct identification_t {
bool (*belongs_to) (identification_t *this, identification_t *other);
/**
+ * @brief Check if an ID is a wildcard ID.
+ *
+ * If the ID represents multiple IDs (with wildcards, or
+ * as the type ID_ANY), TRUE is returned. If it is unique,
+ * FALSE is returned.
+ *
+ * @param this identification_t object
+ * @return TRUE if ID contains wildcards
+ */
+ bool (*contains_wildcards) (identification_t *this);
+
+ /**
* @brief Clone a identification_t instance.
*
* @param this the identification_t object to clone