From 1a42537124a5e6804821ddb17a63a0ee86724b5a Mon Sep 17 00:00:00 2001 From: jbj Date: Sun, 13 Mar 2005 01:56:50 +0000 Subject: - permit RSA/{sha1,sha256,sha384,sha512} signature verification. CVS patchset: 7805 CVS date: 2005/03/13 01:56:50 --- rpmqv.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'rpmqv.c') diff --git a/rpmqv.c b/rpmqv.c index 21a065a7d..d16464752 100755 --- a/rpmqv.c +++ b/rpmqv.c @@ -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")); -- cgit v1.2.3