From eea353466ec86ad5fd3fc4fb7ac560ebced64f3d Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 27 Apr 2006 11:38:24 +0000 Subject: - 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 --- Source/lib/utils/identification.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Source/lib/utils/identification.h') 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 @@ -170,6 +170,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. * -- cgit v1.2.3