Attention is currently required from: Arne Schwabe, Frank Lichtenheld, Răzvan 
Cojocaru.

Lev Stipakov has posted comments on this change by Lev Stipakov. ( 
https://gerrit.openvpn.net/c/openvpn/+/1965?usp=email )

Change subject: control_msg: Add a shared TLV codec and use it for early 
negotiation
......................................................................


Patch Set 5:

(2 comments)

File src/openvpn/ssl.c:

https://gerrit.openvpn.net/c/openvpn/+/1965/comment/dd290fdb_7fa313ee?usp=email 
:
PS3, Line 2665:                 }
> I don't think this is necessary. There is no problem in accept an optional 
> bit here.
Removing the break would change the existing behavior. On the existing code 
0x8001 falls to default and is skipped. In this new code it is parsed, and a 
length other than 2 fails the handshake.

While no-one now sends 0x8001, I would still prefer not to change the behavior.


File tests/unit_tests/openvpn/test_control_msg.c:

https://gerrit.openvpn.net/c/openvpn/+/1965/comment/4c17a5b5_e55353b4?usp=email 
:
PS4, Line 163: /* Writing fails, rather than writes a partial TLV, when buf is 
too small. */
> The write functions don't check for space up front, so a failed write does 
> leave a partial TLV: `BLE […]
Fixed. ctrl_msg_tlv_write_header() now reserves header + value up front, so a 
failed write leaves buf untouched. Also fixed the test.



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

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I89c3133e009dc75dc2c10c607b3f0a24c04e8146
Gerrit-Change-Number: 1965
Gerrit-PatchSet: 5
Gerrit-Owner: Lev Stipakov <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Frank Lichtenheld <[email protected]>
Gerrit-Reviewer: Răzvan Cojocaru <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Răzvan Cojocaru <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
Gerrit-Attention: Frank Lichtenheld <[email protected]>
Gerrit-Comment-Date: Wed, 04 Nov 2026 16:21:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Răzvan Cojocaru <[email protected]>
Comment-In-Reply-To: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to