Skip to contentSkip to conversation

Change in openvpn[master]: pkcs11_openssl: Disable unused code

Openvpn-devel flichtenheld (Code Review) 2 participants 5 messages Jul 28, 2023 – Aug 11, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1690549401000.I889de8bafb581b810a026c7359fbfee94f1b5a4e@...2715...

#1 lore raw

flichtenheld has uploaded this change for review. ( http://gerrit.openvpn.net/c/openvpn/+/317?usp=email )

Change subject: pkcs11_openssl: Disable unused code
......................................................................

pkcs11_openssl: Disable unused code

Coverity: CID 1539183 (#1 of 1): Structurally dead code (UNREACHABLE)

Change-Id I889de8bafb581b810a026c7359fbfee94f1b5a4e

---
M src/openvpn/pkcs11_openssl.c

1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/17/317/1

src/openvpn/pkcs11_openssl.c +2 -2
index 7c07152..40080ef 100644
@@ -331,8 +331,7 @@
 
 #ifdef HAVE_XKEY_PROVIDER
     return (xkey_load_from_pkcs11h(certificate, ssl_ctx) == 0); /* inverts the return value */
-#endif
-
+#else
     int ret = 1;
 
     X509 *x509 = NULL;
@@ -402,6 +401,7 @@
         openssl_session = NULL;
     }
     return ret;
+#endif /* ifdef HAVE_XKEY_PROVIDER */
 }
 
 char *

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/317?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I889de8bafb581b810a026c7359fbfee94f1b5a4e
Gerrit-Change-Number: 317
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newchange

#2 lore raw

[Openvpn-devel] [PATCH applied] Re: pkcs11_openssl: Disable unused code

ACK from Selva in Gerrit (and Gerrit URL recorded in the commit).

Patch makes sense. Test compiled on Linux with --enable-pkcs11.

Your patch has been applied to the master and release/2.6 branch.

commit 38fbddc94596b6b2d8fa93a8bd0aca7dbb220def (master) commit dd0a3f3af229c62957d6a223fcb91278c6b77650 (release/2.6)

Author: Frank Lichtenheld
Date:   Fri Jul 28 14:42:01 2023 +0200
     pkcs11_openssl: Disable unused code

     Signed-off-by: Frank Lichtenheld <[email protected]...>
     Acked-by: Selva Nair <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg26901.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#3 lore raw
In reply to a message not in the archive

Attention is currently required from: flichtenheld.

selvanair has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/317?usp=email )

Change subject: pkcs11_openssl: Disable unused code
......................................................................

Patch Set 1: Code-Review+1

(1 comment)

Patchset:

PS1:
LGTM.

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/317?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I889de8bafb581b810a026c7359fbfee94f1b5a4e
Gerrit-Change-Number: 317
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: selvanair <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 31 Jul 2023 16:52:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#4 lore raw
In reply to a message not in the archive

cron2 has uploaded a new patch set (#2) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/317?usp=email )

The following approvals got outdated and were removed:
Code-Review+1 by selvanair

Change subject: pkcs11_openssl: Disable unused code
......................................................................

pkcs11_openssl: Disable unused code

Coverity: CID 1539183 (#1 of 1): Structurally dead code (UNREACHABLE)

Change-Id: I889de8bafb581b810a026c7359fbfee94f1b5a4e
Gerrit: http://gerrit.openvpn.net/c/openvpn/+/317

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg26901.html

---
M src/openvpn/pkcs11_openssl.c

1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/17/317/2

src/openvpn/pkcs11_openssl.c +2 -2
index 7c07152..40080ef 100644
@@ -331,8 +331,7 @@
 
 #ifdef HAVE_XKEY_PROVIDER
     return (xkey_load_from_pkcs11h(certificate, ssl_ctx) == 0); /* inverts the return value */
-#endif
-
+#else
     int ret = 1;
 
     X509 *x509 = NULL;
@@ -402,6 +401,7 @@
         openssl_session = NULL;
     }
     return ret;
+#endif /* ifdef HAVE_XKEY_PROVIDER */
 }
 
 char *

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/317?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I889de8bafb581b810a026c7359fbfee94f1b5a4e
Gerrit-Change-Number: 317
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: selvanair <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset

#5 lore raw
In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/317?usp=email )

Change subject: pkcs11_openssl: Disable unused code
......................................................................

pkcs11_openssl: Disable unused code

Coverity: CID 1539183 (#1 of 1): Structurally dead code (UNREACHABLE)

Change-Id: I889de8bafb581b810a026c7359fbfee94f1b5a4e
Gerrit: http://gerrit.openvpn.net/c/openvpn/+/317

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg26901.html

---
M src/openvpn/pkcs11_openssl.c

1 file changed, 2 insertions(+), 2 deletions(-)
src/openvpn/pkcs11_openssl.c +2 -2
index 7c07152..40080ef 100644
@@ -331,8 +331,7 @@
 
 #ifdef HAVE_XKEY_PROVIDER
     return (xkey_load_from_pkcs11h(certificate, ssl_ctx) == 0); /* inverts the return value */
-#endif
-
+#else
     int ret = 1;
 
     X509 *x509 = NULL;
@@ -402,6 +401,7 @@
         openssl_session = NULL;
     }
     return ret;
+#endif /* ifdef HAVE_XKEY_PROVIDER */
 }
 
 char *

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/317?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I889de8bafb581b810a026c7359fbfee94f1b5a4e
Gerrit-Change-Number: 317
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: selvanair <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged