summaryrefslogtreecommitdiffstats
path: root/g10/packet.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1997-12-02 20:36:53 +0100
committerWerner Koch <wk@gnupg.org>1997-12-02 20:36:53 +0100
commitcccf1efa4bcb97e2951a25ebd6250950d73d5169 (patch)
treeddf7e191b2782961c1494f0ab1e0c9ece0f0b6ca /g10/packet.h
parentList and check sigs works (diff)
downloadgnupg2-cccf1efa4bcb97e2951a25ebd6250950d73d5169.tar.xz
gnupg2-cccf1efa4bcb97e2951a25ebd6250950d73d5169.zip
Sicherung
Diffstat (limited to 'g10/packet.h')
-rw-r--r--g10/packet.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/g10/packet.h b/g10/packet.h
index bef97a41f..63626307e 100644
--- a/g10/packet.h
+++ b/g10/packet.h
@@ -65,6 +65,15 @@ typedef struct {
typedef struct {
u32 keyid[2]; /* 64 bit keyid */
+ byte sig_class; /* sig classification */
+ byte digest_algo; /* algorithm used for digest */
+ byte pubkey_algo; /* algorithm used for public key scheme */
+ byte last; /* a stupid flag */
+} PKT_onepass_sig;
+
+
+typedef struct {
+ u32 keyid[2]; /* 64 bit keyid */
u32 timestamp; /* signature made */
byte sig_class; /* sig classification, append for MD calculation*/
byte pubkey_algo; /* algorithm used for public key scheme */
@@ -182,12 +191,10 @@ typedef struct {
/* combine all packets into a union */
struct packet_struct {
pkttype_t pkttype;
- PKT_public_cert *pkc_parent; /* the pubkey to which it belongs */
- PKT_secret_cert *skc_parent; /* the seckey to which it belongs */
- PKT_user_id *user_parent; /* the user_id to which it belongs */
union {
void *generic;
PKT_pubkey_enc *pubkey_enc; /* PKT_PUBKEY_ENC */
+ PKT_onepass_sig *onepass_sig; /* PKT_ONEPASS_SIG */
PKT_signature *signature; /* PKT_SIGNATURE */
PKT_public_cert *public_cert; /* PKT_PUBLIC_CERT */
PKT_secret_cert *secret_cert; /* PKT_SECRET_CERT */
@@ -200,9 +207,6 @@ struct packet_struct {
};
#define init_packet(a) do { (a)->pkttype = 0; \
- (a)->pkc_parent = NULL; \
- (a)->skc_parent = NULL; \
- (a)->user_parent = NULL; \
(a)->pkt.generic = NULL; \
} while(0)