The NetBSD Project

CVS log for pkgsrc/security/netpgpverify/Makefile

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / security / netpgpverify

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.22.42.1: download - view: text, markup, annotated - select for diffs
Sat Jan 24 03:06:28 2026 UTC (9 months, 3 weeks ago) by maya
Branches: pkgsrc-2025Q4
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +2 -1 lines
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

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Jan 4 06:19:39 2026 UTC (10 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, HEAD
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -1 lines
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

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Nov 1 11:28:35 2020 UTC (6 years ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q4-base, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Branch point for: pkgsrc-2025Q4
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
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.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Jan 18 23:35:10 2020 UTC (6 years, 9 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
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.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Feb 19 22:41:50 2016 UTC (10 years, 8 months ago) by agc
Branches: MAIN
CVS tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -2 lines
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.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Nov 3 16:50:32 2015 UTC (11 years ago) by agc
Branches: MAIN
CVS tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
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.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Oct 1 01:14:07 2015 UTC (11 years, 1 month ago) by agc
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
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

Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 26 06:04:13 2015 UTC (11 years, 1 month ago) by ryoon
Branches: pkgsrc-2015Q3
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +2 -2 lines
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

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Sep 25 15:46:58 2015 UTC (11 years, 1 month ago) by agc
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
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

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Sep 12 02:19:06 2015 UTC (11 years, 2 months ago) by agc
Branches: MAIN
CVS tags: pkgsrc-2015Q3-base
Branch point for: pkgsrc-2015Q3
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
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!

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Sep 1 19:38:42 2015 UTC (11 years, 2 months ago) by agc
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
Update netpgpverify to 20150901

+ rename all the symbols I could fine which could conflict with those
  in libcrypto.  requested by joerg

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Aug 17 11:37:55 2015 UTC (11 years, 3 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -1 lines
Portability fixes.  Add a test target and additional tests.

Reviewed by agc.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Feb 5 00:21:57 2015 UTC (11 years, 9 months ago) by agc
Branches: MAIN
CVS tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
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

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Feb 3 21:34:57 2015 UTC (11 years, 9 months ago) by agc
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
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

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Jan 30 18:47:50 2015 UTC (11 years, 9 months ago) by agc
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
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.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Dec 4 20:08:47 2014 UTC (11 years, 11 months ago) by agc
Branches: MAIN
CVS tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
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

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Nov 29 20:19:46 2014 UTC (11 years, 11 months ago) by agc
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
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

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jul 12 15:45:52 2014 UTC (12 years, 4 months ago) by agc
Branches: MAIN
CVS tags: pkgsrc-2014Q3-base, pkgsrc-2014Q3
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
Update netpgpverify package to 20140712

+ bring the bignum implementation up to the latest version

	+ radix conversion routines added
	+ bitwise operations added
	+ whitespace cleanups

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Mar 5 04:51:37 2014 UTC (12 years, 8 months ago) by agc
Branches: MAIN
CVS tags: pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
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

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Feb 16 17:21:15 2014 UTC (12 years, 9 months ago) by agc
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
Update security/netpgpverify to 20140210

minor lint fix

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Feb 4 02:11:18 2014 UTC (12 years, 9 months ago) by agc
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
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).

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Dec 20 17:16:48 2013 UTC (12 years, 10 months ago) by agc
Branches: MAIN
CVS tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
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

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Apr 26 23:24:55 2013 UTC (13 years, 6 months ago) by agc
Branches: MAIN
CVS tags: pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
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.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Mar 16 07:32:34 2013 UTC (13 years, 8 months ago) by agc
Branches: MAIN
CVS tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -12 lines
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

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Feb 23 21:11:56 2013 UTC (13 years, 8 months ago) by agc
Branches: TNF
CVS tags: pkgsrc-base
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
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.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Feb 23 21:11:56 2013 UTC (13 years, 8 months ago) by agc
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>