aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/pgpcert.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-11-10 23:54:04 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-11-10 23:54:04 +0100
commitf565d0c575f9d7e4a53e10ee447871fea21cb2e3 (patch)
tree950b57b988a21db56ded2da3892cfad4dea6b9d4 /src/pluto/pgpcert.h
parentcc543182bcf79b306188262b5537bc55f89c0965 (diff)
downloadstrongswan-f565d0c575.tar.bz2
strongswan-f565d0c575.tar.xz
merged pluto's PGP certificate parsing with charon's
Diffstat (limited to 'src/pluto/pgpcert.h')
-rw-r--r--src/pluto/pgpcert.h34
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 */