summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2005-03-13 01:56:50 +0000
committerjbj <devnull@localhost>2005-03-13 01:56:50 +0000
commit1a42537124a5e6804821ddb17a63a0ee86724b5a (patch)
tree0b19b735972c95d9fce19d659610bd1c97e9caf1 /rpmqv.c
parent42981d3ccd4dba420beead451a658c7487066d18 (diff)
downloadlibrpm-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-xrpmqv.c8
1 files changed, 6 insertions, 2 deletions
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"));