From nobody Fri Nov 11 10:18:11 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N7vmN01Jfz4XGw5; Fri, 11 Nov 2022 10:18:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N7vmM6hDhz3K6k; Fri, 11 Nov 2022 10:18:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668161891; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wW5sPB3hlSRImTXB/+NRzl4Jc3oj5lWKOMEW+GsGLlA=; b=qigXfPKWVVPPyg9PMKFThvYon/FeuKMKoD8wLPlPHGx9PTh1D8qBi+Czfn4D0EK+wrUmoe V0Rlzt+MWxsbJejTvMKqwcTwxisUzIqcBgdSncBdScKa7JdAtfcs8ZIQseFV1p4RY4sfxH mRVkZeo3yN7qP7SKUlMwHYgJoEfe+MT7Yij3SHritjjo7Si+VdwDSbwaMvcwywhKu3ESYK OKsMod1Pl1yDgG2BEAzJxZpTG/ykVIomDrrFa+a+SQk48ar0xs/pnk8Ye28hCjBkGs8JQG heLjtpl5kx5B6RV4yGMpmJ3NoBQHDOAoFAg7fKiQ1FNKe2lKgNc0cVfVqbQsvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668161891; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wW5sPB3hlSRImTXB/+NRzl4Jc3oj5lWKOMEW+GsGLlA=; b=g2EUWhyH0pdBy8Afq0gpzDVkj20aV6nea4MdlLtKeDBeUooIMcsSOOxhO7knSaPHjvG9Qc nf70lJTJ/yztdpcgsPL6GuDSqvOp4ZJPXYoBtayK7TkAzdeC09nQAqImJ1fK+dRC+vThSC Ohx4hGs0xm9zc35P4zP+3/49sfklr12N0gIQM+pc5vVeO97xXEz/QyCGa8R6nG7iQajr2u CcrcInlb3ZxUb9ZELabE0uZQLuaW7kpcvGjnFJ/+iZhC1yaftew4U8eZRQxdoYvLYLeQrJ Jv11ZiL+S/X8MtNBd+D+8pSHsuW4P7Nlh4UdkEKhE17txlcJG3lsoBYP6nXR8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668161891; a=rsa-sha256; cv=none; b=RYlRRUw7pgvIU2KShi8JaIjM7dnvXXqIuLI0xa0aCHLqIHwwejDBKerM0Du97BaD/nP918 UrylyJfsZIPmXuc98rkjaop9MnGce+uIgnTYkzapm9+suWOsOCiiG9KgMU7Ci5U9pc+c1y AI2dEhGSJv0k/S02RtH2DLIxKkmLfhKQhRAXNE7FcPfVWCysosbsjKWBTI50FTnIMkCQBx FKN8NpO5QZ42xrnGp8jB7wG3ihqBXH5PtSacfWWpyyTlv+32munlDZv9vcsDnaGjG2/Ocp pXMRIhbz6n806HVSw7BTp3OcywINuthuxJARVhBAijdSUE6aQjsMhCpIAzQlYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N7vmM5nk2zdQn; Fri, 11 Nov 2022 10:18:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2ABAIBWD081661; Fri, 11 Nov 2022 10:18:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABAIBJA081660; Fri, 11 Nov 2022 10:18:11 GMT (envelope-from git) Date: Fri, 11 Nov 2022 10:18:11 GMT Message-Id: <202211111018.2ABAIBJA081660@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 832c8a58e1f7 - main - if_ovpn tests: add aes-128-gcm test case List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 832c8a58e1f748a1e47b49fa510bfc52097268ed Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=832c8a58e1f748a1e47b49fa510bfc52097268ed commit 832c8a58e1f748a1e47b49fa510bfc52097268ed Author: Kristof Provost AuthorDate: 2022-11-11 09:42:02 +0000 Commit: Kristof Provost CommitDate: 2022-11-11 10:17:39 +0000 if_ovpn tests: add aes-128-gcm test case Sponsored by: Rubicon Communications, LLC ("Netgate") --- tests/sys/net/if_ovpn/if_ovpn.sh | 50 +++++++++++++++++++++++++++++++--------- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/tests/sys/net/if_ovpn/if_ovpn.sh b/tests/sys/net/if_ovpn/if_ovpn.sh index 8953e7122a57..51d21b826e72 100644 --- a/tests/sys/net/if_ovpn/if_ovpn.sh +++ b/tests/sys/net/if_ovpn/if_ovpn.sh @@ -915,17 +915,10 @@ ra_cleanup() ovpn_cleanup } - -atf_test_case "chacha" "cleanup" -chacha_head() +ovpn_algo_body() { - atf_set descr 'Test DCO with the chacha algorithm' - atf_set require.user root - atf_set require.progs openvpn -} + algo=$1 -chacha_body() -{ ovpn_init l=$(vnet_mkepair) @@ -943,8 +936,8 @@ chacha_body() dev-type tun proto udp4 - cipher CHACHA20-POLY1305 - data-ciphers CHACHA20-POLY1305 + cipher ${algo} + data-ciphers ${algo} auth SHA256 local 192.0.2.1 @@ -967,6 +960,9 @@ chacha_body() client + cipher ${algo} + data-ciphers ${algo} + remote 192.0.2.1 auth-user-pass $(atf_get_srcdir)/user.pass @@ -984,11 +980,42 @@ chacha_body() atf_check -s exit:0 -o ignore jexec b ping -c 3 198.51.100.1 } +atf_test_case "chacha" "cleanup" +chacha_head() +{ + atf_set descr 'Test DCO with the chacha algorithm' + atf_set require.user root + atf_set require.progs openvpn +} + +chacha_body() +{ + ovpn_algo_body CHACHA20-POLY1305 +} + chacha_cleanup() { ovpn_cleanup } +atf_test_case "gcm_128" "cleanup" +gcm_128_head() +{ + atf_set descr 'Test DCO with AES-128-GCM' + atf_set require.user root + atf_set require.progs openvpn +} + +gcm_128_body() +{ + ovpn_algo_body AES-128-GCM +} + +gcm_128_cleanup() +{ + ovpn_cleanup +} + atf_init_test_cases() { atf_add_test_case "4in4" @@ -1002,4 +1029,5 @@ atf_init_test_cases() atf_add_test_case "route_to" atf_add_test_case "ra" atf_add_test_case "chacha" + atf_add_test_case "gcm_128" }