diff options
author | jbj <devnull@localhost> | 2005-03-13 01:56:50 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2005-03-13 01:56:50 +0000 |
commit | 1a42537124a5e6804821ddb17a63a0ee86724b5a (patch) | |
tree | 0b19b735972c95d9fce19d659610bd1c97e9caf1 /rpmqv.c | |
parent | 42981d3ccd4dba420beead451a658c7487066d18 (diff) | |
download | librpm-tizen-1a42537124a5e6804821ddb17a63a0ee86724b5a.tar.gz librpm-tizen-1a42537124a5e6804821ddb17a63a0ee86724b5a.tar.bz2 librpm-tizen-1a42537124a5e6804821ddb17a63a0ee86724b5a.zip |
- permit RSA/{sha1,sha256,sha384,sha512} signature verification.
CVS patchset: 7805
CVS date: 2005/03/13 01:56:50
Diffstat (limited to 'rpmqv.c')
-rwxr-xr-x | rpmqv.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -560,18 +560,22 @@ int main(int argc, const char ** argv) } if (poptPeekArg(optCon)) { - int sigTag; - switch (sigTag = rpmLookupSignatureType(RPMLOOKUPSIG_QUERY)) { + int sigTag = rpmLookupSignatureType(RPMLOOKUPSIG_QUERY); + switch (sigTag) { case 0: break; case RPMSIGTAG_PGP: +#ifdef DYING /* XXX gpg can now be used for RSA signatures. */ if ((sigTag == RPMSIGTAG_PGP || sigTag == RPMSIGTAG_PGP5) && !rpmDetectPGPVersion(NULL)) { fprintf(stderr, _("pgp not found: ")); ec = EXIT_FAILURE; goto exit; } /*@fallthrough@*/ +#endif case RPMSIGTAG_GPG: + case RPMSIGTAG_DSA: + case RPMSIGTAG_RSA: passPhrase = rpmGetPassPhrase(_("Enter pass phrase: "), sigTag); if (passPhrase == NULL) { fprintf(stderr, _("Pass phrase check failed\n")); |