summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobhe <tobhe@openbsd.org>2020-11-05 20:04:42 +0000
committertobhe <tobhe@openbsd.org>2020-11-05 20:04:42 +0000
commitbc72bd2ebc7bba83f18f8d9829f361a6fdde2dd0 (patch)
treefe9c1527adb2ad0e00d2657160b7f23fffac6a4e
parentEnable support for ASN1_DN ipsec identifiers. (diff)
downloadwireguard-openbsd-bc72bd2ebc7bba83f18f8d9829f361a6fdde2dd0.tar.xz
wireguard-openbsd-bc72bd2ebc7bba83f18f8d9829f361a6fdde2dd0.zip
Add test for ASN1_DN ids with existing certs.
-rw-r--r--regress/sbin/iked/live/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/regress/sbin/iked/live/Makefile b/regress/sbin/iked/live/Makefile
index 0dbb14c9a10..0d76972716c 100644
--- a/regress/sbin/iked/live/Makefile
+++ b/regress/sbin/iked/live/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.22 2020/09/15 11:26:48 tobhe Exp $
+# $OpenBSD: Makefile,v 1.23 2020/11/05 20:04:42 tobhe Exp $
# Copyright (c) 2020 Tobias Heider <tobhe@openbsd.org>
#
@@ -108,7 +108,7 @@ SETUP_CONFIG = \
echo "LOCAL_ADDR=\"$$local\"" >> $@_$$side.conf; \
echo "PEER_ADDR=\"$$peer\"" >> $@_$$side.conf; \
echo "IPCOMP=\"$$ipcomp\"" >> $@_$$side.conf; \
- echo "SRCID=\"$$srcid\"" >> $@_$$side.conf; \
+ echo "SRCID=\"\\\"$$srcid\\\"\"" >> $@_$$side.conf; \
echo "DSTID=\"$$dstid\"" >> $@_$$side.conf; \
echo "AUTH=\"$$authstr\"" >> $@_$$side.conf; \
echo "$$global" >> $@_$$side.conf; \
@@ -244,6 +244,16 @@ run-cert-single-ca:
flowtype=esp; ${TEST_FLOWS}; if [[ $$_ret -ne 0 ]]; then exit 1; fi
${TEST_PING}; if [[ $$_ret -ne 0 ]]; then exit 1; fi
+REGRESS_TARGETS += run-cert-single-ca-asn1dn
+run-cert-single-ca-asn1dn:
+ @echo '======= $@ ========'
+ leftid="/C=DE/ST=Bavaria/L=Munich/O=iked/CN=left-from-ca-both"; \
+ rightid="/C=DE/ST=Bavaria/L=Munich/O=iked/CN=right-from-ca-both"; \
+ ${SETUP_CONFIGS}
+ ${SETUP_START}
+ flowtype=esp; ${TEST_FLOWS}; if [[ $$_ret -ne 0 ]]; then exit 1; fi
+ ${TEST_PING}; if [[ $$_ret -ne 0 ]]; then exit 1; fi
+
REGRESS_TARGETS += run-dstid-fail
run-dstid-fail:
@echo '======= $@ ========'