From patchwork Tue Jul 26 01:51:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selva Nair X-Patchwork-Id: 2606 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director14.mail.ord1d.rsapps.net ([172.27.255.54]) by backend30.mail.ord1d.rsapps.net with LMTP id MC0zOHrV32L3NAAAIUCqbw (envelope-from ) for ; Tue, 26 Jul 2022 07:52:26 -0400 Received: from proxy1.mail.iad3a.rsapps.net ([172.27.255.54]) by director14.mail.ord1d.rsapps.net with LMTP id iIz+N3rV32LjDQAAeJ7fFg (envelope-from ) for ; Tue, 26 Jul 2022 07:52:26 -0400 Received: from smtp51.gate.iad3a ([172.27.255.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy1.mail.iad3a.rsapps.net with LMTPS id uJCdMnrV32L2EAAA8TVjwQ (envelope-from ) for ; Tue, 26 Jul 2022 07:52:26 -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: smtp51.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=gmail.com; dmarc=fail (p=none; dis=none) header.from=gmail.com X-Suspicious-Flag: YES X-Classification-ID: 6ae335fc-0cd9-11ed-95b1-525400aaff7b-1-1 Received: from [216.105.38.7] ([216.105.38.7:40716] helo=lists.sourceforge.net) by smtp51.gate.iad3a.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 58/23-19399-A75DFD26; Tue, 26 Jul 2022 07:52:26 -0400 Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.94.2) (envelope-from ) id 1oGJ5y-0000Xj-AH; Tue, 26 Jul 2022 11:51:26 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oGJ5x-0000XY-0T for openvpn-devel@lists.sourceforge.net; Tue, 26 Jul 2022 11:51:25 +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:Cc:To:From:Sender:Reply-To: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=UljAcXduUsL4UN9vv0wtTHbHJl1tYqrx9tc5WAlmScU=; b=ifwjiyh9gDZo8HXPHEHY1Tfikk mZtO943YED7ImaI/4/a2XoisTOldIEKYTDWTcSs7bXXF74ajwkKLeqIc4AXI7W1Ksx/G9LKUlADtj b9FLDYlOl1ftA/BK5r8N19tMgTvGW4bkC63/xd19hbtwVAJvlag08JU44UyKZYTSfms4=; 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:Cc:To:From :Sender:Reply-To: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=UljAcXduUsL4UN9vv0wtTHbHJl1tYqrx9tc5WAlmScU=; b=X LcbZmNp1cnQzfiifpFfwEbC2cd5PbtOtS0teKQjKUHJceLPLbHXPeSBc6sILiOild1XfFqKnyoTgE AuoHTpLPI8ZVuSgTgKLB/N6elt1mTOve9cl8CVLGcfmZ6vBJxnL35EtwuzRdHKT8/Kw8XKvONDpl7 hRtQ42xyccVv4BSw=; Received: from mail-io1-f41.google.com ([209.85.166.41]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.94.2) id 1oGJ5v-0005V6-2l for openvpn-devel@lists.sourceforge.net; Tue, 26 Jul 2022 11:51:24 +0000 Received: by mail-io1-f41.google.com with SMTP id v185so10952247ioe.11 for ; Tue, 26 Jul 2022 04:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UljAcXduUsL4UN9vv0wtTHbHJl1tYqrx9tc5WAlmScU=; b=SYSHQt3iLXnNlaZT4T6Ca1lxQJ/5Zt6pXy+PyzcTFLe2TyNjOfcwVSdv8X86zxzftO GK2UfFJhD476S0bZ297uq+IrlpL/wwitxhodiZZ9j3KUK724M5rvUI1CxaqXsZimFh5X W5ZTHr5e87OfoneoLRNjCuP39P4MHTD6lHyMoOtz3P1EpSLiG6UMg6do2mCUv3KU5rVu EgGM8Hc1zp/9u6q8qu96S5K9ylxFW22cLN+LZwOypeo1o+uaFyhppa626br1a54xXWID 9mYOqzeN8JqeCEIDUAYuaUrpCzINlzQJfLYrwH6bGBFgB+sRacJIHRWJEFoE7XBiO2zT mxbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UljAcXduUsL4UN9vv0wtTHbHJl1tYqrx9tc5WAlmScU=; b=qLgCjcpnVd+OxQEYBcJ5UfQwOe9n150Yobl9E0su7VIX2eUBCVC1JVZ2sfREI/PTwE SRqFb/Qlly/bumv9EpF1mg9dY9IVstmGMzvsvi7uO5vbKJjjchv7Kgj8O4WAB3jS9SgU Kj+uX7MlUfhAZeX4vPi4tmF5lKjFXJima2QE5JWjA1lHq4v2J/rYm4nc1pxw+vy/FEox dT46+tleFuqrP9XcttIWn0hAc4XtRlE8F4TnqHsi/U4hB1pPMOb26DDgdJLZ8Riun+58 lAgCQcSxI6xMxCVDlAx0lHubEjQvbDuaOSRvJqh8D0UJch4s0BMkmI2q7qcby2+h5CUD 7qlQ== X-Gm-Message-State: AJIora+p+HaR9GZWaACjbX1DrTFY4cQzZzLtBT4Is0W/b0NsYZnC1Fq1 DXRv2FiPBFMMlerqhMYfCBl998iJOYc= X-Google-Smtp-Source: AGRyM1thUWitQM2y1RK6QBQ2Rw10elWSeG9JQbGOpE+WFkNDeL1GuVFTpyRejHV6LkUoJbly27NhAA== X-Received: by 2002:a5d:8988:0:b0:67c:625:ee3 with SMTP id m8-20020a5d8988000000b0067c06250ee3mr5952472iol.150.1658836277272; Tue, 26 Jul 2022 04:51:17 -0700 (PDT) Received: from uranus.home.sansel.ca (bras-vprn-tnhlon4053w-lp130-02-70-51-223-128.dsl.bell.ca. [70.51.223.128]) by smtp.gmail.com with ESMTPSA id d3-20020a92d783000000b002dc258e3093sm5690763iln.64.2022.07.26.04.51.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 04:51:16 -0700 (PDT) From: selva.nair@gmail.com To: openvpn-devel@lists.sourceforge.net Date: Tue, 26 Jul 2022 07:51:00 -0400 Message-Id: <20220726115100.31449-1-selva.nair@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Report: Spam detection software, running on the system "util-spamd-2.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: Selva Nair Signed-off-by: Selva Nair --- src/openvpn/xkey_helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openvpn/xkey_helper.c b/src/openvpn/xkey_helper.c index 81dd71dc..27e87d79 100644 --- a/src/openvpn/xkey_helper.c +++ b/src/openvpn/xkey_helper.c @@ -85,6 +85,7 @@ xkey_digest(const u [...] Content analysis details: (-0.2 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [selva.nair[at]gmail.com] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.166.41 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.166.41 listed in wl.mailspike.net] X-Headers-End: 1oGJ5v-0005V6-2l Subject: [Openvpn-devel] [PATCH] xkey_provider: fix building with --disable-management 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: Selva Nair Signed-off-by: Selva Nair --- src/openvpn/xkey_helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openvpn/xkey_helper.c b/src/openvpn/xkey_helper.c index 81dd71dc..27e87d79 100644 --- a/src/openvpn/xkey_helper.c +++ b/src/openvpn/xkey_helper.c @@ -85,6 +85,7 @@ xkey_digest(const unsigned char *src, size_t srclen, unsigned char *buf, return 1; } +#ifdef ENABLE_MANAGEMENT /** * Load external key for signing via management interface. * The public key must be passed in by the caller as we may not @@ -107,6 +108,7 @@ xkey_load_management_key(OSSL_LIB_CTX *libctx, EVP_PKEY *pubkey) return xkey_load_generic_key(libctx, dummy, pubkey, sign_op, NULL); } +#endif /** * Load a generic key into the xkey provider. @@ -147,6 +149,7 @@ xkey_load_generic_key(OSSL_LIB_CTX *libctx, void *handle, EVP_PKEY *pubkey, return pkey; } +#ifdef ENABLE_MANAGEMENT /** * Signature callback for xkey_provider with management-external-key * @@ -277,6 +280,7 @@ xkey_management_sign(void *unused, unsigned char *sig, size_t *siglen, return (*siglen > 0); } +#endif /* ENABLE MANAGEMENT */ /** * Add PKCS1 DigestInfo to tbs and return the result in *enc.