Sync with netpgpverify-20201101 from pkgsrc (the master for this).
No effective change except for version bump.
This commit is contained in:
parent
a240d28f83
commit
64c690aaaf
55
crypto/external/bsd/netpgp/dist/src/netpgpverify/HOWTO
vendored
Normal file
55
crypto/external/bsd/netpgp/dist/src/netpgpverify/HOWTO
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
How to use ssh keys in PGP signatures
|
||||
=====================================
|
||||
|
||||
1. generate a new ssh key pair
|
||||
|
||||
% ssh-keygen -t rsa -b 4096 -f sshtest-20140202
|
||||
Generating public/private rsa key pair.
|
||||
Enter passphrase (empty for no passphrase):
|
||||
Enter same passphrase again:
|
||||
Your identification has been saved in sshtest-20140202.
|
||||
Your public key has been saved in sshtest-20140202.pub.
|
||||
The key fingerprint is:
|
||||
73:98:cf:3d:89:05:a1:6b:39:6b:24:f9:10:32:7a:05 agc@netbsd-001.cupertino.alistaircrooks.com
|
||||
The key's randomart image is:
|
||||
+--[ RSA 4096]----+
|
||||
| E . |
|
||||
| . . . |
|
||||
| o o . . |
|
||||
| . + o = . |
|
||||
| . . + S . . |
|
||||
| . * B + . |
|
||||
| + + + |
|
||||
| . . |
|
||||
| |
|
||||
+-----------------+
|
||||
%
|
||||
|
||||
2. sign newdata using netpgp
|
||||
|
||||
% netpgp -s -S sshtest-20140202 newdata
|
||||
signature 4096/RSA (Encrypt or Sign) 1c5ef29143e3e3ae 2014-02-02
|
||||
Key fingerprint: a4eb b577 ff2e f878 ea40 8c14 1c5e f291 43e3 e3ae
|
||||
uid netbsd-001.cupertino.alistaircrooks.com (sshtest-20140202.pub) <agc@netbsd-001.cupertino.alistaircrooks.com>
|
||||
%
|
||||
|
||||
3. verify signature on newdata
|
||||
|
||||
% ./netpgpverify -S sshtest-20140202.pub newdata.gpg
|
||||
Good signature for newdata.gpg made Sun Feb 2 13:40:07 2014
|
||||
signature 4096/RSA (Encrypt or Sign) 1c5ef29143e3e3ae 2014-02-02
|
||||
fingerprint a4eb b577 ff2e f878 ea40 8c14 1c5e f291 43e3 e3ae
|
||||
uid netbsd-001.cupertino.alistaircrooks.com (sshtest-20140202.pub) <agc@netbsd-001.cupertino.alistaircrooks.com>
|
||||
|
||||
%
|
||||
|
||||
4. get the contents of the file (only if the signature verifies ok)
|
||||
|
||||
% ./netpgpverify -c cat -S sshtest-20140202.pub newdata.gpg
|
||||
/*-
|
||||
* Copyright (c) 2012 Alistair Crooks <agc@NetBSD.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile.in,v 1.11 2017/04/17 19:50:28 agc Exp $
|
||||
# $NetBSD: Makefile.in,v 1.12 2020/11/01 11:29:17 wiz Exp $
|
||||
|
||||
PROG=netpgpverify
|
||||
|
||||
@ -16,7 +16,7 @@ MANDIR=@MANDIR@
|
||||
all: ${PROG}
|
||||
|
||||
${PROG}: ${OBJS}
|
||||
${CC} ${OBJS} -o ${PROG}
|
||||
${CC} ${LDFLAGS} ${CFLAGS} ${OBJS} -o ${PROG}
|
||||
|
||||
install:
|
||||
install -c -s ${PROG} ${DESTDIR}${PREFIX}/bin
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bzlib_private.h,v 1.4 2020/05/04 00:18:34 agc Exp $ */
|
||||
/* $NetBSD: bzlib_private.h,v 1.5 2020/11/01 11:29:17 wiz Exp $ */
|
||||
|
||||
|
||||
/*-------------------------------------------------------------*/
|
||||
@ -32,7 +32,7 @@
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#include "bzlib.h"
|
||||
#include "netpgpv-bzlib.h"
|
||||
|
||||
|
||||
|
||||
|
7
crypto/external/bsd/netpgp/dist/src/netpgpverify/dash-escaped-text
vendored
Normal file
7
crypto/external/bsd/netpgp/dist/src/netpgpverify/dash-escaped-text
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
From sea to shining sea
|
||||
Dash escape me harder
|
||||
- at least once
|
||||
-- no, twice
|
||||
-well, curses, folied again
|
||||
-------
|
||||
-if it wasn't for you pesky kids, I'd have got away with it
|
21
crypto/external/bsd/netpgp/dist/src/netpgpverify/dash-escaped-text.asc
vendored
Normal file
21
crypto/external/bsd/netpgp/dist/src/netpgpverify/dash-escaped-text.asc
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA1
|
||||
|
||||
- From sea to shining sea
|
||||
Dash escape me harder
|
||||
- - at least once
|
||||
- -- no, twice
|
||||
- -well, curses, folied again
|
||||
- -------
|
||||
- -if it wasn't for you pesky kids, I'd have got away with it
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1
|
||||
|
||||
iQEcBAEBAgAGBQJXbXhIAAoJEBto3PzAWWgjuCUH/0kGBjK2RshejxKf+87xZNV9
|
||||
zSqoc17n5ViXDbVM5v7P6zAdjYVVaaZc6U+8DMJhbPbvbUTsEiFlp3Kh9BiBz5A5
|
||||
BtqXJmkyF2C5y/HTf9vPgbw8UAiqnNFYwlpWvrlxopAv31x7UIDNGJ9/oAKw0dqM
|
||||
XujJub4lRBX+V2RlFWage/fAmuslq3lz7QJpLM5EpePNGQVXM1c9x+jhvgSXucHU
|
||||
2UVcsUb8Y2nCXRoJKcIK4iGoIoqnoFk1WAa+/S593h2Iz+zzPqvVlPU1tyA27v/s
|
||||
lgQ3DakeOeiae33gqK3iXqDNXady1te7hYGyhWT4G5Kuz+8tMMQXWAg4e+olEtk=
|
||||
=n0R+
|
||||
-----END PGP SIGNATURE-----
|
@ -40,7 +40,7 @@
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "bzlib.h"
|
||||
#include "netpgpv-bzlib.h"
|
||||
#include "zlib.h"
|
||||
|
||||
#include "array.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bzlib.h,v 1.2 2020/05/04 00:18:34 agc Exp $ */
|
||||
/* $NetBSD: netpgpv-bzlib.h,v 1.1 2020/11/01 11:29:17 wiz Exp $ */
|
||||
|
||||
|
||||
/*-------------------------------------------------------------*/
|
@ -23,9 +23,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#ifndef NETPGP_VERIFY_H_
|
||||
#define NETPGP_VERIFY_H_ 20200503
|
||||
#define NETPGP_VERIFY_H_ 20201101
|
||||
|
||||
#define NETPGPVERIFY_VERSION "netpgpverify portable 20200503"
|
||||
#define NETPGPVERIFY_VERSION "netpgpverify portable 20201101"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
|
17
crypto/external/bsd/netpgp/dist/src/netpgpverify/verify.map
vendored
Normal file
17
crypto/external/bsd/netpgp/dist/src/netpgpverify/verify.map
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
NETPGPVERIFY_5_0 {
|
||||
global:
|
||||
pgpv_new;
|
||||
pgpv_new_cursor;
|
||||
pgpv_read_pubring;
|
||||
pgpv_read_ssh_pubkeys;
|
||||
pgpv_verify;
|
||||
pgpv_get_verified;
|
||||
pgpv_dump;
|
||||
pgpv_get_entry;
|
||||
pgpv_get_cursor_num;
|
||||
pgpv_get_cursor_str;
|
||||
pgpv_get_cursor_element;
|
||||
pgpv_close;
|
||||
pgpv_cursor_close;
|
||||
local: *;
|
||||
};
|
Loading…
Reference in New Issue
Block a user