Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 00DA1CDB470 for ; Mon, 22 Jun 2026 14:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Type:Cc:Reply-To:From: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:MIME-Version:Message-ID:References:In-Reply-To:To:Date:Sender: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MMgDgQPESsK4DuK5zMpPabel5pY6SzGwgoCbeM5EeSE=; b=TZi0H/ucHdd2e2ncKpbKvr+Imm eLF33vRe8qy5F8yez9Iqx4KikBnd4bfqaMHTTKw2AzSLrsHtZZCoOax3JwJ8rOnSp5BiClXj+ZqPM /eJ5JAuRbbEISHCCx3x+mgtroXautYiOXyIaZEL1pac4kEqVMXW2ZZC1C/D2AlUyQnhs=; Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1wbfKE-0005w8-W1; Mon, 22 Jun 2026 14:08:35 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1wbfKD-0005w0-Mg for openvpn-devel@lists.sourceforge.net; Mon, 22 Jun 2026 14:08:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:Content-Transfer-Encoding:MIME-Version :Message-ID:Reply-To:Subject:References:In-Reply-To:List-Unsubscribe:List-Id: Cc:To:Date:From:Sender:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Help:List-Subscribe :List-Post:List-Owner:List-Archive; bh=rVjMlMClCAv5oVGbVbIOzvlLH2ynXqSsOMd1U2kH/jY=; b=NdiFMXWrJIEIIZ7kXdofkFoxjl za88mT1OnByO2emIi37/nDcKI1QDykG/6J+is2yoyPiSSPKB4C0byRlY0HrNUHSE/zbMtkMul+bcX uKZccqrwDjG1568EmEogvsnSYyQaKpGkjMB9kBJHpiR+y0XgyIq+Y9qjrrxunBQyQFHw=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Reply-To: Subject:References:In-Reply-To:List-Unsubscribe:List-Id:Cc:To:Date:From: Sender:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Help:List-Subscribe:List-Post: List-Owner:List-Archive; bh=rVjMlMClCAv5oVGbVbIOzvlLH2ynXqSsOMd1U2kH/jY=; b=d WJMDFYbRtRAdwyFIG+LwNukBOgZYoz2JnIJkB700J/6u2xVOuTpdo0L/qzZA3kb4Kx40XmOUHpUO0 MTdm/Ez2x57ES/+tQZe9csotaIL0wpKcII9gyPFYDd4/0oZuV7/xQlxzdJoGQ9CMhQztxil571Ky1 cALNU5kTCo9LbzxI=; Received: from mail-wm1-f41.google.com ([209.85.128.41]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.95) id 1wbfKC-000358-6G for openvpn-devel@lists.sourceforge.net; Mon, 22 Jun 2026 14:08:34 +0000 Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-490bc6a7958so41165275e9.1 for ; Mon, 22 Jun 2026 07:08:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvpn.net; s=google; t=1782137301; x=1782742101; darn=lists.sourceforge.net; h=user-agent:content-disposition:content-transfer-encoding :mime-version:message-id:reply-to:subject:thread-index:references :in-reply-to:list-unsubscribe:list-id:auto-submitted:cc:to:date:from :from:to:cc:subject:date:message-id:reply-to; bh=rVjMlMClCAv5oVGbVbIOzvlLH2ynXqSsOMd1U2kH/jY=; b=MdFKOOb+YIxvqtZy3xAbcbUvhUpLEbR1x3OtQ7o/CWbTy1dsazw82CiUkjhmmz6FxG M5fSStvz4oVLdFmc0CykO6XKkxelrfVFRnioMFrCvCwx98chwwLt7Bbyoev6mRSikQaO wdDS/khtEXU3lybjCiqT0YR6az9GB3kBO9apbk9OXSLZRQb360tK92wmg+5owWHN6MEp /L040Vnx8GdVdF6xMjNQ8OZjhRAsZ7fXxB1zXA+g6LZfy7fmCaPxuvYbgEFBXm5Tvvi7 HaIYqZQjKC8jqkTcYPtlVuinQnIPhLv2IFvwUHW+hTKKvmw5Sfo7FN7eiQOEhCZCRhOB gvAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782137301; x=1782742101; h=user-agent:content-disposition:content-transfer-encoding :mime-version:message-id:reply-to:subject:thread-index:references :in-reply-to:list-unsubscribe:list-id:auto-submitted:cc:to:date:from :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rVjMlMClCAv5oVGbVbIOzvlLH2ynXqSsOMd1U2kH/jY=; b=m6l82oe7YI/GIluiFgCkkVDv7FepRI2hvXAkGV5O5WmaKH92r+3hsXfFT5NBUqubLp FLIAU2DEyyuNO2R1mdK7I2g+MbJ/bWKUjZjXLxmw4wNo441v+UdLT2fKLnFPvA7Fj5bI AseI3meMbj3gtGs1l10qZAu+Ya9tEJDOfKnfeCCX6oSGVCKo/lRmj3Jibc56xBZqDoLC l+dth915zoRntdhNmqcCpuTsc6jQfEoVyxQbXHVryVXcCp4HgRlvQiyqhUeobUBdB6x3 G1wQwGrsCwC/gcI+GyXxhCAb/fmHev032Qf1BT+D2UFzP4jkZFyHJt6DuarOamN988iM 3GSQ== X-Gm-Message-State: AOJu0Yw5cJrtrajgCABFwk7nnSI0xVpksyZXXO4vdekOFJ/Ls/09o7Xm bBcJem+YZJJZnxhkjSOxmrV1DKW0h+Bs1WXXnmfTjHHtO6nNNaPCM0Pt6MEJZpV96HEUIzXNgCB Rq9Gc+TWUBecgLzvy/uwXIc6y19/GoLVgqXrSxT7ZiQJ2tXy9KyXR12IRLVDIcUMk4PEQDgs+TP hzp9TJ1g== X-Gm-Gg: AfdE7cnNMBTk0RBH8ou0s3OQcvboFamTRAEhdLSqw5HuqoXYjLvJC6huFcJVXn3l5tc PWZLPu+izSE5Cepln6JdFWQOOEz3U+ot8nvCJyOPdUv5GJJfQnQvomDFUamyT1vOKzk6bCFI/jM Mhu8DjwbtLSRPsCh0Bld1mspEmY4gRTEVx/EAg7W2OaIVIuJRe9HSCg6+kSzzyJukDrPHVWdKz6 1blEU585NtoqsIJXOmkJvNx3jEE13l2DBSn/avzGtwe7+nAqhsBNcn0oOmomb6S/qM2qGFpQ1U7 4vgG0wKs2YIBN/qWp7orlCq1eapaLTfNEiWHye+NwznFSbGCBUYEa7ULSwIMngYSlDyaPjFC0bG mQtYP7mL37ve8ECIh86y+ulb9273uxwnkawOAMrymDnk/h/ZMnoasjfDoMgOa6ORvEPSIlLqKFw QfdTQT9h5TMyCAs8rZDHcRLOsT1AvkHGJ6QKjdkbP7TR0hc1ERNgthEN2/TNLhjcpZq/DDCDww3 aRrOS0PwNRDRsQ3LF/Nce3a7CQzuiszfc+mhb9GZ6u21zgZAmbn3Tqd9S04nkQL4BD45gEEgAWj qaQ= X-Received: by 2002:a05:600c:5010:b0:490:e19b:9632 with SMTP id 5b1f17b1804b1-49240a59ademr188226865e9.17.1782137300830; Mon, 22 Jun 2026 07:08:20 -0700 (PDT) Received: from ip-10-18-1-162.eu-central-1.compute.internal (ec2-18-159-0-78.eu-central-1.compute.amazonaws.com. [18.159.0.78]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4923fcb6db0sm229715045e9.0.2026.06.22.07.08.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2026 07:08:20 -0700 (PDT) X-Google-Original-From: "plaisthos (Code Review)" Date: Mon, 22 Jun 2026 14:08:18 +0000 To: flichtenheld Auto-Submitted: auto-generated X-Gerrit-MessageType: newpatchset X-Gerrit-PatchSet: 3 X-Gerrit-Change-Id: I0737b769e78e6d271ec874cadb9fbd81bfefdec1 X-Gerrit-Change-Number: 1634 X-Gerrit-Project: openvpn X-Gerrit-ChangeURL: X-Gerrit-Commit: 6203816bd2bb8c1c1d5236f4f008697dbf402f6b In-Reply-To: References: Thread-Index: PGdlcnJpdC4xNzc2NzY4MDAzMDAwLkkwNzM3Yjc2OWU3OGU2ZDI3MWVjODc0Y2FkYjlmYmQ4MWJmZWZkZWMxQGdlcnJpdC5vcGVudnBuLm5ldD4= Message-ID: MIME-Version: 1.0 User-Agent: Gerrit/3.11.5 X-Headers-End: 1wbfKC-000358-6G Subject: [Openvpn-devel] [S] Change in openvpn[master]: Only announce support push updates/IV_NCP when actually supporting it 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: , From: "plaisthos \(Code Review\) via Openvpn-devel" Reply-To: arne-openvpn@rfc2549.org, openvpn-devel@lists.sourceforge.net, frank@lichtenheld.com Cc: "plaisthos \(Code Review\)" , openvpn-devel Content-Type: multipart/mixed; boundary="===============7924467443192247268==" Errors-To: openvpn-devel-bounces@lists.sourceforge.net --===============7924467443192247268== Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="2ZT/iwgay0g="; charset=UTF-8 --2ZT/iwgay0g= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos=2E Hello fli= chtenheld, I'd like you to reexamine a change=2E Please visit http:/= /gerrit=2Eopenvpn=2Enet/c/openvpn/+/1634?usp=3Demail to look at the new pa= tch set (#3)=2E The following approvals got outdated and were removed: Cod= e-Review-1 by flichtenheld Change subject: Only announce support push upd= ates/IV_NCP when actually supporting it =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E Only announce support push updates/IV_NCP when= actually supporting it Currently even p2p clients that do not accept push= message, so announcing PUSH UPDATE or DNSv2 is not very useful=2E The cha= nge for IV_NCP is more a documentation bugfix as in mode server we currentl= y never have push_peer_info_detail > 0=2E But change the message to indica= te that IV_NCP nowadays is more a legacy variable and replaced by IV_CIPHER= S=2E Change-Id: I0737b769e78e6d271ec874cadb9fbd81bfefdec1 Signed-off-by: A= rne Schwabe --- M src/openvpn/ssl=2Ec 1 file changed, = 13 insertions(+), 15 deletions(-) git pull ssh://gerrit=2Eopenvpn=2Enet= :29418/openvpn refs/changes/34/1634/3 diff --git a/src/openvpn/ssl=2Ec b/s= rc/openvpn/ssl=2Ec index 0998bd6=2E=2E9d461e7 100644 --- a/src/openvpn/ssl= =2Ec +++ b/src/openvpn/ssl=2Ec @@ -1914,21 +1914,21 @@ /* support = for P_DATA_V2 */ int iv_proto =3D IV_PROTO_DATA_V2; - /* = support for the latest --dns option */ - iv_proto |=3D IV_PROTO_DNS_= OPTION_V2; - /* support for exit notify via control channel */ = iv_proto |=3D IV_PROTO_CC_EXIT_NOTIFY; - /* currently push-u= pdate is not supported when DCO is enabled */ - if (!session->opt->d= co_enabled) - { - /* support push-updates */ - = iv_proto |=3D IV_PROTO_PUSH_UPDATE; - } - if (session->opt= ->pull) { + /* support for the latest --dns option */ += iv_proto |=3D IV_PROTO_DNS_OPTION_V2; + + /* current= ly push-update is not supported when DCO is enabled */ + if (!se= ssion->opt->dco_enabled) + { + /* support push-up= dates */ + iv_proto |=3D IV_PROTO_PUSH_UPDATE; + = } + /* support for receiving push_reply before sending = * push request, also signal that the client wants * to= get push-reply messages without requiring a round @@ -1943,11 +1943,9 @@ = /* support for tun-mtu as part of the push message */ = buf_printf(&out, "IV_MTU=3D%d\n", session->opt->frame=2Etun_max_mtu);= - } - /* support for Negotiable Crypto Parameters */ - = if (session->opt->mode =3D=3D MODE_SERVER || session->opt->pull) - = { + /* legacy support for Negotiable Crypto Parameters (depre= cated in + * favour of IV_CIPHERS) */ if (tls_item= _in_cipher_list("AES-128-GCM", session->opt->config_ncp_ciphers) = && tls_item_in_cipher_list("AES-256-GCM", session->opt->config_ncp_c= iphers)) { @@ -1956,7 +1954,7 @@ } else = { - /* We are not using pull or p2mp server, instead do P2P= NCP */ + /* If we are not using pull we announce P2P NCP suppor= t */ iv_proto |=3D IV_PROTO_NCP_P2P; } -- To view= , visit http://gerrit=2Eopenvpn=2Enet/c/openvpn/+/1634?usp=3Demail To unsub= scribe, or for help writing mail filters, visit http://gerrit=2Eopenvpn=2En= et/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: op= envpn Gerrit-Branch: master Gerrit-Change-Id: I0737b769e78e6d271ec874cadb9f= bd81bfefdec1 Gerrit-Change-Number: 1634 Gerrit-PatchSet: 3 Gerrit-Owner: pl= aisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-A= ttention: flichtenheld --2ZT/iwgay0g= Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld, plaisthos=2E

plaisthos = uploaded patch set #3 to this change=2E

View Change

Th= e following approvals got outdated and were removed: Code-Review-1 by flich= tenheld

Only announce support push updates/IV_NCP when act=
ually supporting it

Currently even p2p clients that do not accept pu= sh message, so announcing
PUSH UPDATE or DNSv2 is not very useful=2E
=
The change for IV_NCP is more a documentation bugfix as in mode server<= br>we currently never have push_peer_info_detail > 0=2E

But chang= e the message to indicate that IV_NCP nowadays is more a
legacy variable= and replaced by IV_CIPHERS=2E

Change-Id: I0737b769e78e6d271ec874cad= b9fbd81bfefdec1
Signed-off-by: Arne Schwabe <arne@rfc2549=2Eorg>---
M src/openvpn/ssl=2Ec
1 file changed, 13 insertions(+), 15 dele= tions(-)

git pull ssh://gerrit=2Eopenvpn=2Enet:2=
9418/openvpn refs/changes/34/1634/3
diff --git a/src/openvpn/ssl=2E=
c b/src/openvpn/ssl=2Ec
index 0998bd6=2E=2E9d461e7 100644
--- a/src/openvpn/ssl=2Ec
+++ b/src/openvpn/= ssl=2Ec
@@ -1914,21 +1914,21 @@
/*= support for P_DATA_V2 */
int iv_proto =3D IV_PROT= O_DATA_V2;

- /* support for the latest --dns option */
- iv_proto |=3D IV_PROTO_DNS_OPTIO= N_V2;
-
/* support for exit notify via control channel */

iv_proto |=3D IV_PROTO_CC_EXIT_NOTIFY;
- /* currently push-upda= te is not supported when DCO is enabled */
- if (!session->opt->dco_enabled)- {
- /* support push-updates */
- iv_proto |=3D= IV_PROTO_PUSH_UPDATE;
= - }
-
= if (session->opt->pull)
{
+ /* support = for the latest --dns option */
+ iv_proto |=3D IV_PROTO_DNS_OPTION_V2;
+

+ /* currently push-update is not supported= when DCO is enabled */
+ if (!session->opt->dco_enabled)
+ {
+ /* support push-updates */
+ iv_proto= |=3D IV_PROTO_PUSH_UPDATE;
+ }
+
/* support for receiving push_reply before = sending
* push request, also signal that the = client wants
* to get push-reply messages wit= hout requiring a round
@@ -1943,11 +1943,9 @@

/* support for tun-mtu as part of the pus= h message */
buf_printf(&out, "IV_MTU= =3D%d\n", session->opt->frame=2Etun_max_mtu);
- }

- /* support for Negotiable = Crypto Parameters */

- = if (session->opt->mode =3D=3D MODE_SERVER || session->opt-&= gt;pull)
- {
+ /* legacy s= upport for Negotiable Crypto Parameters (deprecated in
+ * favour of IV_CIPHERS) */<= /span>
if (tls_item_in_cipher_list("AES-128-GCM&= quot;, session->opt->config_ncp_ciphers)
= && tls_item_in_cipher_list("AES-256-GCM", session-&g= t;opt->config_ncp_ciphers))
{
@@ -1956,7 +1954,7 @@

}
= else
{
- /* We are not using pull or p2mp server, instead do= P2P NCP */
+ = /* If we are not using pull we announce P2P NCP support */
iv_proto |=3D IV_PROTO_NCP_P2P;

}=


To view, visit change 16= 34=2E To unsubscribe, or for help writing mail filters, visit settings=2E

=
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change= -Id: I0737b769e78e6d271ec874cadb9fbd81bfefdec1
Gerrit-Change-Number: 1634
Gerr= it-PatchSet: 3
Gerrit-Owner: plaisthos = <arne-openvpn@rfc2549=2Eorg>
Gerr= it-Reviewer: flichtenheld <frank@lichtenheld=2Ecom>
Gerrit-CC: openvpn-devel <openvpn-devel@lists=2Esourc= eforge=2Enet>
Gerrit-Attention: plai= sthos <arne-openvpn@rfc2549=2Eorg>
Gerrit-Attention: flichtenheld <frank@lichtenheld=2Ecom>
--2ZT/iwgay0g=-- --===============7924467443192247268== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7924467443192247268== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel --===============7924467443192247268==--