summaryrefslogtreecommitdiff
path: root/rpmio/rpmpgp.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-10-05 20:39:50 +0000
committerjbj <devnull@localhost>2001-10-05 20:39:50 +0000
commit71dff1a731923b405a9a189cb087f7fe5e013290 (patch)
tree7a5f33afe64e021ba26081c5fdafd0af24a342c8 /rpmio/rpmpgp.h
parent726fff1bd1dc3f74a1f4b7f900c1075b6f32ca31 (diff)
downloadrpm-71dff1a731923b405a9a189cb087f7fe5e013290.tar.gz
rpm-71dff1a731923b405a9a189cb087f7fe5e013290.tar.bz2
rpm-71dff1a731923b405a9a189cb087f7fe5e013290.zip
- proof-of-concept GPG/DSA verification for legacy signatures.
CVS patchset: 5097 CVS date: 2001/10/05 20:39:50
Diffstat (limited to 'rpmio/rpmpgp.h')
-rw-r--r--rpmio/rpmpgp.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/rpmio/rpmpgp.h b/rpmio/rpmpgp.h
index 51d690032..18519cb82 100644
--- a/rpmio/rpmpgp.h
+++ b/rpmio/rpmpgp.h
@@ -14,6 +14,7 @@
#include "rsapk.h"
#include "rsa.h"
#include "dsa.h"
+#include "mp32.h"
/*@-typeuse -fielduse@*/
/**
@@ -850,18 +851,21 @@ extern const char * redhatPubKeyRSA;
/**
*/
-struct pgpSig_s {
+typedef struct pgpSig_s {
union {
struct pgpPktSigV3_s v3;
struct pgpPktSigV4_s v4;
} sig;
+/*@only@*/ /*@null@*/ void * ctx;
+
int hash_datalen;
/*@only@*/ /*@null@*/ byte *hash_data;
int size; /*!< No. bytes in digest. */
/*@only@*/ /*@null@*/ void * data; /*!< Digest data. */
+
/* DSA parameters. */
mp32barrett p;
mp32barrett q;
@@ -900,8 +904,8 @@ unsigned int pgpGrab(const byte *s, int nbytes)
/**
*/
/*@unused@*/ static inline
-int pgpLen(const byte *s, unsigned int *lenp)
- /*@*/
+int pgpLen(const byte *s, /*@out@*/ unsigned int *lenp)
+ /*@modifies *lenp @*/
{
if (*s < 192) {
(*lenp) = *s++;
@@ -1046,7 +1050,6 @@ int pgpPrtKey(pgpPkt pkt, const byte *h, unsigned int hlen)
*/
int pgpPrtUserID(pgpPkt pkt, const byte *h, unsigned int hlen)
/*@modifies fileSystem @*/;
-/*@=exportlocal@*/
/**
*/
@@ -1056,6 +1059,7 @@ int pgpPrtComment(pgpPkt pkt, const byte *h, unsigned int hlen)
/**
*/
int pgpPrtPkt(const byte *p);
+/*@=exportlocal@*/
/**
*/