aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-05-06 13:45:14 +0000
committerMartin Willi <martin@strongswan.org>2008-05-06 13:45:14 +0000
commit86ab5636c2c9085c70688910fc3cd1f90a38187d (patch)
tree813f2c1db3d641b7457c67629e4c240f5392afd3
parentbc1f02a8601bfd8da0ca94c30b289d3b2a3674ff (diff)
downloadstrongswan-86ab5636c2c9085c70688910fc3cd1f90a38187d.tar.bz2
strongswan-86ab5636c2c9085c70688910fc3cd1f90a38187d.tar.xz
support for @#hex ID_KEY_ID identification_t
-rw-r--r--src/libstrongswan/utils/identification.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libstrongswan/utils/identification.c b/src/libstrongswan/utils/identification.c
index 45f9c6f8d..7c4c2e9ae 100644
--- a/src/libstrongswan/utils/identification.c
+++ b/src/libstrongswan/utils/identification.c
@@ -1115,9 +1115,11 @@ identification_t *identification_create_from_string(char *string)
{
if (*(string + 1) == '#')
{
- /* TODO: Pluto handles '#' as hex encoded ID_KEY_ID. */
- free(this);
- return NULL;
+ string += 2;
+ this->type = ID_KEY_ID;
+ this->encoded = chunk_from_hex(
+ chunk_create(string, strlen(string)), NULL);
+ return &(this->public);
}
else
{