Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/bsd/netpgp/dist add a test for RSA key gener...



details:   https://anonhg.NetBSD.org/src/rev/69bdd7cc8996
branches:  trunk
changeset: 753924:69bdd7cc8996
user:      agc <agc%NetBSD.org@localhost>
date:      Wed Apr 14 06:22:55 2010 +0000

description:
add a test for RSA key generation

diffstat:

 crypto/external/bsd/netpgp/dist/tst |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r d18b9b395794 -r 69bdd7cc8996 crypto/external/bsd/netpgp/dist/tst
--- a/crypto/external/bsd/netpgp/dist/tst       Wed Apr 14 06:10:32 2010 +0000
+++ b/crypto/external/bsd/netpgp/dist/tst       Wed Apr 14 06:22:55 2010 +0000
@@ -31,7 +31,7 @@
        su root -c "make install"'
 
 passed=0
-total=27
+total=28
 echo "======> sign/verify 180938 file"
 cp configure a
 /usr/bin/netpgp --sign a
@@ -123,5 +123,7 @@
 /usr/bin/netpgp --verify h.sig || passed=$(expr $passed + 1)
 echo "======> list signatures and subkey signatures"
 /usr/bin/netpgpkeys --list-sigs && passed=$(expr $passed + 1)
+echo "======> generate a new RSA key"
+/usr/bin/netpgpkeys --generate-key && passed=$(expr $passed + 1)
 rm -f a a.gpg b b.gpg c c.gpg d d.gpg e f f.sig g g.asc g2 a2 a3 a4 a5 h h.sig
 echo "Passed ${passed}/${total} tests"



Home | Main Index | Thread Index | Old Index