diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-03-04 11:49:29 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-03-04 11:49:29 +0200 |
commit | 30f60665bbbe2547551531a3da299ca8818e74bc (patch) | |
tree | 4464e53e9f1b3d205ce4eceebc4e395b853fc247 /rpmio/rpmpgp.c | |
parent | d39a6c7de51c0d01ce69ee1f464b94ca70309751 (diff) | |
download | librpm-tizen-30f60665bbbe2547551531a3da299ca8818e74bc.tar.gz librpm-tizen-30f60665bbbe2547551531a3da299ca8818e74bc.tar.bz2 librpm-tizen-30f60665bbbe2547551531a3da299ca8818e74bc.zip |
Eliminate unnecessary fields from pgpDig_s
- sha1(len) and md5(len) are only needed and used locally in
verify[DR]SASignature(), no point carrying them around in pgpDig
- use wrapper function to hide type differences between rpm and NSS
Diffstat (limited to 'rpmio/rpmpgp.c')
-rw-r--r-- | rpmio/rpmpgp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c index 46335b70e..6e4898635 100644 --- a/rpmio/rpmpgp.c +++ b/rpmio/rpmpgp.c @@ -1243,9 +1243,6 @@ void pgpCleanDig(pgpDig dig) memset(&dig->signature, 0, sizeof(dig->signature)); memset(&dig->pubkey, 0, sizeof(dig->pubkey)); - dig->md5 = _free(dig->md5); - dig->sha1 = _free(dig->sha1); - if (dig->dsa != NULL) { SECKEY_DestroyPublicKey(dig->dsa); dig->dsa = NULL; |