diff options
Diffstat (limited to 'src/pluto/pgpcert.c')
-rw-r--r-- | src/pluto/pgpcert.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/pluto/pgpcert.c b/src/pluto/pgpcert.c index 49d31390e..3e9831ef8 100644 --- a/src/pluto/pgpcert.c +++ b/src/pluto/pgpcert.c @@ -27,13 +27,11 @@ #include "constants.h" #include "defs.h" #include "log.h" -#include "id.h" #include "pgpcert.h" #include "certs.h" #include "whack.h" #include "keys.h" - typedef enum pgp_packet_tag_t pgp_packet_tag_t; /** @@ -399,10 +397,11 @@ void share_pgpcert(pgpcert_t *cert) /** * Select the OpenPGP keyid as ID */ -void select_pgpcert_id(pgpcert_t *cert, struct id *end_id) +identification_t* select_pgpcert_id(pgpcert_t *cert, identification_t *id) { - end_id->kind = ID_KEY_ID; - end_id->name = cert->fingerprint->get_encoding(cert->fingerprint); + id->destroy(id); + + return cert->fingerprint->clone(cert->fingerprint); } /** |