Commit graph

28 commits

Author SHA1 Message Date
agc
0cfaed6376 forcibly disable tools build when running the testing script - found when
testing the src/ version, benign for pkgsrc. ride previous version bump.
2015-02-05 01:28:25 +00:00
agc
804fbc2e4d appease compiler warning police - initialise a variable in case it's otherwise
"used uninitialised". ride previous version bump.
2015-02-05 00:58:02 +00:00
agc
b24a4c3e01 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
2015-02-05 00:21:57 +00:00
agc
1d1b6986c4 The test file for the "one key" test has embedded CVS Identifiers, so
work around this.
2015-02-04 17:53:39 +00:00
agc
f5b8aa147a add a minimalist shell script to make a tarball of the sources - requested
by various people.
2015-02-04 17:45:04 +00:00
agc
ada62f45b2 Update netpgpverify, and libnetpgpverify, to 20150204
+ dump the huge output 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
2015-02-03 21:36:48 +00:00
agc
e5416534d1 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
2015-02-03 21:34:57 +00:00
agc
5461aea2cb Update netpgpverify, and libnetpgpverify, to 20150203
+ portability fixes to make netpgpverify build on freebsd 10.1 with WARNS=5

+ fixed an oversight in the testit.sh script
2015-02-03 21:13:17 +00:00
agc
d5812ef86c allow the keyring to be set on the command line in the chk.sh script
this syncs with sources under src/crypto
2015-01-31 22:00:55 +00:00
agc
cd0b62f435 Missed file in previous - sync with reality... 2015-01-30 18:55:01 +00:00
agc
9f4436de94 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.
2015-01-30 18:47:50 +00:00
agc
de405590c8 add another test, after some prodding from riz@ - check that the verification
fails when no valid public key for the signature is provided.
2014-12-07 22:21:36 +00:00
agc
61ae5a52f1 Also modify the header guard definition, which libnetpgpverify uses to
get its version number.
2014-12-04 20:14:13 +00:00
agc
d35575aa8e 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
2014-12-04 20:08:47 +00:00
agc
085d9acb2a 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
2014-11-29 20:19:46 +00:00
agc
655471f565 Update netpgpverify package to 20140712
+ bring the bignum implementation up to the latest version

	+ radix conversion routines added
	+ bitwise operations added
	+ whitespace cleanups
2014-07-12 15:45:52 +00:00
agc
b342d7dcbe 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
2014-03-05 04:51:37 +00:00
agc
bbaf06d39d Update security/netpgpverify to 20140210
minor lint fix
2014-02-16 17:21:15 +00:00
agc
06180dd316 Update the libnetpgpverify package to version 20140210
Switch over to using the zero-pre-requisite netpgpverify sources by
using reachover infrastructure to make sure we have one set of
sources.

This also brings with it the benefit of being able to use SSH
public keys, as well as PGP pub keys, when verifying signatures.

Extend the package building mechanism so that it can be built using
libtool (the default), or without libtool, depending on whether
"BOOTSTRAP" is defined at package build time.
2014-02-16 17:15:48 +00:00
agc
4bb56276e1 Update the example ssh-key-signed input file, so that there's no embedded
RCS Id in it. Re-sign (both embedded and detached) signatures on this data.

No functional change, so no version bumps.
2014-02-10 07:46:44 +00:00
agc
2c8989d15c forgot a file in the previous changes 2014-02-04 02:11:56 +00:00
agc
78d868bcc7 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).
2014-02-04 02:11:18 +00:00
agc
98df5159ca 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
2013-12-20 17:16:48 +00:00
wiz
b6d125ee08 Use Mt for email addresses. 2013-07-20 21:50:52 +00:00
agc
437e2e0fb9 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.
2013-04-26 23:24:55 +00:00
joerg
c2aac8d63f Don't try to use weak aliases. 2013-03-24 16:48:17 +00:00
agc
91e7adffd5 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
2013-03-16 07:32:34 +00:00
agc
ed05475ec5 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.
2013-02-23 21:11:56 +00:00