diff options
Diffstat (limited to 'src/pluto/pgpcert.h')
-rw-r--r-- | src/pluto/pgpcert.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/pluto/pgpcert.h b/src/pluto/pgpcert.h index 27c1605cf..fa589829f 100644 --- a/src/pluto/pgpcert.h +++ b/src/pluto/pgpcert.h @@ -17,40 +17,6 @@ #ifndef _PGPCERT_H #define _PGPCERT_H -#include <utils/identification.h> -#include <crypto/hashers/hasher.h> -#include <credentials/keys/private_key.h> -#include <credentials/keys/public_key.h> - -/* - * Length of PGP V3 fingerprint - */ -#define PGP_FINGERPRINT_SIZE HASH_SIZE_MD5 - -typedef char fingerprint_t[PGP_FINGERPRINT_SIZE]; - -/* access structure for an OpenPGP certificate */ - -typedef struct pgpcert pgpcert_t; - -struct pgpcert { - pgpcert_t *next; - int version; - int count; - chunk_t certificate; - time_t created; - time_t until; - public_key_t *public_key; - identification_t *fingerprint; -}; - -extern const pgpcert_t pgpcert_empty; -extern bool parse_pgp(chunk_t blob, pgpcert_t *cert); -extern void share_pgpcert(pgpcert_t *cert); -extern identification_t* select_pgpcert_id(pgpcert_t *cert, identification_t *id); -extern pgpcert_t* add_pgpcert(pgpcert_t *cert); extern void list_pgp_end_certs(bool utc); -extern void release_pgpcert(pgpcert_t *cert); -extern void free_pgpcert(pgpcert_t *cert); #endif /* _PGPCERT_H */ |