From: "its_Giaan (Code Review)"
Date: Mon, 27 Oct 2025 13:47:02 +0000
In-Reply-To:
References:
Reply-To: gianmarco@...2726..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, frank@...2641...,
gert@...1296...
Message-ID: <2da8d2c9c39b513cbbc31f5cb192b313ae6ebdbb-EmailReviewComments-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="LQEzz/a1T4w="; charset=UTF-8
Subject: [Openvpn-devel] [M] Change in openvpn[master]: multipeer: introduce
asymmetric peer-id
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Cc: plaisthos , flichtenheld , openvpn-devel
--LQEzz/a1T4w=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: cron2, flichtenheld, plaisthos.
its_Giaan has posted comments on this change by its_Giaan. ( http://gerrit.=
openvpn.net/c/openvpn/+/1089?usp=3Demail )
Change subject: multipeer: introduce asymmetric peer-id
......................................................................
Patch Set 5:
(8 comments)
Patchset:
PS4:
> The part that picks the "peer-id" pushed and parsed options. [=E2=80=A6]
Done
File src/openvpn/ssl.c:
http://gerrit.openvpn.net/c/openvpn/+/1089/comment/483a5681_27b0022b?usp=3D=
email :
PS4, Line 1179: ret->rx_peer_id =3D MAX_PEER_ID;
> Add comment here that we also use the rx peer id to identify DCO clients =
as this has become now a im [=E2=80=A6]
Done
http://gerrit.openvpn.net/c/openvpn/+/1089/comment/d7cabc51_e6990ae0?usp=3D=
email :
PS4, Line 1982: }
> This is still not guarded by DCO capability. [=E2=80=A6]
Done
http://gerrit.openvpn.net/c/openvpn/+/1089/comment/c0fec251_e0eada21?usp=3D=
email :
PS4, Line 2165: if (multi->rx_peer_id =3D=3D MAX_PEER_ID && session->op=
t->mode !=3D MODE_SERVER)
> This feel be a very hacky place to set the multi rx peer id. [=E2=80=A6]
I moved this into tls_multi_init_finalize(), hope that's fine.
File src/openvpn/ssl_ncp.c:
http://gerrit.openvpn.net/c/openvpn/+/1089/comment/74331eed_c592a014?usp=3D=
email :
PS4, Line 425: if (tx_peer_id)
> This also need to take DCO capability into account.
Done
http://gerrit.openvpn.net/c/openvpn/+/1089/comment/c5e954b4_8a6a0a93?usp=3D=
email :
PS4, Line 450: if (multi->use_peer_id)
> I think this parts needs to be skipped if we are using/negotiated asymmet=
ric peer-id as it would ove [=E2=80=A6]
Done
File src/openvpn/ssl_util.h:
http://gerrit.openvpn.net/c/openvpn/+/1089/comment/be89150e_3068de2f?usp=3D=
email :
PS4, Line 56: uint32_t extract_asymmetric_peer_id(const char *peer_info);
> Add doxygen please
Done
File src/openvpn/ssl_util.c:
http://gerrit.openvpn.net/c/openvpn/+/1089/comment/c1989b67_8f07aa92?usp=3D=
email :
PS4, Line 90: return 0;
> 0 is a valid peer id. [=E2=80=A6]
Done
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1089?usp=3Demail
To unsubscribe, or for help writing mail filters, visit http://gerrit.openv=
pn.net/settings?usp=3Demail
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0a13ee90b6706acf20eabcee3bab3f2dff639bf9
Gerrit-Change-Number: 1089
Gerrit-PatchSet: 5
Gerrit-Owner: its_Giaan
Gerrit-Reviewer: cron2
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-Attention: cron2
Gerrit-Attention: flichtenheld
Gerrit-Comment-Date: Mon, 27 Oct 2025 13:47:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: plaisthos
--LQEzz/a1T4w=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: cron2, flichtenheld, plaisthos.