diff options
author | Martin Willi <martin@strongswan.org> | 2006-03-16 15:25:06 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-03-16 15:25:06 +0000 |
commit | 16b9a73cc4bd4c4fafc8618fdd4c05ab72195df1 (patch) | |
tree | b7d3214d59942dbd75ad8b9b8f86468f82f7a496 /Source/charon/utils/identification.h | |
parent | b1953ccd05b5e6cf5a87c557208d5f8a1fcad231 (diff) | |
download | strongswan-16b9a73cc4bd4c4fafc8618fdd4c05ab72195df1.tar.bz2 strongswan-16b9a73cc4bd4c4fafc8618fdd4c05ab72195df1.tar.xz |
- reworked configuration framework completly
- configuration is now split up in: connections, policies, credentials and daemon config
- further alloc/free fixes needed!
Diffstat (limited to 'Source/charon/utils/identification.h')
-rw-r--r-- | Source/charon/utils/identification.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/Source/charon/utils/identification.h b/Source/charon/utils/identification.h index 057989b24..38bac5ee1 100644 --- a/Source/charon/utils/identification.h +++ b/Source/charon/utils/identification.h @@ -21,8 +21,8 @@ */ -#ifndef _IDENTIFICATION_H_ -#define _IDENTIFICATION_H_ +#ifndef IDENTIFICATION_H_ +#define IDENTIFICATION_H_ #include "types.h" @@ -120,7 +120,7 @@ struct identification_t { * * @warning Result points to internal data, do NOT free! * - * @param this the identification_t_object + * @param this the identification_t object * @return a chunk containing the encoded bytes */ chunk_t (*get_encoding) (identification_t *this); @@ -128,7 +128,7 @@ struct identification_t { /** * @brief Get the type of this identification. * - * @param this the identification_t_object + * @param this the identification_t object * @return id_type_t */ id_type_t (*get_type) (identification_t *this); @@ -138,7 +138,7 @@ struct identification_t { * * @warning Result points to internal data, do NOT free! * - * @param this the identification_t_object + * @param this the identification_t object * @return string */ char *(*get_string) (identification_t *this); @@ -146,11 +146,19 @@ struct identification_t { /** * @brief Check if two identification_t objects are equal. * - * @param this the identification_t_object - * @param other other identification_t_object + * @param this the identification_t object + * @param other other identification_t object * @return TRUE if the IDs are equal */ bool (*equals) (identification_t *this,identification_t *other); + + /** + * @brief Clone a identification_t instance. + * + * @param this the identification_t object to clone + * @return clone of this + */ + identification_t *(*clone) (identification_t *this); /** * @brief Destroys a identification_t object. @@ -186,4 +194,4 @@ identification_t * identification_create_from_string(id_type_t type, char *strin identification_t * identification_create_from_encoding(id_type_t type, chunk_t encoded); -#endif //_IDENTIFICATION_H_ +#endif /* IDENTIFICATION_H_ */ |