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

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 8:

(3 comments)

Patchset:

PS8:
Steffan's comments addressed. Also both of Arne's points are addressed from 
patchset 6.


File src/openvpn/control_msg.h:

https://gerrit.openvpn.net/c/openvpn/+/1965/comment/7c9936cb_ad84fbd6?usp=email 
:
PS7, Line 88: bool ctrl_msg_tlv_read_header(struct buffer *buf, struct 
ctrl_msg_tlv_header *hdr);
> Do we actually need read_header externally? I could imagine a peek-like 
> variant would be useful. […]
agreed, not needed externally. Replaced the implementation with _peek, which 
never advances the caller.


File src/openvpn/control_msg.c:

https://gerrit.openvpn.net/c/openvpn/+/1965/comment/f151cdba_d94abc27?usp=email 
:
PS7, Line 87:     }
> When you return here, the TLV was only partially consumed, which might come 
> as a surprise to future  […]
Fixed. ctrl_msg_tlv_next() now peeks the header, checks the length and only 
then consumes, so shorter value leaves the buffer untouched.



--
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: 8
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-Reviewer: Steffan Karger <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Răzvan Cojocaru <[email protected]>
Gerrit-Attention: Steffan Karger <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
Gerrit-Attention: Frank Lichtenheld <[email protected]>
Gerrit-Comment-Date: Mon, 16 Nov 2026 14:40:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Steffan Karger <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to