support for @#hex ID_KEY_ID identification_t
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user