From 294e1d8ad84e033baee23afaeef77133226e959a Mon Sep 17 00:00:00 2001 From: tobhe Date: Sun, 5 Dec 2021 20:21:14 +0000 Subject: [PATCH] Add test case for policy matching on responder with multiple policies that only differ by srcid. --- regress/sbin/iked/live/Makefile | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/regress/sbin/iked/live/Makefile b/regress/sbin/iked/live/Makefile index ac48876c75b..97100258441 100644 --- a/regress/sbin/iked/live/Makefile +++ b/regress/sbin/iked/live/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.31 2021/11/11 22:12:52 tobhe Exp $ +# $OpenBSD: Makefile,v 1.32 2021/12/05 20:21:14 tobhe Exp $ # Copyright (c) 2020 Tobias Heider # @@ -369,6 +369,26 @@ run-dstid-multi: 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-srcid-multi +run-srcid-multi: + flowtype=esp; \ + leftid=left-from-ca-both; \ + rightid=right-from-ca-both; \ + side=left; srcid=$$leftid; local=${LEFT_ADDR}; peer=${RIGHT_ADDR}; \ + dstid="dstid $$rightid"; \ + ${SETUP_CONFIG}; \ + side=right; mode=passive; srcid="borked"; local=${RIGHT_ADDR}; \ + peer=${LEFT_ADDR}; dstid=""; \ + ${SETUP_CONFIG}; \ + srcid=$$rightid; \ + ${SETUP_CONFIG}; \ + srcid="roflol"; \ + ${SETUP_CONFIG}; \ + ${DEPLOY_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-cert-multi-ca run-cert-multi-ca: flowtype=esp; \ -- 2.20.1