diff options
author | Martin Willi <martin@strongswan.org> | 2009-10-29 15:52:00 +0100 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-11-12 10:34:01 +0100 |
commit | 324528700d98ae6062845e64461c606d540ab616 (patch) | |
tree | 361987a8921bb462aa78c813c2e96c8a5d5d5c75 /src/libstrongswan/utils/identification.h | |
parent | 0109846aa13e46f0d96e4c382621130337ebbc61 (diff) | |
download | strongswan-324528700d98ae6062845e64461c606d540ab616.tar.bz2 strongswan-324528700d98ae6062845e64461c606d540ab616.tar.xz |
Added identification constructor using a chunk of data, guessing id type
Diffstat (limited to 'src/libstrongswan/utils/identification.h')
-rw-r--r-- | src/libstrongswan/utils/identification.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/identification.h b/src/libstrongswan/utils/identification.h index f619d0c44..fe5c7d0fd 100644 --- a/src/libstrongswan/utils/identification.h +++ b/src/libstrongswan/utils/identification.h @@ -315,6 +315,14 @@ struct identification_t { identification_t * identification_create_from_string(char *string); /** + * Creates an identification from a chunk of data, guessing its type. + * + * @param data identification data + * @return identification_t + */ +identification_t * identification_create_from_data(chunk_t data); + +/** * Creates an identification_t object from an encoded chunk. * * @param type type of this id, such as ID_IPV4_ADDR |