summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-01-13 22:29:32 +0000
committertedu <tedu@openbsd.org>2014-01-13 22:29:32 +0000
commitebe736db71294e421b878acba393739a5f72ce59 (patch)
treea0b12f4b6a6c2c336bcdebaa0f90f86d0b537c11
parentDon't eat another token looking for a ';' after skip_to_semi() has (diff)
downloadwireguard-openbsd-ebe736db71294e421b878acba393739a5f72ce59.tar.xz
wireguard-openbsd-ebe736db71294e421b878acba393739a5f72ce59.zip
update for new options and clarify
-rw-r--r--regress/usr.bin/signify/Makefile4
-rw-r--r--regress/usr.bin/signify/signify.sh15
2 files changed, 11 insertions, 8 deletions
diff --git a/regress/usr.bin/signify/Makefile b/regress/usr.bin/signify/Makefile
index 9796bba6328..4a8fb1037ce 100644
--- a/regress/usr.bin/signify/Makefile
+++ b/regress/usr.bin/signify/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.2 2014/01/10 22:52:50 tobiasu Exp $
+# $OpenBSD: Makefile,v 1.3 2014/01/13 22:29:32 tedu Exp $
-CLEANFILES += test.sig
+CLEANFILES += test.sig confirmorders confirmorders.sig
REGRESS_TARGETS = t1
t1:
diff --git a/regress/usr.bin/signify/signify.sh b/regress/usr.bin/signify/signify.sh
index ee9ccca9ec4..d1ef34987ea 100644
--- a/regress/usr.bin/signify/signify.sh
+++ b/regress/usr.bin/signify/signify.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: signify.sh,v 1.3 2014/01/09 18:59:56 tedu Exp $
+# $OpenBSD: signify.sh,v 1.4 2014/01/13 22:29:32 tedu Exp $
srcdir=$1
@@ -11,12 +11,15 @@ forgery="$srcdir/forgery.txt"
set -e
-signify -s $seckey -o test.sig -S $orders
-diff -u test.sig "$orders.sig"
-rm test.sig
+signify -S -s $seckey -x test.sig -m $orders
+diff -u "$orders.sig" test.sig
-signify -p $pubkey -V $orders > /dev/null
+signify -V -p $pubkey -m $orders
-signify -p $pubkey -V $forgery 2> /dev/null && exit 1
+signify -V -p $pubkey -m $forgery 2> /dev/null && exit 1
+
+signify -S -s $seckey -x confirmorders.sig -e -m $orders
+signify -V -p $pubkey -e -m confirmorders
+diff -u $orders confirmorders
true