From: "selvanair (Code Review)" Date: Sat, 28 Mar 2026 15:49:29 +0000 In-Reply-To: References: Reply-To: selva.nair@...277..., arne-openvpn@...1227..., luca.boccassi@...277..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="oTHq/E1gJAk="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: management: add password-base64 multi-line input for passwords List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bluca Cc: plaisthos , openvpn-devel --oTHq/E1gJAk= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: Bluca, plaisthos. selvanair has posted comments on this change by Bluca. ( http://gerrit.open= vpn.net/c/openvpn/+/1593?usp=3Demail ) Change subject: management: add password-base64 multi-line input for passwo= rds ...................................................................... Patch Set 1: (5 comments) File doc/management-notes.txt: http://gerrit.openvpn.net/c/openvpn/+/1593/comment/ec11ebed_489629cf?usp=3D= email : PS1, Line 329: commands. Update MANAGEMENT_VERSION to 6 and document that multi-line password suppor= t requires daemon version >=3D 6. File src/openvpn/manage.c: http://gerrit.openvpn.net/c/openvpn/+/1593/comment/0fc3a710_af3796ab?usp=3D= email : PS1, Line 1029: * @param type The type of password being entered = (e.g. "Auth", "TLS-Auth", etc) Nitpick: "TLS-Auth" is not a valid type -- "Private Key" ? http://gerrit.openvpn.net/c/openvpn/+/1593/comment/ce75309c_cca007a8?usp=3D= email : PS1, Line 1102: msg(M_CLIENT, "ERROR: could not base64-= decode password"); This could lead to an unhelpful decode error or silent truncation which is = hard to debug. Instead, use a larger length like OPENVPN_BASE64_LENGTH(USER_PASS_LEN) + 10= 24 that will capture some of the excess data (if any), and then check OPENV= PN_BASE64_DECODE_LENGTH(BLEN(buf)) < USER_PASS_LEN. On failure, return an E= RROR message showing password is too long. http://gerrit.openvpn.net/c/openvpn/+/1593/comment/13426238_dff01d9f?usp=3D= email : PS1, Line 1110: secure_memzero(decoded, sizeof(decoded)); Also needs a buf_clear() somewhere as buf contains sensitive data. http://gerrit.openvpn.net/c/openvpn/+/1593/comment/1de6799c_71c005a6?usp=3D= email : PS1, Line 1664: else if (streq(p[0], "password-base64")) As Gert suggested, we could use "password 'Type'" with no argument and inte= rpret it differently based on the management-client-version (say MCV_MULTIL= INE_PASSWORD). Better than introducing a different keyword? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1593?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: Ib99f171fb69d51f2260b44edf8ebe21ac958f233 Gerrit-Change-Number: 1593 Gerrit-PatchSet: 1 Gerrit-Owner: Bluca Gerrit-Reviewer: plaisthos Gerrit-Reviewer: selvanair Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: Bluca Gerrit-Comment-Date: Sat, 28 Mar 2026 15:49:29 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No --oTHq/E1gJAk= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: Bluca, plaisthos.

View = Change

5 comments:

To v= iew, visit change 1593. To unsubscribe, or for help writing mail filters, visit= settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib99f171fb69d51f2260b44edf8e= be21ac958f233
Gerrit-Change-Number: 1593
Gerrit-PatchSet: 1
Gerrit-Owner: Bluca <luca.boccassi@...1663...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-Reviewer: selvanair <selva.nair@...1665...= 77...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: Bluca <luca.boccassi@...1665...= 77...>
Gerrit-Comment-Date: Sat, 28 Mar 2026 15:49:29= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
= --oTHq/E1gJAk=--