| Message ID | 20180117131046.32402-2-logout@free.fr |
|---|---|
| State | Rejected |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director5.mail.ord1d.rsapps.net ([172.28.255.1]) by backend31.mail.ord1d.rsapps.net (Dovecot) with LMTP id G5IbIaZLX1r2YwAAgoeIoA for <patchwork@openvpn.net>; Wed, 17 Jan 2018 08:12:06 -0500 Received: from director4.mail.ord1c.rsapps.net ([172.28.255.1]) by director5.mail.ord1d.rsapps.net (Dovecot) with LMTP id 2UtxDqZLX1qLdwAAsdCWiw ; Wed, 17 Jan 2018 08:12:06 -0500 Received: from smtp29.gate.ord1c ([172.28.255.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by director4.mail.ord1c.rsapps.net (Dovecot) with LMTP id nTcbBqdLX1puOAAAsEL7Xg ; Wed, 17 Jan 2018 08:12:07 -0500 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.34.181.88] Authentication-Results: smtp29.gate.ord1c.rsapps.net; iprev=pass policy.iprev="216.34.181.88"; 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=none (p=nil; dis=none) header.from=free.fr X-Classification-ID: 03e3ddbe-fb88-11e7-9af9-842b2b1a2b4d-1-1 Received: from [216.34.181.88] ([216.34.181.88:53976] helo=lists.sourceforge.net) by smtp29.gate.ord1c.rsapps.net (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 8B/BA-26808-5AB4F5A5; Wed, 17 Jan 2018 08:12:05 -0500 Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1ebnUx-0003fy-FU; Wed, 17 Jan 2018 13:11:23 +0000 Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.193] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from <emmanueldeloget53@gmail.com>) id 1ebnUw-0003fi-Cg for openvpn-devel@lists.sourceforge.net; Wed, 17 Jan 2018 13:11:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Tpicg5j2TPyFAIbtqcCjLRsafjlmUyaYb3ThoUUi188=; b=TlXf6e8GrJbpO8THXwE4v+TyGX joCtOyPJvnNyzNq/K1DGR6ClTOfql6lP5M3WrplQKcoNX1R5Js3Zy/Z6q1L+uNiTZhEsi9cp3OcgU 79xPfaxiQk6YUf6yE40XBblyBlinNrXWtR9MIIsnSu+YPCxinfNdNSp7+Q9J6fZS34fo=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To :MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Tpicg5j2TPyFAIbtqcCjLRsafjlmUyaYb3ThoUUi188=; b=SRgPdOgPFO2brViKBRwYAQQwt/ PxwqvFVkqtH30CwfFmUZZjVmk5F1/tpg9EJUid6aVHNJZRNr9nrL0SUaDSHzJrQXLdDLYcC1w5bKW FWRl9758iUnBb/K7Z+CGfHkExXnjcXWV7QOvZDBQ4eB1Y072xbKBCc+rxmXMQmL7JcKs=; Received: from mail-wr0-f193.google.com ([209.85.128.193]) by sfi-mx-3.v28.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) id 1ebnUo-0004Lv-JW for openvpn-devel@lists.sourceforge.net; Wed, 17 Jan 2018 13:11:22 +0000 Received: by mail-wr0-f193.google.com with SMTP id 36so18789686wrh.1 for <openvpn-devel@lists.sourceforge.net>; Wed, 17 Jan 2018 05:11:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=Tpicg5j2TPyFAIbtqcCjLRsafjlmUyaYb3ThoUUi188=; b=DGSZ7ftszy14jZnsZTtzDC3qz7GgeLTE+sByi0/gsgqsCIKMGNggLzo+EaScpO6Nsx jWtK1D5WJXJwshy8zpm6d9ykkZKhBZzgEXIZstV9btOIILv6riyLTNsGwpD7YwtKEMr4 gFYiWov1KthmybZ8K9mKSQqbwdFYOeLUn0pstwrpZ7lPamRL2wgJQZ+LYWbMkKljPZet wyNIlQ4gATJhDHh67hI4Yt/kpA8ik6DPu7cx2YppvOLXLjZpUw9MvscIB7SL3+9m0tGa mO2ff18BzIZFWCdqyIEyvqnWG1pWq1qAqlSRWatuzQdbMyyBk/jn7q5CraXPOAMR0Pq2 +v+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=Tpicg5j2TPyFAIbtqcCjLRsafjlmUyaYb3ThoUUi188=; b=I0mfzbwqmWaIOo6QJya0F5JTKHNTUK4i6aLlxrzuf0bqlUu+vh7SqdH7HxEd7n7WnE i7xfgtyiiH/9e2zyEEFXXHDfgI0/onPF41KBsi6kyPrvh4BcTFAuvzry8s8UyOr7KUHn rlCjbRfrAYvqAwL8GBO23xVy9ZUfacjkXv1le+4l+9DWUaCeI/v3Keu6zi0Kao8jwNmr xXdABw2CsYFmNG8dWTm5JpZ6YFRZ+wn/KMSb5Q+X+t63RcyXbKQlQ+uoIPhlE0bMQFLm Q/JZs0AG7EdNdnUgvM5uwxOUNM8WDYJY+eJ7ix2ptyPNNhX76LC5HDtd8IzXSQmN08L9 qp1Q== X-Gm-Message-State: AKwxytcN75UKGMElarMuJfFUnjRTg4ffWGoUpDhfLfg3y2xbmU8dZCnA cSjOFzyYaU89lsTHkEMHtPqx87J0 X-Google-Smtp-Source: ACJfBotmPkQT2bh5VJi0xTKkiB3V0aM7PGfEqoKDI+UVPbdBinThP/FgIXuGN4GHnms/L7hvVLvu3w== X-Received: by 10.223.199.205 with SMTP id y13mr2471737wrg.114.1516194668365; Wed, 17 Jan 2018 05:11:08 -0800 (PST) Received: from edt-thinkpad.eho.intranet ([2a01:cb1c:53c:ce00:e53a:b249:c0f2:2f2a]) by smtp.gmail.com with ESMTPSA id q186sm5074508wmb.6.2018.01.17.05.11.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jan 2018 05:11:07 -0800 (PST) From: Emmanuel Deloget <logout@free.fr> To: openvpn-devel@lists.sourceforge.net Date: Wed, 17 Jan 2018 14:10:46 +0100 Message-Id: <20180117131046.32402-2-logout@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180117131046.32402-1-logout@free.fr> References: <20180117131046.32402-1-logout@free.fr> In-Reply-To: <CAKh=nwEOYB6Ab42xZUPkaHEWDwx-ECJVn79kh-rz0Y8HvG4Dbw@mail.gmail.com> References: <CAKh=nwEOYB6Ab42xZUPkaHEWDwx-ECJVn79kh-rz0Y8HvG4Dbw@mail.gmail.com> X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (logout[at]free.fr) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.128.193 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (emmanueldeloget53[at]gmail.com) 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: 1ebnUo-0004Lv-JW Subject: [Openvpn-devel] [PATCH v3 2/2] OpenSSL: remove EVP_PKEY_id() X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox |
| Series |
[Openvpn-devel,v3,1/2] OpenSSL: remove some EVP_PKEY type checks
|
|
Commit Message
Emmanuel Deloget
Jan. 17, 2018, 2:10 a.m. UTC
The function is no longer used so we don't need to keep it in the
OpenSSL 1.1 compatibility layer.
Signed-off-by: Emmanuel Deloget <logout@free.fr>
---
configure.ac | 1 -
src/openvpn/openssl_compat.h | 14 --------------
2 files changed, 15 deletions(-)
Comments
Of course, this one is not strictly needed. If you want to keep the function around, feel free to ignore the patch. Given the relative simplicity of the change, one can also consider that if the function is needed again we could simply revert this patch. Best regards, -- Emmanuel Deloget <div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Of course, this one is not strictly needed. If you want to keep the function around, feel free to ignore the patch. </div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">Given the relative simplicity of the change, one can also consider that if the function is needed again we could simply revert this patch. </div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">Best regards, </div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">-- Emmanuel Deloget</div></div> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Hi On Wed, Jan 17, 2018 at 8:14 AM, Emmanuel Deloget <logout@free.fr> wrote: > Of course, this one is not strictly needed. If you want to keep the function > around, feel free to ignore the patch. > > Given the relative simplicity of the change, one can also consider that if > the function is needed again we could simply revert this patch. That's fine with me. My pending patches do not call this (at the expense of double EVP_PKEY_get0_RSA() calls first to dispatch and then to do the work) and I'm fine with it at the moment. Selva ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
diff --git a/configure.ac b/configure.ac index 2c1937e5..e855a241 100644 --- a/configure.ac +++ b/configure.ac @@ -925,7 +925,6 @@ if test "${with_crypto_library}" = "openssl"; then X509_STORE_get0_objects \ X509_OBJECT_free \ X509_OBJECT_get_type \ - EVP_PKEY_id \ EVP_PKEY_get0_RSA \ EVP_PKEY_get0_DSA \ EVP_PKEY_get0_EC_KEY \ diff --git a/src/openvpn/openssl_compat.h b/src/openvpn/openssl_compat.h index 05ec4e95..2c8913e1 100644 --- a/src/openvpn/openssl_compat.h +++ b/src/openvpn/openssl_compat.h @@ -258,20 +258,6 @@ EVP_PKEY_get0_EC_KEY(EVP_PKEY *pkey) } #endif -#if !defined(HAVE_EVP_PKEY_ID) -/** - * Get the PKEY type - * - * @param pkey Public key object - * @return The key type - */ -static inline int -EVP_PKEY_id(const EVP_PKEY *pkey) -{ - return pkey ? pkey->type : EVP_PKEY_NONE; -} -#endif - #if !defined(HAVE_EVP_PKEY_GET0_DSA) /** * Get the DSA object of a public key