diff options
author | jbj <devnull@localhost> | 2001-10-05 20:39:50 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-10-05 20:39:50 +0000 |
commit | 71dff1a731923b405a9a189cb087f7fe5e013290 (patch) | |
tree | 7a5f33afe64e021ba26081c5fdafd0af24a342c8 /rpmio/rpmpgp.c | |
parent | 726fff1bd1dc3f74a1f4b7f900c1075b6f32ca31 (diff) | |
download | librpm-tizen-71dff1a731923b405a9a189cb087f7fe5e013290.tar.gz librpm-tizen-71dff1a731923b405a9a189cb087f7fe5e013290.tar.bz2 librpm-tizen-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.c')
-rw-r--r-- | rpmio/rpmpgp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c index eeec3a786..83ce53458 100644 --- a/rpmio/rpmpgp.c +++ b/rpmio/rpmpgp.c @@ -9,7 +9,7 @@ static int _debug = 0; static int _print = 0; -static struct pgpSig_s * _dig = NULL; +/*@null@*/ static struct pgpSig_s * _dig = NULL; /*@-readonlytrans@*/ /* This is the unarmored RPM-GPG-KEY public key. */ @@ -256,6 +256,7 @@ void pgpPrtVal(const char * pre, pgpValTbl vs, byte val) fprintf(stderr, "%s(%u)", pgpValStr(vs, val), (unsigned)val); } +/*@-varuse -readonlytrans @*/ static const char * pgpSigRSA[] = { " m**d =", NULL, @@ -266,6 +267,7 @@ static const char * pgpSigDSA[] = { " s =", NULL, }; +/*@=varuse =readonlytrans @*/ int pgpPrtPktSigV3(pgpPkt pkt, const byte *h, unsigned int hlen) { @@ -515,6 +517,7 @@ int pgpPrtPktSig(pgpPkt pkt, const byte *h, unsigned int hlen) return 0; } +/*@-varuse -readonlytrans @*/ static const char * pgpPublicRSA[] = { " n =", " e =", @@ -553,6 +556,7 @@ static const char * pgpSecretELGAMAL[] = { " x =", NULL, }; +/*@=varuse =readonlytrans @*/ int pgpPrtKeyV3(pgpPkt pkt, const byte *h, unsigned int hlen) { @@ -776,7 +780,7 @@ int pgpPrtUserID(pgpPkt pkt, const byte *h, unsigned int hlen) { pgpPrtVal("", pgpPktTbl, pkt); if (_print) - fprintf(stderr, " \"%.*s\"", hlen, (const char *)h); + fprintf(stderr, " \"%.*s\"", (int)hlen, (const char *)h); pgpPrtNL(); return 0; } |