From patchwork Tue Mar 15 04:53:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sommerseth X-Patchwork-Id: 2341 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director13.mail.ord1d.rsapps.net ([172.27.255.59]) by backend41.mail.ord1d.rsapps.net with LMTP id YKW6F+y2MGJhCwAAqwncew (envelope-from ) for ; Tue, 15 Mar 2022 11:55:24 -0400 Received: from proxy5.mail.iad3a.rsapps.net ([172.27.255.59]) by director13.mail.ord1d.rsapps.net with LMTP id kGtpGOy2MGLufAAA91zNiA (envelope-from ) for ; Tue, 15 Mar 2022 11:55:24 -0400 Received: from smtp16.gate.iad3a ([172.27.255.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy5.mail.iad3a.rsapps.net with LMTPS id gNzZD+y2MGKcJAAAhn5joQ (envelope-from ) for ; Tue, 15 Mar 2022 11:55:24 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp16.gate.iad3a.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dkim=fail (signature verification failed) header.d=sf.lists.topphemmelig.net; dmarc=fail (p=none; dis=none) header.from=sf.lists.topphemmelig.net X-Suspicious-Flag: YES X-Classification-ID: 51ebcb32-a478-11ec-8caa-5254004ee196-1-1 Received: from [216.105.38.7] ([216.105.38.7:60336] helo=lists.sourceforge.net) by smtp16.gate.iad3a.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 82/53-26865-AE6B0326; Tue, 15 Mar 2022 11:55:22 -0400 Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nU9N2-0003LU-AC; Tue, 15 Mar 2022 15:54:12 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nU9N0-0003JM-RX for openvpn-devel@lists.sourceforge.net; Tue, 15 Mar 2022 15:54:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iR2LtAemAq6VET806i7Nd+sCptbsed6IOmNUE8aomkE=; b=LSu/wY1Oi+4NhLV10P/L8BzvEJ PsJ/mrmT93blwCNp88EScuH2tUCg1IEYMj8Wd2idHwAJ5V3OB7wVYRS7UCUXMy9UNGbAuKn1gXP0R rnPWxJC3KuXnaPxr59G/OecFl54kP1kVXsaa8uAX6y9B/FnP/JmFY3DohCSdcOl8fjl8=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=iR2LtAemAq6VET806i7Nd+sCptbsed6IOmNUE8aomkE=; b=c DKgvqUW/PUCsyiwRDkOSGyEAxsqzThl+9HQQBTPenI9nZV6fJlqVD1hG9VzU/BSHNUBd7xU/X/4Vu 9pRCtjj12mMoUML5N9wXUi8ptrOU5V110ePoQQSQcphftRKfiXm4lTjT4qq4733ueHdh9TVM3RX5P 4fllv4uPEsmX92V4=; Received: from mx1.basenordic.cloud ([217.170.196.134]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.94.2) id 1nU9Um-00070x-L4 for openvpn-devel@lists.sourceforge.net; Tue, 15 Mar 2022 15:54:05 +0000 Received: from localhost (unknown [127.0.0.1]) by mx1.basenordic.cloud (Postfix) with ESMTP id 46CB4E713 for ; Tue, 15 Mar 2022 15:53:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sf.lists.topphemmelig.net; s=inouz9eefah2too5; t=1647359632; bh=iR2LtAemAq6VET806i7Nd+sCptbsed6IOmNUE8aomkE=; h=From:To:Subject:Date:From; b=vKLHa0ELyEosl3FT61bEF0V6Rly5jWC7xhIaoEEzRsac+UWWeP6IxbA5SBGeHlMUE CT62UZo/R+hHjzY280OAbObSA2XXPtRSOA4U8PX37MlDkzEBy8kwlUwjNlXXnW54o/ LSApGybIrDHS3ZOOOd6NCJ57DMxXoxWLj9VoGwTjDE5VFohpuzj96slQeql07jNi3H a92LtsYGmOq5kVmAY8LOjjZYuig8uwYflq72fcDIqLodOnDKIJ1zA85KOvIglDCgvw IiG6UBgpdjKPPdgGiCmL+NSYPeLJ3b84uvYbr/OHuvyVQzqqKbI2TZSrJ1q0BIo8KJ X4hsN8qd/V71A== Received: from mx1.basenordic.cloud ([127.0.0.1]) by localhost (mx1.basenordic.cloud [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y2rjIeiLqwAk for ; Tue, 15 Mar 2022 16:53:51 +0100 (CET) Received: from xplorer.net (xplorer.sommerseth.xyz [10.35.7.11]) by mx1.basenordic.cloud (Postfix) with ESMTP id 4E69DE712 for ; Tue, 15 Mar 2022 16:53:51 +0100 (CET) From: David Sommerseth To: openvpn-devel@lists.sourceforge.net Date: Tue, 15 Mar 2022 16:53:41 +0100 Message-Id: <20220315155344.37787-1-openvpn@sf.lists.topphemmelig.net> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Report: Spam detection software, running on the system "util-spamd-1.v13.lw.sourceforge.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: David Sommerseth This is the same patch set as the v4 [1] patch set, just without the embarrassing syntax error in the second patch. [1] Message-Id: 20220313200715.13518-1-openvpn@sf.lists.topphemmelig.net Content analysis details: (-2.4 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [217.170.196.134 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1nU9Um-00070x-L4 Subject: [Openvpn-devel] [PATCH v2.4 v5 0/3] Disable multiple deferred authentication plug-ins X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox From: David Sommerseth This is the same patch set as the v4 [1] patch set, just without the embarrassing syntax error in the second patch. [1] Message-Id: 20220313200715.13518-1-openvpn@sf.lists.topphemmelig.net David Sommerseth (3): sample-plugin: New plugin for testing multiple auth plugins plug-ins: Disallow multiple deferred authentication plug-ins plug-ins: Remove defer/simple.c sample plugin doc/openvpn.8 | 13 + doc/tests/authentication-plugins.md | 153 +++++++ sample/sample-plugins/defer/README | 9 +- sample/sample-plugins/defer/multi-auth.c | 413 +++++++++++++++++ sample/sample-plugins/defer/simple.c | 541 ----------------------- sample/sample-plugins/defer/simple.def | 6 - src/openvpn/plugin.c | 33 +- 7 files changed, 616 insertions(+), 552 deletions(-) create mode 100644 doc/tests/authentication-plugins.md create mode 100644 sample/sample-plugins/defer/multi-auth.c delete mode 100644 sample/sample-plugins/defer/simple.c delete mode 100755 sample/sample-plugins/defer/simple.def