diff options
author | Martin Willi <martin@strongswan.org> | 2008-05-06 13:45:14 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-05-06 13:45:14 +0000 |
commit | 86ab5636c2c9085c70688910fc3cd1f90a38187d (patch) | |
tree | 813f2c1db3d641b7457c67629e4c240f5392afd3 /src | |
parent | bc1f02a8601bfd8da0ca94c30b289d3b2a3674ff (diff) | |
download | strongswan-86ab5636c2c9085c70688910fc3cd1f90a38187d.tar.bz2 strongswan-86ab5636c2c9085c70688910fc3cd1f90a38187d.tar.xz |
support for @#hex ID_KEY_ID identification_t
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/utils/identification.c | 8 |
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 { |