Change in openvpn[master]: Document management client versions
A message that is not in the archive (sent off-list or not yet received): gerrit.1772061272000.I1c01fa1bc7d65ac060b334724feb56ef4d0b5d35@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1552?usp=email
to review the following change.
Change subject: Document management client versions
......................................................................
Document management client versions
Also add an enum to keep track of client version updates.
---
M doc/management-notes.txt
M src/openvpn/manage.c
2 files changed, 19 insertions(+), 5 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/52/1552/1
doc/management-notes.txt +4 -0
@@ -496,6 +496,10 @@ version. This was fixed starting version 4: clients should expect "SUCCESS: .. " message only when setting the version to >= 4. +Minimum client version required for certain features is listed below: + >PK_SIGN:[base64] -- version 2 or greater + >PK_SIGN:[base64],[alg] -- version 3 or greater + COMMAND -- auth-retry ---------------------
src/openvpn/manage.c +15 -5
@@ -61,6 +61,16 @@/* tag for blank username/password */ static const char blank_up[] ="[[BLANK]]" ; +/* +* Management client versions indicating feature support in client. +* Append new values as needed but do not change exisiting ones. +*/ +static enum mcv { +MCV_DEFAULT =1 , +MCV_PKSIGN =2 , +MCV_PKSIGN_ALG =3 , +}; +struct management *management;/* GLOBAL */ /* static forward declarations */
@@ -1333,8 +1343,8 @@if (version) { man->connection.client_version =atoi (version); -/* Prior to version 3, we missed to respond to this command. Acknowledge only if version >= 4 */ -if (man->connection.client_version >=4 ) +/* Until MCV_PKSIGN_ALG, we missed to respond to this command. Acknowledge only if version is newer */ +if (man->connection.client_version >MCV_PKSIGN_ALG ) {msg (M_CLIENT ,"SUCCESS: Management client version set to %d" , man->connection.client_version); }
@@ -2656,7 +2666,7 @@ man->connection.es =event_set_init (&maxevents,EVENT_METHOD_FAST ); } - man->connection.client_version =1 ;/* default version */ + man->connection.client_version =MCV_DEFAULT ;/* default version */ /* * Listen/connect socket
@@ -3776,14 +3786,14 @@const char *desc ="pk-sign" ;struct buffer buf_data =alloc_buf (strlen (b64_data) +strlen (algorithm) +20 ); -if (man->connection.client_version <=1 ) +if (man->connection.client_version <=MCV_DEFAULT ) { prompt ="RSA_SIGN" ; desc ="rsa-sign" ; }buf_write (&buf_data, b64_data, (int )strlen (b64_data)); -if (man->connection.client_version >2 ) +if (man->connection.client_version >=MCV_PKSIGN_ALG ) {buf_write (&buf_data,"," , (int )strlen ("," ));buf_write (&buf_data, algorithm, (int )strlen (algorithm));
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1552?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1c01fa1bc7d65ac060b334724feb56ef4d0b5d35
Gerrit-Change-Number: 1552
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/1552?usp=email
to look at the new patch set (#2).
Change subject: Document management client versions
......................................................................
Document management client versions
Also add an enum to keep track of client version updates.
---
M doc/management-notes.txt
M src/openvpn/manage.c
2 files changed, 20 insertions(+), 5 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/52/1552/2
doc/management-notes.txt +4 -0
@@ -496,6 +496,10 @@ version. This was fixed starting version 4: clients should expect "SUCCESS: .. " message only when setting the version to >= 4. +Minimum client version required for certain features is listed below: + >PK_SIGN:[base64] -- version 2 or greater + >PK_SIGN:[base64],[alg] -- version 3 or greater + COMMAND -- auth-retry ---------------------
src/openvpn/manage.c +16 -5
@@ -61,6 +61,17 @@/* tag for blank username/password */ static const char blank_up[] ="[[BLANK]]" ; +/* +* Management client versions indicating feature support in client. +* Append new values as needed but do not change exisiting ones. +*/ +enum mcv +{ +MCV_DEFAULT =1 , +MCV_PKSIGN =2 , +MCV_PKSIGN_ALG =3 , +}; +struct management *management;/* GLOBAL */ /* static forward declarations */
@@ -1333,8 +1344,8 @@if (version) { man->connection.client_version =atoi (version); -/* Prior to version 3, we missed to respond to this command. Acknowledge only if version >= 4 */ -if (man->connection.client_version >=4 ) +/* Until MCV_PKSIGN_ALG, we missed to respond to this command. Acknowledge only if version is newer */ +if (man->connection.client_version >MCV_PKSIGN_ALG ) {msg (M_CLIENT ,"SUCCESS: Management client version set to %d" , man->connection.client_version); }
@@ -2656,7 +2667,7 @@ man->connection.es =event_set_init (&maxevents,EVENT_METHOD_FAST ); } - man->connection.client_version =1 ;/* default version */ + man->connection.client_version =MCV_DEFAULT ;/* default version */ /* * Listen/connect socket
@@ -3776,14 +3787,14 @@const char *desc ="pk-sign" ;struct buffer buf_data =alloc_buf (strlen (b64_data) +strlen (algorithm) +20 ); -if (man->connection.client_version <=1 ) +if (man->connection.client_version <=MCV_DEFAULT ) { prompt ="RSA_SIGN" ; desc ="rsa-sign" ; }buf_write (&buf_data, b64_data, (int )strlen (b64_data)); -if (man->connection.client_version >2 ) +if (man->connection.client_version >=MCV_PKSIGN_ALG ) {buf_write (&buf_data,"," , (int )strlen ("," ));buf_write (&buf_data, algorithm, (int )strlen (algorithm));
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1552?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1c01fa1bc7d65ac060b334724feb56ef4d0b5d35
Gerrit-Change-Number: 1552
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: selvanair.
plaisthos has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1552?usp=email )
Change subject: Document management client versions
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1552?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1c01fa1bc7d65ac060b334724feb56ef4d0b5d35
Gerrit-Change-Number: 1552
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Mon, 02 Mar 2026 13:32:20 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH v2 1/1 Document management client versions
In reply to a message not in the archiveFrom: Selva Nair <[email protected]...>
Also add an enum to keep track of client version updates.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1552
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1552
This mail reflects revision 2 of this Change.
Acked-by according to Gerrit (reflected above):
Arne Schwabe <[email protected]...>
doc/management-notes.txt +4 -0
@@ -496,6 +496,10 @@ version. This was fixed starting version 4: clients should expect "SUCCESS: .. " message only when setting the version to >= 4. +Minimum client version required for certain features is listed below: + >PK_SIGN:[base64] -- version 2 or greater + >PK_SIGN:[base64],[alg] -- version 3 or greater + COMMAND -- auth-retry ---------------------
src/openvpn/manage.c +16 -5
@@ -61,6 +61,17 @@/* tag for blank username/password */ static const char blank_up[] ="[[BLANK]]" ; +/* +* Management client versions indicating feature support in client. +* Append new values as needed but do not change exisiting ones. +*/ +enum mcv +{ +MCV_DEFAULT =1 , +MCV_PKSIGN =2 , +MCV_PKSIGN_ALG =3 , +}; +struct management *management;/* GLOBAL */ /* static forward declarations */
@@ -1333,8 +1344,8 @@if (version) { man->connection.client_version =atoi (version); -/* Prior to version 3, we missed to respond to this command. Acknowledge only if version >= 4 */ -if (man->connection.client_version >=4 ) +/* Until MCV_PKSIGN_ALG, we missed to respond to this command. Acknowledge only if version is newer */ +if (man->connection.client_version >MCV_PKSIGN_ALG ) {msg (M_CLIENT ,"SUCCESS: Management client version set to %d" , man->connection.client_version); }
@@ -2656,7 +2667,7 @@ man->connection.es =event_set_init (&maxevents,EVENT_METHOD_FAST ); } - man->connection.client_version =1 ;/* default version */ + man->connection.client_version =MCV_DEFAULT ;/* default version */ /* * Listen/connect socket
@@ -3776,14 +3787,14 @@const char *desc ="pk-sign" ;struct buffer buf_data =alloc_buf (strlen (b64_data) +strlen (algorithm) +20 ); -if (man->connection.client_version <=1 ) +if (man->connection.client_version <=MCV_DEFAULT ) { prompt ="RSA_SIGN" ; desc ="rsa-sign" ; }buf_write (&buf_data, b64_data, (int )strlen (b64_data)); -if (man->connection.client_version >2 ) +if (man->connection.client_version >=MCV_PKSIGN_ALG ) {buf_write (&buf_data,"," , (int )strlen ("," ));buf_write (&buf_data, algorithm, (int )strlen (algorithm));
[Openvpn-devel] [PATCH applied] Re: Document management client versions
Documentation is good, less magic numbers is good, in it goes ;-)
It looks good to me, has an ACK from Arne. Did not specifically test mgmt client versions - Arne and Selva do know that field much better.
Your patch has been applied to the master and release/2.7 branch.
commit d5814ecd2323ec7c2e6dad2cbf3884c031d9a5a3 (master) commit cb154f0363376deda076c3b0ec6cf3c640fd1e86 (release/2.7)
Author: Selva Nair Date: Mon Mar 2 15:18:02 2026 +0100
Document management client versions
Signed-off-by: Selva Nair <[email protected]...>
Acked-by: Arne Schwabe <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1552
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35805.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#3) to the change originally created by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1552?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by plaisthos
Change subject: Document management client versions
......................................................................
Document management client versions
Also add an enum to keep track of client version updates.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1552
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35805.html
---
M doc/management-notes.txt
M src/openvpn/manage.c
2 files changed, 20 insertions(+), 5 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/52/1552/3
doc/management-notes.txt +4 -0
@@ -496,6 +496,10 @@ version. This was fixed starting version 4: clients should expect "SUCCESS: .. " message only when setting the version to >= 4. +Minimum client version required for certain features is listed below: + >PK_SIGN:[base64] -- version 2 or greater + >PK_SIGN:[base64],[alg] -- version 3 or greater + COMMAND -- auth-retry ---------------------
src/openvpn/manage.c +16 -5
@@ -61,6 +61,17 @@/* tag for blank username/password */ static const char blank_up[] ="[[BLANK]]" ; +/* +* Management client versions indicating feature support in client. +* Append new values as needed but do not change exisiting ones. +*/ +enum mcv +{ +MCV_DEFAULT =1 , +MCV_PKSIGN =2 , +MCV_PKSIGN_ALG =3 , +}; +struct management *management;/* GLOBAL */ /* static forward declarations */
@@ -1333,8 +1344,8 @@if (version) { man->connection.client_version =atoi (version); -/* Prior to version 3, we missed to respond to this command. Acknowledge only if version >= 4 */ -if (man->connection.client_version >=4 ) +/* Until MCV_PKSIGN_ALG, we missed to respond to this command. Acknowledge only if version is newer */ +if (man->connection.client_version >MCV_PKSIGN_ALG ) {msg (M_CLIENT ,"SUCCESS: Management client version set to %d" , man->connection.client_version); }
@@ -2656,7 +2667,7 @@ man->connection.es =event_set_init (&maxevents,EVENT_METHOD_FAST ); } - man->connection.client_version =1 ;/* default version */ + man->connection.client_version =MCV_DEFAULT ;/* default version */ /* * Listen/connect socket
@@ -3776,14 +3787,14 @@const char *desc ="pk-sign" ;struct buffer buf_data =alloc_buf (strlen (b64_data) +strlen (algorithm) +20 ); -if (man->connection.client_version <=1 ) +if (man->connection.client_version <=MCV_DEFAULT ) { prompt ="RSA_SIGN" ; desc ="rsa-sign" ; }buf_write (&buf_data, b64_data, (int )strlen (b64_data)); -if (man->connection.client_version >2 ) +if (man->connection.client_version >=MCV_PKSIGN_ALG ) {buf_write (&buf_data,"," , (int )strlen ("," ));buf_write (&buf_data, algorithm, (int )strlen (algorithm));
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1552?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1c01fa1bc7d65ac060b334724feb56ef4d0b5d35
Gerrit-Change-Number: 1552
Gerrit-PatchSet: 3
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1552?usp=email )
Change subject: Document management client versions
......................................................................
Document management client versions
Also add an enum to keep track of client version updates.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1552
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35805.html
---
M doc/management-notes.txt
M src/openvpn/manage.c
2 files changed, 20 insertions(+), 5 deletions(-)
doc/management-notes.txt +4 -0
@@ -496,6 +496,10 @@ version. This was fixed starting version 4: clients should expect "SUCCESS: .. " message only when setting the version to >= 4. +Minimum client version required for certain features is listed below: + >PK_SIGN:[base64] -- version 2 or greater + >PK_SIGN:[base64],[alg] -- version 3 or greater + COMMAND -- auth-retry ---------------------
src/openvpn/manage.c +16 -5
@@ -61,6 +61,17 @@/* tag for blank username/password */ static const char blank_up[] ="[[BLANK]]" ; +/* +* Management client versions indicating feature support in client. +* Append new values as needed but do not change exisiting ones. +*/ +enum mcv +{ +MCV_DEFAULT =1 , +MCV_PKSIGN =2 , +MCV_PKSIGN_ALG =3 , +}; +struct management *management;/* GLOBAL */ /* static forward declarations */
@@ -1333,8 +1344,8 @@if (version) { man->connection.client_version =atoi (version); -/* Prior to version 3, we missed to respond to this command. Acknowledge only if version >= 4 */ -if (man->connection.client_version >=4 ) +/* Until MCV_PKSIGN_ALG, we missed to respond to this command. Acknowledge only if version is newer */ +if (man->connection.client_version >MCV_PKSIGN_ALG ) {msg (M_CLIENT ,"SUCCESS: Management client version set to %d" , man->connection.client_version); }
@@ -2656,7 +2667,7 @@ man->connection.es =event_set_init (&maxevents,EVENT_METHOD_FAST ); } - man->connection.client_version =1 ;/* default version */ + man->connection.client_version =MCV_DEFAULT ;/* default version */ /* * Listen/connect socket
@@ -3776,14 +3787,14 @@const char *desc ="pk-sign" ;struct buffer buf_data =alloc_buf (strlen (b64_data) +strlen (algorithm) +20 ); -if (man->connection.client_version <=1 ) +if (man->connection.client_version <=MCV_DEFAULT ) { prompt ="RSA_SIGN" ; desc ="rsa-sign" ; }buf_write (&buf_data, b64_data, (int )strlen (b64_data)); -if (man->connection.client_version >2 ) +if (man->connection.client_version >=MCV_PKSIGN_ALG ) {buf_write (&buf_data,"," , (int )strlen ("," ));buf_write (&buf_data, algorithm, (int )strlen (algorithm));
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1552?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1c01fa1bc7d65ac060b334724feb56ef4d0b5d35
Gerrit-Change-Number: 1552
Gerrit-PatchSet: 3
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>