diff options
-rw-r--r-- | regress/sbin/ipsecctl/Makefile | 16 | ||||
-rw-r--r-- | regress/sbin/ipsecctl/sa1.in | 3 | ||||
-rw-r--r-- | regress/sbin/ipsecctl/sa1.ok | 6 | ||||
-rw-r--r-- | regress/sbin/ipsecctl/sa2.in | 3 | ||||
-rw-r--r-- | regress/sbin/ipsecctl/sa2.ok | 6 | ||||
-rw-r--r-- | regress/sbin/ipsecctl/sa3.in | 6 | ||||
-rw-r--r-- | regress/sbin/ipsecctl/sa3.ok | 6 | ||||
-rw-r--r-- | regress/sbin/ipsecctl/sa4.in | 7 | ||||
-rw-r--r-- | regress/sbin/ipsecctl/sa4.ok | 6 |
9 files changed, 57 insertions, 2 deletions
diff --git a/regress/sbin/ipsecctl/Makefile b/regress/sbin/ipsecctl/Makefile index f5f5294fd1e..f4519d8acef 100644 --- a/regress/sbin/ipsecctl/Makefile +++ b/regress/sbin/ipsecctl/Makefile @@ -1,12 +1,13 @@ -# $OpenBSD: Makefile,v 1.1 2005/08/05 09:18:26 hshoexer Exp $ +# $OpenBSD: Makefile,v 1.2 2005/08/08 14:44:59 hshoexer Exp $ # TARGETS # ipsec: feed ipsecNN.in through ipsecctl and check wether the output matches # ipsecNN.ok # tcpmd5: same as above, but for tcpmd5 rules -IPSECTESTS=1 2 3 4 5 6 7 8 9 10 11 12 +IPSECTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13 TCPMD5TESTS=1 2 +SATESTS=1 2 3 4 SHELL=/bin/sh @@ -29,12 +30,23 @@ tcpmd5${n}: diff -u ${.CURDIR}/tcpmd5${n}.ok /dev/stdin .endfor +.for n in ${SATESTS} +SA_TARGETS+=sa${n} + +sa${n}: + ipsecctl -nv -f - < ${.CURDIR}/sa${n}.in | \ + diff -u ${.CURDIR}/sa${n}.ok /dev/stdin +.endfor + ipsec: ${IPSEC_TARGETS} REGRESS_TARGETS+=ipsec tcpmd5: ${TCPMD5_TARGETS} REGRESS_TARGETS+=tcpmd5 +sa: ${SA_TARGETS} +REGRESS_TARGETS+=sa + alltests: ${REGRESS_TARGETS} .PHONY: ${REGRESS_TARGETS} diff --git a/regress/sbin/ipsecctl/sa1.in b/regress/sbin/ipsecctl/sa1.in new file mode 100644 index 00000000000..db6c7166dc2 --- /dev/null +++ b/regress/sbin/ipsecctl/sa1.in @@ -0,0 +1,3 @@ +esp from 1.1.1.1 to 2.2.2.2 spi 0xdeadbeef:0xbeefdead \ + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \ + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee:0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee diff --git a/regress/sbin/ipsecctl/sa1.ok b/regress/sbin/ipsecctl/sa1.ok new file mode 100644 index 00000000000..49d94ea582f --- /dev/null +++ b/regress/sbin/ipsecctl/sa1.ok @@ -0,0 +1,6 @@ +esp from 1.1.1.1 to 2.2.2.2 spi 0xdeadbeef auth hmac-sha2-256 enc aesctr + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee +esp from 2.2.2.2 to 1.1.1.1 spi 0xbeefdead auth hmac-sha2-256 enc aesctr + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee diff --git a/regress/sbin/ipsecctl/sa2.in b/regress/sbin/ipsecctl/sa2.in new file mode 100644 index 00000000000..d382bc9d0a2 --- /dev/null +++ b/regress/sbin/ipsecctl/sa2.in @@ -0,0 +1,3 @@ +esp from 1.1.1.1 to 2.2.2.2 spi 0xdeadbeef:0xbeefdead auth hmac-sha1 enc aes \ + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \ + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee:0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee diff --git a/regress/sbin/ipsecctl/sa2.ok b/regress/sbin/ipsecctl/sa2.ok new file mode 100644 index 00000000000..3256d18bc17 --- /dev/null +++ b/regress/sbin/ipsecctl/sa2.ok @@ -0,0 +1,6 @@ +esp from 1.1.1.1 to 2.2.2.2 spi 0xdeadbeef auth hmac-sha1 enc aes + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee +esp from 2.2.2.2 to 1.1.1.1 spi 0xbeefdead auth hmac-sha1 enc aes + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee diff --git a/regress/sbin/ipsecctl/sa3.in b/regress/sbin/ipsecctl/sa3.in new file mode 100644 index 00000000000..17ce0faa89d --- /dev/null +++ b/regress/sbin/ipsecctl/sa3.in @@ -0,0 +1,6 @@ +esp from 1.1.1.1 to 2.2.2.2 spi 0xdeadbeef \ + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \ + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee +esp from 2.2.2.2 to 1.1.1.1 spi 0xbeefdead \ + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \ + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee diff --git a/regress/sbin/ipsecctl/sa3.ok b/regress/sbin/ipsecctl/sa3.ok new file mode 100644 index 00000000000..49d94ea582f --- /dev/null +++ b/regress/sbin/ipsecctl/sa3.ok @@ -0,0 +1,6 @@ +esp from 1.1.1.1 to 2.2.2.2 spi 0xdeadbeef auth hmac-sha2-256 enc aesctr + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee +esp from 2.2.2.2 to 1.1.1.1 spi 0xbeefdead auth hmac-sha2-256 enc aesctr + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee diff --git a/regress/sbin/ipsecctl/sa4.in b/regress/sbin/ipsecctl/sa4.in new file mode 100644 index 00000000000..ce15ae1b264 --- /dev/null +++ b/regress/sbin/ipsecctl/sa4.in @@ -0,0 +1,7 @@ +esp from 1.1.1.1 to 2.2.2.2 spi 0xdeadbeef auth hmac-sha1 enc aes \ + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \ + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee + +esp from 2.2.2.2 to 1.1.1.1 spi 0xbeefdead auth hmac-sha1 enc aes \ + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \ + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee diff --git a/regress/sbin/ipsecctl/sa4.ok b/regress/sbin/ipsecctl/sa4.ok new file mode 100644 index 00000000000..3256d18bc17 --- /dev/null +++ b/regress/sbin/ipsecctl/sa4.ok @@ -0,0 +1,6 @@ +esp from 1.1.1.1 to 2.2.2.2 spi 0xdeadbeef auth hmac-sha1 enc aes + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee +esp from 2.2.2.2 to 1.1.1.1 spi 0xbeefdead auth hmac-sha1 enc aes + authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee |