support for @#hex ID_KEY_ID identification_t

This commit is contained in:
Martin Willi
2008-05-06 13:45:14 +00:00
parent bc1f02a860
commit 86ab5636c2
+5 -3
View File
@@ -1115,9 +1115,11 @@ identification_t *identification_create_from_string(char *string)
{ {
if (*(string + 1) == '#') if (*(string + 1) == '#')
{ {
/* TODO: Pluto handles '#' as hex encoded ID_KEY_ID. */ string += 2;
free(this); this->type = ID_KEY_ID;
return NULL; this->encoded = chunk_from_hex(
chunk_create(string, strlen(string)), NULL);
return &(this->public);
} }
else else
{ {