Up to [cvs.NetBSD.org] / pkgsrc / security / netpgpverify
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Pullup ticket #7047 - requested by wiz
security/netpgpverify: Bug fix
Revisions pulled up:
- security/netpgpverify/Makefile 1.23
- security/netpgpverify/files/Makefile.in 1.10
- security/netpgpverify/files/gpg2test 1.1
- security/netpgpverify/files/gpg2test.gpg2 1.1
- security/netpgpverify/files/keypubring.gpg2 1.1
- security/netpgpverify/files/keysecring.gpg2 1.1
- security/netpgpverify/files/libverify.c 1.32
---
Module Name: pkgsrc
Committed By: riastradh
Date: Sun Jan 4 06:19:40 UTC 2026
Modified Files:
pkgsrc/security/netpgpverify: Makefile
pkgsrc/security/netpgpverify/files: Makefile.in libverify.c
Added Files:
pkgsrc/security/netpgpverify/files: gpg2test gpg2test.gpg2
keypubring.gpg2 keysecring.gpg2
Log Message:
security/netpgpverify: Handle issuer fingerprint subpackets.
This is an extremely dodgy stop-gap measure to verify signatures
produced by gpg2. It does nothing to address pervasive problems in
netpgpverify, like PR security/57449 or PR bin/59823, or even more
narrowly scoped problems with using keyids instead of fingerprints.
I'm a little reluctant to even commit this stop-gap because the
problems are so bad, and a band-aid won't fix a spurting carotid.
The symptom is:
> ./netpgpverify -k keypubring.gpg2 gpg2test.gpg2
> Ignoring unusual/reserved signature subpacket 34
> Signature did not match contents -- Signature key id 38fa6a2833ed1efa does not match onepass keyid
Test case generated by:
mkdir -m 0700 gpghome
gpg2 --homedir gpghome --batch --passphrase '' \
--quick-gen-key user@example.com rsa2048 sign never
echo hello world >gpg2test
gpg2 --homedir gpghome --batch --no-comments --no-emit-version \
--output gpg2test.gpg2 --sign gpg2test
gpg2 --homedir gpghome --batch --no-comments --no-emit-version \
--export-secret-keys >keysecring.gpg2
gpg2 --homedir gpghome --batch --no-comments --no-emit-version \
--export >keypubring.gpg2
security/netpgpverify: Handle issuer fingerprint subpackets.
This is an extremely dodgy stop-gap measure to verify signatures
produced by gpg2. It does nothing to address pervasive problems in
netpgpverify, like PR security/57449 or PR bin/59823, or even more
narrowly scoped problems with using keyids instead of fingerprints.
I'm a little reluctant to even commit this stop-gap because the
problems are so bad, and a band-aid won't fix a spurting carotid.
The symptom is:
> ./netpgpverify -k keypubring.gpg2 gpg2test.gpg2
> Ignoring unusual/reserved signature subpacket 34
> Signature did not match contents -- Signature key id 38fa6a2833ed1efa does not match onepass keyid
Test case generated by:
mkdir -m 0700 gpghome
gpg2 --homedir gpghome --batch --passphrase '' \
--quick-gen-key user@example.com rsa2048 sign never
echo hello world >gpg2test
gpg2 --homedir gpghome --batch --no-comments --no-emit-version \
--output gpg2test.gpg2 --sign gpg2test
gpg2 --homedir gpghome --batch --no-comments --no-emit-version \
--export-secret-keys >keysecring.gpg2
gpg2 --homedir gpghome --batch --no-comments --no-emit-version \
--export >keypubring.gpg2
netpgpverify: update to 20201101 Merge: absorb issuer fingerprint (RFC4880bis 5.2.3.28) in libverify.c from jhigh from src/ While here, fix build with RELRO and a pkglint warning. Bump version to 20201101.
all: migrate several HOMEPAGEs to https pkglint --only "https instead of http" -r -F With manual adjustments afterwards since pkglint 19.4.4 fixed a few indentations in unrelated lines. This mainly affects projects hosted at SourceForce, as well as freedesktop.org, CTAN and GNU.
Remove an item from the netpgpverify/libnetpgpverify TODO list: + get rid of calls to snprintf which simply add the returned value to the number of characters used so far. This practice is unsafe. Instead, use a dynamic buffer and grow its size to accommodate the contents. + add USE_ARG definition to some files which use it but don't check to see that it's been defined pkgsrc changes: + Bump version number to 20160214 + Use the same method as libnetpgpverify for finding the version number from the sources.
Update netpgpverify to 20151103 Changes since previous version: + fix a bug where SHA512 case was missed in the digest_get_prefix() function. Bug and fix from Felix Lange.
Update netpgpverify to 20150930. Changes since 20150919: + fixed minor bug in BN_rand() function - used field wasn't set + added BN_gcd() function + added translation layer in header file, so that library can be called as a BIGNUM/BN_* replacement if USE_BN_INTERFACE is defined at compile-time
Pullup ticket #4816 - requested by agc
security/netpgpverify: bug fix patch
security/libnetpgpverify: bug fix patch
Revisions pulled up:
- pkgsrc/security/netpgpverify: Makefile 1.17
- pkgsrc/security/netpgpverify/files/digest.c 1.4
- pkgsrc/security/netpgpverify/files/misc.c 1.4
- pkgsrc/security/netpgpverify/files/rsa.c 1.4
- pkgsrc/security/netpgpverify/files/verify.h 1.16
---
Module Name: pkgsrc
Committed By: agc
Date: Fri Sep 25 15:46:58 UTC 2015
Modified Files:
pkgsrc/security/netpgpverify: Makefile
pkgsrc/security/netpgpverify/files: digest.c misc.c rsa.c verify.h
Log Message:
Update netpgpverify, and libnetpgpverify, from version 20150911 to
version 20150919
Changes:
+ get rid of unnecessary header inclusion (sys/syslog.h), which gives
problems on HP/UX and is unused
from Tobias Nygren
Update netpgpverify, and libnetpgpverify, from version 20150911 to version 20150919 Changes: + get rid of unnecessary header inclusion (sys/syslog.h), which gives problems on HP/UX and is unused from Tobias Nygren
Update netpgpverify to version 20150911. Changes since previous version (20150901) + Apparently, OS X 10.4 does not have an implementation of le32dec(). Instead, unroll the inline function. Bug report from Sevan - thanks!
Update netpgpverify to 20150901 + rename all the symbols I could fine which could conflict with those in libcrypto. requested by joerg
Portability fixes. Add a test target and additional tests. Reviewed by agc.
Update netpgpverify (and libnetpgpverify) to version 20150205 + recognise signatures made by subkeys as well as by primary keys + print out the relevant key which signed the file, even if it's a subkey and not the primary key itself. + keep the same API as before with many thanks to Jonathan Perkin
Update netpgpverify, and libnetpgpverify, to 20150204 + dump the huge output in testing script to /dev/null so that we can see what's happening with the other tests in testit.sh + fix from jperkin@, don't try to be clever when selecting the only key id in a keyring + add a test for single key (non-ssh) pubring
Update to version 20150115. This version includes support for the '-c dump' command, which dumps the contents of all PGP packets to stdout. Note that since we're verifying, no private keys are involved.
Update netpgpverify to version 20141204 Changes since 20141129: + bring over lint changes from src/crypto version of this utility + add a helper function to get an element from a cursor + added a small compile and test script, which uses BSD makefiles + change WARNS level in BSD Makefile from 6 to 5 - changes to make WARNS=6 compile are way too intrusive and distracting to be useful + bump version to 20141204
Update netpgpverify to version 20141129 + enhancement to tiger.c (from apb, IIRC) to use the union rather than dubious and probably unportable casts. + bump version number
Update netpgpverify package to 20140712 + bring the bignum implementation up to the latest version + radix conversion routines added + bitwise operations added + whitespace cleanups
netpgpverify-20140304: + Check the correct field in the struct is not NULL in sig_verify_dsa() + Move to using our own byte-swapping routines - portability + Check for errors in bzlib + Bump version number to 20140304
Update security/netpgpverify to 20140210 minor lint fix
Update security/netpgpverify to version 20140202 Changes from previous version: Add the ability for netpgpverify to verify ssh-pub-key-based signatures. It is much more likely for ssh (rather than pgp) keys to be available, and used, as a source of authentication data. These changes add the ability for netpgpverify(1) -- the standalone, zero-prereq utility - to verify signatures made by netpgp when using ssh keys. Running the regression tests in WRKDIR gives the following output: % mk -f *.bsd tst ./netpgpverify -k pubring.gpg NetBSD-6.0_RC1_hashes.asc Good signature for NetBSD-6.0_RC1_hashes.asc made Thu Aug 23 11:47:50 2012 signature 4096/RSA (Encrypt or Sign) 064973ac4c4a706e 2009-06-23 fingerprint ddee 2bdb 9c98 a0d1 d4fb dbf7 0649 73ac 4c4a 706e uid NetBSD Security Officer <security-officer@NetBSD.org> ./netpgpverify -k pubring.gpg NetBSD-6.0_RC1_hashes.gpg Good signature for NetBSD-6.0_RC1_hashes.gpg made Thu Mar 14 13:32:59 2013 signature 4096/RSA (Encrypt or Sign) 064973ac4c4a706e 2009-06-23 fingerprint ddee 2bdb 9c98 a0d1 d4fb dbf7 0649 73ac 4c4a 706e uid NetBSD Security Officer <security-officer@NetBSD.org> ./netpgpverify -v netpgpverify portable 20140202 ./netpgpverify -S sshtest-20140202.pub data.gpg Good signature for data.gpg made Mon Feb 3 17:54:21 2014 signature 4096/RSA (Encrypt or Sign) 4d129225945bbb8f 1970-01-01 fingerprint 874b 75de d6a3 341f 2d5a 2219 4d12 9225 945b bb8f uid netbsd-001.cupertino.alistaircrooks.com (sshtest-20140202.pub) <agc@netbsd-001.cupertino.alistaircrooks.com> ./netpgpverify -S sshtest-20140202.pub data.sig Good signature for data.sig made Sun Feb 2 21:45:05 2014 signature 4096/RSA (Encrypt or Sign) 4d129225945bbb8f 1970-01-01 fingerprint 874b 75de d6a3 341f 2d5a 2219 4d12 9225 945b bb8f uid netbsd-001.cupertino.alistaircrooks.com (sshtest-20140202.pub) <agc@netbsd-001.cupertino.alistaircrooks.com> expected failure, to check bad signatures fail to verify sed -e 's|A|B|' data.gpg | ./netpgpverify -S sshtest-20140202.pub Signature did not match contents -- Signature on data did not match *** Error code 1 (ignored) % A new HOWTO file is provided in the sources (files/HOWTO) to show how to sign data using ssh keys and netpgp(1).
Update netpgpverify and libnetpgpverify to version 20131219 Fix a call to mp_radix_size to use a pointer to the BIGNUM, not the address of the pointer, when accessing. Fixes a problem observed in other software when using the same code. The problem was obscured from the compiler because of the use of __UNCONST(). This makes the BN_dec2bn() and BN_hex2bn() functions (in libnetpgpverify) work properly. OK: wiz
Update security/netpgpverify to version 20130426 Change from previous version: + don't assume that output of a "cat" command (where output is sent to stdout if the signature is verified) is able to be written with stdio.
Update netpgpverify, the standalone PGP signature verification utility, to latest 20130316 sources. Changes since previous version: + this version is completely standalone, and relies on no external libraries (other than libc) + updated man page to reflect reality + minor configure script added
Initial import of netpgpverify-20120928 into the Packages Collection netpgpverify is a standalone program to verify a PGP signature on a file or document. Both RSA and DSA signatures are supported, as are binary and document signatures. netpgpverify is compliant with RFC 4880. netpgpverify is a small frontend for libnetpgpverify, to allow PGP digital signatures to be verified from the command line.
Initial revision