Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/crypto/external/bsd/netpgp/dist



Module Name:    src
Committed By:   agc
Date:           Sat Dec  5 07:08:19 UTC 2009

Modified Files:
        src/crypto/external/bsd/netpgp/dist: tst
        src/crypto/external/bsd/netpgp/dist/src/lib: crypto.h keyring.c
            keyring.h misc.c netpgp.c openssl_crypto.c packet-print.c reader.c
        src/crypto/external/bsd/netpgp/dist/src/netpgp: Makefile netpgp.c
        src/crypto/external/bsd/netpgp/dist/src/netpgpkeys: netpgpkeys.c
Added Files:
        src/crypto/external/bsd/netpgp/dist/src/lib: bufgap.c bufgap.h defs.h
            fastctype.c fastctype.h ops-ssh.h ssh2pgp.c

Log Message:
Add the ability to use ssh host keys (on the fly) to provide RSA keys.

These keys can be used in the same way as normal PGP keys - to sign, verify,
encrypt and decrypt files and data.

        % cp configure a
        % sudo netpgp --ssh-keys --sign --userid 1e00404a a
        Password:
        pub 1024/RSA (Encrypt or Sign) 040180871e00404a 2008-08-11
        Key fingerprint: c4aa b385 4796 e6ce 606c f0c2 0401 8087 1e00 404a
        % sudo chmod 644 a.gpg
        % netpgp --ssh-keys --verify a.gpg
        netpgp: default key set to "C0596823"
        can't open '/etc/ssh/ssh_host_rsa_key'
        Good signature for a.gpg made Fri Dec  4 23:04:36 2009
        using RSA (Encrypt or Sign) key 040180871e00404a
        pub 1024/RSA (Encrypt or Sign) 040180871e00404a 2008-08-11
        Key fingerprint: c4aa b385 4796 e6ce 606c f0c2 0401 8087 1e00 404a
        uid              osx-vm1.crowthorne.alistaircrooks.co.uk 
(/etc/ssh/ssh_host_rsa_key.pub) 
<root%osx-vm1.crowthorne.alistaircrooks.co.uk@localhost>
        % uname -a
        NetBSD osx-vm1.crowthorne.alistaircrooks.co.uk 5.99.20 NetBSD 5.99.20 
(ISCSI) #0: Wed Oct  7 17:16:33 PDT 2009  
agc%osx-vm1.crowthorne.alistaircrooks.co.uk@localhost:/usr/obj/i386/usr/src/sys/arch/i386/compile/ISCSI
 i386
        %

The ssh host keys do not need to be manipulated in any way - the information
is read from existing files.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/crypto/external/bsd/netpgp/dist/tst
cvs rdiff -u -r0 -r1.1 src/crypto/external/bsd/netpgp/dist/src/lib/bufgap.c \
    src/crypto/external/bsd/netpgp/dist/src/lib/bufgap.h \
    src/crypto/external/bsd/netpgp/dist/src/lib/defs.h \
    src/crypto/external/bsd/netpgp/dist/src/lib/fastctype.c \
    src/crypto/external/bsd/netpgp/dist/src/lib/fastctype.h \
    src/crypto/external/bsd/netpgp/dist/src/lib/ops-ssh.h \
    src/crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c
cvs rdiff -u -r1.11 -r1.12 \
    src/crypto/external/bsd/netpgp/dist/src/lib/crypto.h
cvs rdiff -u -r1.22 -r1.23 \
    src/crypto/external/bsd/netpgp/dist/src/lib/keyring.c
cvs rdiff -u -r1.17 -r1.18 \
    src/crypto/external/bsd/netpgp/dist/src/lib/keyring.h \
    src/crypto/external/bsd/netpgp/dist/src/lib/openssl_crypto.c
cvs rdiff -u -r1.24 -r1.25 src/crypto/external/bsd/netpgp/dist/src/lib/misc.c
cvs rdiff -u -r1.30 -r1.31 \
    src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c
cvs rdiff -u -r1.20 -r1.21 \
    src/crypto/external/bsd/netpgp/dist/src/lib/packet-print.c
cvs rdiff -u -r1.25 -r1.26 \
    src/crypto/external/bsd/netpgp/dist/src/lib/reader.c
cvs rdiff -u -r1.3 -r1.4 \
    src/crypto/external/bsd/netpgp/dist/src/netpgp/Makefile
cvs rdiff -u -r1.5 -r1.6 \
    src/crypto/external/bsd/netpgp/dist/src/netpgp/netpgp.c
cvs rdiff -u -r1.3 -r1.4 \
    src/crypto/external/bsd/netpgp/dist/src/netpgpkeys/netpgpkeys.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index