summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-04-12 14:06:17 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-04-12 14:06:17 +0000
commit4bb93e28eb249b781cdb6c435105933019aa9808 (patch)
treea632e0ce928cb9da48a9b61141cea039e56d5ae9 /regress
parent6cf0f7bac44c66d0848b84fc31c1765c26512755 (diff)
tests for transport mode, not connected yet
Diffstat (limited to 'regress')
-rw-r--r--regress/sbin/ipsecctl/sa11.in42
-rw-r--r--regress/sbin/ipsecctl/sa11.ok52
-rw-r--r--regress/sbin/ipsecctl/sa12.in14
-rw-r--r--regress/sbin/ipsecctl/sa12.ok28
4 files changed, 136 insertions, 0 deletions
diff --git a/regress/sbin/ipsecctl/sa11.in b/regress/sbin/ipsecctl/sa11.in
new file mode 100644
index 00000000000..f3d64df7010
--- /dev/null
+++ b/regress/sbin/ipsecctl/sa11.in
@@ -0,0 +1,42 @@
+esp transport from 1.1.1.1 to 2.2.2.2 spi 0x1eadbeef:0xbeef1ead \
+ authkey file "DIR/ak256:DIR/ak256" \
+ enckey file "DIR/ek160:DIR/ek160"
+esp transport from 1.1.1.2 to 2.2.2.2 spi 0x2eadbeef:0xbeef2ead \
+ enc 3des-cbc \
+ auth hmac-sha1 \
+ authkey file "DIR/ak160:DIR/ak160" \
+ enckey file "DIR/ek192:DIR/ek192"
+esp transport from 1.1.1.3 to 2.2.2.2 spi 0x3eadbeef:0xbeef3ead \
+ enc des-cbc \
+ auth hmac-sha1 \
+ authkey file "DIR/ak160:DIR/ak160" \
+ enckey file "DIR/ek64:DIR/ek64"
+esp transport from 1.1.1.4 to 2.2.2.2 spi 0x4eadbeef:0xbeef4ead \
+ enc aes \
+ auth hmac-sha1 \
+ authkey file "DIR/ak160:DIR/ak160" \
+ enckey file "DIR/ek128:DIR/ek128"
+esp transport from 1.1.1.5 to 2.2.2.2 spi 0x5eadbeef:0xbeef5ead \
+ enc aesctr \
+ auth hmac-sha1 \
+ authkey file "DIR/ak160:DIR/ak160" \
+ enckey file "DIR/ek160:DIR/ek160"
+esp transport from 1.1.1.6 to 2.2.2.2 spi 0x6eadbeef:0xbeef6ead \
+ enc blowfish \
+ auth hmac-sha1 \
+ authkey file "DIR/ak160:DIR/ak160" \
+ enckey file "DIR/ek160:DIR/ek160"
+esp transport from 1.1.1.7 to 2.2.2.2 spi 0x7eadbeef:0xbeef7ead \
+ enc cast128 \
+ auth hmac-sha1 \
+ authkey file "DIR/ak160:DIR/ak160" \
+ enckey file "DIR/ek128:DIR/ek128"
+esp transport from 1.1.1.8 to 2.2.2.2 spi 0x8eadbeef:0xbeef8ead \
+ enc null \
+ auth hmac-sha1 \
+ authkey file "DIR/ak160:DIR/ak160"
+esp transport from 1.1.1.9 to 2.2.2.2 spi 0x9eadbeef:0xbeef9ead \
+ enc skipjack \
+ auth hmac-sha1 \
+ authkey file "DIR/ak160:DIR/ak160" \
+ enckey file "DIR/ek80:DIR/ek80"
diff --git a/regress/sbin/ipsecctl/sa11.ok b/regress/sbin/ipsecctl/sa11.ok
new file mode 100644
index 00000000000..e71ea4478e9
--- /dev/null
+++ b/regress/sbin/ipsecctl/sa11.ok
@@ -0,0 +1,52 @@
+esp transport from 1.1.1.1 to 2.2.2.2 spi 0x1eadbeef auth hmac-sha2-256 enc aesctr
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+esp transport from 2.2.2.2 to 1.1.1.1 spi 0xbeef1ead auth hmac-sha2-256 enc aesctr
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+esp transport from 1.1.1.2 to 2.2.2.2 spi 0x2eadbeef auth hmac-sha1 enc 3des-cbc
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+esp transport from 2.2.2.2 to 1.1.1.2 spi 0xbeef2ead auth hmac-sha1 enc 3des-cbc
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+esp transport from 1.1.1.3 to 2.2.2.2 spi 0x3eadbeef auth hmac-sha1 enc des-cbc
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeee
+esp transport from 2.2.2.2 to 1.1.1.3 spi 0xbeef3ead auth hmac-sha1 enc des-cbc
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeee
+esp transport from 1.1.1.4 to 2.2.2.2 spi 0x4eadbeef auth hmac-sha1 enc aes
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+esp transport from 2.2.2.2 to 1.1.1.4 spi 0xbeef4ead auth hmac-sha1 enc aes
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+esp transport from 1.1.1.5 to 2.2.2.2 spi 0x5eadbeef auth hmac-sha1 enc aesctr
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+esp transport from 2.2.2.2 to 1.1.1.5 spi 0xbeef5ead auth hmac-sha1 enc aesctr
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+esp transport from 1.1.1.6 to 2.2.2.2 spi 0x6eadbeef auth hmac-sha1 enc blowfish
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+esp transport from 2.2.2.2 to 1.1.1.6 spi 0xbeef6ead auth hmac-sha1 enc blowfish
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+esp transport from 1.1.1.7 to 2.2.2.2 spi 0x7eadbeef auth hmac-sha1 enc cast128
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+esp transport from 2.2.2.2 to 1.1.1.7 spi 0xbeef7ead auth hmac-sha1 enc cast128
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+esp transport from 1.1.1.8 to 2.2.2.2 spi 0x8eadbeef auth hmac-sha1 enc null
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+esp transport from 2.2.2.2 to 1.1.1.8 spi 0xbeef8ead auth hmac-sha1 enc null
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+esp transport from 1.1.1.9 to 2.2.2.2 spi 0x9eadbeef auth hmac-sha1 enc skipjack
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeee
+esp transport from 2.2.2.2 to 1.1.1.9 spi 0xbeef9ead auth hmac-sha1 enc skipjack
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ enckey 0xeeeeeeeeeeeeeeeeeeee
diff --git a/regress/sbin/ipsecctl/sa12.in b/regress/sbin/ipsecctl/sa12.in
new file mode 100644
index 00000000000..3ebf84ecd1d
--- /dev/null
+++ b/regress/sbin/ipsecctl/sa12.in
@@ -0,0 +1,14 @@
+ah transport from 1.1.1.1 to 2.2.2.2 spi 0x1eadbeef:0xbeef1ead \
+ authkey file "DIR/ak256:DIR/ak256"
+ah transport from 1.1.1.2 to 2.2.2.2 spi 0x2eadbeef:0xbeef2ead auth hmac-md5 \
+ authkey file "DIR/ak128:DIR/ak128"
+ah transport from 1.1.1.3 to 2.2.2.2 spi 0x3eadbeef:0xbeef3ead auth hmac-ripemd160 \
+ authkey file "DIR/ak160:DIR/ak160"
+ah transport from 1.1.1.4 to 2.2.2.2 spi 0x4eadbeef:0xbeef4ead auth hmac-sha1 \
+ authkey file "DIR/ak160:DIR/ak160"
+ah transport from 1.1.1.5 to 2.2.2.2 spi 0x5eadbeef:0xbeef5ead auth hmac-sha2-256 \
+ authkey file "DIR/ak256:DIR/ak256"
+ah transport from 1.1.1.6 to 2.2.2.2 spi 0x6eadbeef:0xbeef6ead auth hmac-sha2-384 \
+ authkey file "DIR/ak384:DIR/ak384"
+ah transport from 1.1.1.7 to 2.2.2.2 spi 0x7eadbeef:0xbeef7ead auth hmac-sha2-512 \
+ authkey file "DIR/ak512:DIR/ak512"
diff --git a/regress/sbin/ipsecctl/sa12.ok b/regress/sbin/ipsecctl/sa12.ok
new file mode 100644
index 00000000000..efff6d642bb
--- /dev/null
+++ b/regress/sbin/ipsecctl/sa12.ok
@@ -0,0 +1,28 @@
+ah transport from 1.1.1.1 to 2.2.2.2 spi 0x1eadbeef auth hmac-sha2-256
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 2.2.2.2 to 1.1.1.1 spi 0xbeef1ead auth hmac-sha2-256
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 1.1.1.2 to 2.2.2.2 spi 0x2eadbeef auth hmac-md5
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 2.2.2.2 to 1.1.1.2 spi 0xbeef2ead auth hmac-md5
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 1.1.1.3 to 2.2.2.2 spi 0x3eadbeef auth hmac-ripemd160
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 2.2.2.2 to 1.1.1.3 spi 0xbeef3ead auth hmac-ripemd160
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 1.1.1.4 to 2.2.2.2 spi 0x4eadbeef auth hmac-sha1
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 2.2.2.2 to 1.1.1.4 spi 0xbeef4ead auth hmac-sha1
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 1.1.1.5 to 2.2.2.2 spi 0x5eadbeef auth hmac-sha2-256
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 2.2.2.2 to 1.1.1.5 spi 0xbeef5ead auth hmac-sha2-256
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 1.1.1.6 to 2.2.2.2 spi 0x6eadbeef auth hmac-sha2-384
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 2.2.2.2 to 1.1.1.6 spi 0xbeef6ead auth hmac-sha2-384
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 1.1.1.7 to 2.2.2.2 spi 0x7eadbeef auth hmac-sha2-512
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ah transport from 2.2.2.2 to 1.1.1.7 spi 0xbeef7ead auth hmac-sha2-512
+ authkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa