summaryrefslogtreecommitdiff
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
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
-rw-r--r--.exclude1
-rw-r--r--CHANGES3
-rw-r--r--rpm.spec.in3
-rwxr-xr-xrpmqv.c8
4 files changed, 11 insertions, 4 deletions
diff --git a/.exclude b/.exclude
index 3bbafb9db..8a3de7b4a 100644
--- a/.exclude
+++ b/.exclude
@@ -3,6 +3,7 @@ CVS
.depend
.depend-done
.libs
+aclocal.m4
apidocs
autodeps
autom4te.cache
diff --git a/CHANGES b/CHANGES
index 34d376ed3..573e2fbc6 100644
--- a/CHANGES
+++ b/CHANGES
@@ -8,8 +8,9 @@
- remove remnant -I/opt/local hacks, --prefix=/usr is recommended.
- rework configure.ac et al to lose internal library baggage flexibly.
- updated sv.po <goeran@uddrborg.se>.
- - permit gpg to be used for RSA/MD5 signatures.
+ - permit gpg to be used for RSA signatures.
- permit RSA key sizes larger than 1024 bits.
+ - permit RSA/{sha1,sha256,sha384,sha512} signature verification.
4.4 -> 4.4.1:
- force *.py->*.pyo byte code compilation with brp-python-bytecompile.
diff --git a/rpm.spec.in b/rpm.spec.in
index 3a4dd52a1..6b81c72a0 100644
--- a/rpm.spec.in
+++ b/rpm.spec.in
@@ -499,8 +499,9 @@ exit 0
%changelog
* Wed Mar 9 2005 Jeff Johnson <jbj@jbj.org> 4.4.2-0.6
-- permit gpg to be used for RSA/MD5 signatures.
+- permit gpg to be used for RSA signatures.
- permit RSA key sizes larger than 1024 bits.
+- permit RSA/{sha1,sha256,sha384,sha512} signature verification.
* Sun Feb 20 2005 Jeff Johnson <jbj@jbj.org> 4.4.2-0.5
- updated sv.po <goeran@uddrborg.se>.
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"));