Change in openvpn[master]: add and send IV_PROTO_DNS_OPTION_V2 flag
A message that is not in the archive (sent off-list or not yet received): gerrit.1721830475000.I975057c20c1457ef88111f8d142ca3fd2039d5ff@...2715...
Attention is currently required from: flichtenheld, plaisthos.
Hello plaisthos, flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/680?usp=email
to review the following change.
Change subject: add and send IV_PROTO_DNS_OPTION_V2 flag
......................................................................
add and send IV_PROTO_DNS_OPTION_V2 flag
Incompatible changes to the --dns server address and --dns server exclude-domains options were introduced after the code for handling them was released. Add and send a new IV_PROTO flag, so servers which act on the flags set can differentiate between clients which have implemented --dns and those which just support the new option. This enables them to decide which variant of options to send to the client.
---
M src/openvpn/ssl.c
M src/openvpn/ssl.h
2 files changed, 6 insertions(+), 3 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/80/680/1
src/openvpn/ssl.c +2 -2
@@ -1900,8 +1900,8 @@/* support for P_DATA_V2 */ int iv_proto =IV_PROTO_DATA_V2 ; -/* support for the --dns option */ - iv_proto |=IV_PROTO_DNS_OPTION ; +/* support for the latest --dns option */ + iv_proto |=IV_PROTO_DNS_OPTION_V2 ;/* support for exit notify via control channel */ iv_proto |=IV_PROTO_CC_EXIT_NOTIFY ;
src/openvpn/ssl.h +4 -1
@@ -94,7 +94,7 @@* result. */ #define IV_PROTO_NCP_P2P (1<<5) -/** Supports the --dns option introduced in version 2.6 */ +/** Supports the --dns option introduced in version 2.6. Not sent anymore. */ #define IV_PROTO_DNS_OPTION (1<<6)/** Support for explicit exit notify via control channel
@@ -107,6 +107,9 @@/** Support to dynamic tls-crypt (renegotiation with TLS-EKM derived tls-crypt key) */ #define IV_PROTO_DYN_TLS_CRYPT (1<<9) +/** Supports the --dns option after all the incompatible changes */ +#define IV_PROTO_DNS_OPTION_V2 (1<<11) +/* Default field in X509 to be username */ #define X509_USERNAME_FIELD_DEFAULT "CN"
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/680?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I975057c20c1457ef88111f8d142ca3fd2039d5ff
Gerrit-Change-Number: 680
Gerrit-PatchSet: 1
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: d12fk, flichtenheld.
plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/680?usp=email )
Change subject: add and send IV_PROTO_DNS_OPTION_V2 flag
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/680?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I975057c20c1457ef88111f8d142ca3fd2039d5ff
Gerrit-Change-Number: 680
Gerrit-PatchSet: 1
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Comment-Date: Wed, 24 Jul 2024 14:56:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH 1/1 add and send IV_PROTO_DNS_OPTION_V2 flag
In reply to a message not in the archiveFrom: Heiko Hund <[email protected]...>
Incompatible changes to the --dns server address and --dns server exclude-domains options were introduced after the code for handling them was released. Add and send a new IV_PROTO flag, so servers which act on the flags set can differentiate between clients which have implemented --dns and those which just support the new option. This enables them to decide which variant of options to send to the client.
---
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/+/680
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Arne Schwabe <[email protected]...>
src/openvpn/ssl.c +2 -2
@@ -1900,8 +1900,8 @@/* support for P_DATA_V2 */ int iv_proto =IV_PROTO_DATA_V2 ; -/* support for the --dns option */ - iv_proto |=IV_PROTO_DNS_OPTION ; +/* support for the latest --dns option */ + iv_proto |=IV_PROTO_DNS_OPTION_V2 ;/* support for exit notify via control channel */ iv_proto |=IV_PROTO_CC_EXIT_NOTIFY ;
src/openvpn/ssl.h +4 -1
@@ -94,7 +94,7 @@* result. */ #define IV_PROTO_NCP_P2P (1<<5) -/** Supports the --dns option introduced in version 2.6 */ +/** Supports the --dns option introduced in version 2.6. Not sent anymore. */ #define IV_PROTO_DNS_OPTION (1<<6)/** Support for explicit exit notify via control channel
@@ -107,6 +107,9 @@/** Support to dynamic tls-crypt (renegotiation with TLS-EKM derived tls-crypt key) */ #define IV_PROTO_DYN_TLS_CRYPT (1<<9) +/** Supports the --dns option after all the incompatible changes */ +#define IV_PROTO_DNS_OPTION_V2 (1<<11) +/* Default field in X509 to be username */ #define X509_USERNAME_FIELD_DEFAULT "CN"
[Openvpn-devel] [PATCH applied] Re: add and send IV_PROTO_DNS_OPTION_V2 flag
I have not tested this beyond "does it compile".
My understanding is that this is to align openvpn 2.x and 3.x in regards to "if this bit is set, the client understands the new variants in --dns" and since the "new code" is only in master, so is this patch.
Your patch has been applied to the master branch.
commit 8991f0d5c6c06d1e42919d1d6a0813ca1c46f8a1 (master)
Author: Heiko Hund Date: Thu Jul 25 13:22:48 2024 +0200
add and send IV_PROTO_DNS_OPTION_V2 flag
Signed-off-by: Heiko Hund <[email protected]...>
Acked-by: Arne Schwabe <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28970.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by d12fk. ( http://gerrit.openvpn.net/c/openvpn/+/680?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by plaisthos
Change subject: add and send IV_PROTO_DNS_OPTION_V2 flag
......................................................................
add and send IV_PROTO_DNS_OPTION_V2 flag
Incompatible changes to the --dns server address and --dns server exclude-domains options were introduced after the code for handling them was released. Add and send a new IV_PROTO flag, so servers which act on the flags set can differentiate between clients which have implemented --dns and those which just support the new option. This enables them to decide which variant of options to send to the client.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28970.html
---
M src/openvpn/ssl.c
M src/openvpn/ssl.h
2 files changed, 6 insertions(+), 3 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/80/680/2
src/openvpn/ssl.c +2 -2
@@ -1900,8 +1900,8 @@/* support for P_DATA_V2 */ int iv_proto =IV_PROTO_DATA_V2 ; -/* support for the --dns option */ - iv_proto |=IV_PROTO_DNS_OPTION ; +/* support for the latest --dns option */ + iv_proto |=IV_PROTO_DNS_OPTION_V2 ;/* support for exit notify via control channel */ iv_proto |=IV_PROTO_CC_EXIT_NOTIFY ;
src/openvpn/ssl.h +4 -1
@@ -94,7 +94,7 @@* result. */ #define IV_PROTO_NCP_P2P (1<<5) -/** Supports the --dns option introduced in version 2.6 */ +/** Supports the --dns option introduced in version 2.6. Not sent anymore. */ #define IV_PROTO_DNS_OPTION (1<<6)/** Support for explicit exit notify via control channel
@@ -107,6 +107,9 @@/** Support to dynamic tls-crypt (renegotiation with TLS-EKM derived tls-crypt key) */ #define IV_PROTO_DYN_TLS_CRYPT (1<<9) +/** Supports the --dns option after all the incompatible changes */ +#define IV_PROTO_DNS_OPTION_V2 (1<<11) +/* Default field in X509 to be username */ #define X509_USERNAME_FIELD_DEFAULT "CN"
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/680?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I975057c20c1457ef88111f8d142ca3fd2039d5ff
Gerrit-Change-Number: 680
Gerrit-PatchSet: 2
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/680?usp=email )
Change subject: add and send IV_PROTO_DNS_OPTION_V2 flag
......................................................................
add and send IV_PROTO_DNS_OPTION_V2 flag
Incompatible changes to the --dns server address and --dns server exclude-domains options were introduced after the code for handling them was released. Add and send a new IV_PROTO flag, so servers which act on the flags set can differentiate between clients which have implemented --dns and those which just support the new option. This enables them to decide which variant of options to send to the client.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28970.html
---
M src/openvpn/ssl.c
M src/openvpn/ssl.h
2 files changed, 6 insertions(+), 3 deletions(-)
src/openvpn/ssl.c +2 -2
@@ -1900,8 +1900,8 @@/* support for P_DATA_V2 */ int iv_proto =IV_PROTO_DATA_V2 ; -/* support for the --dns option */ - iv_proto |=IV_PROTO_DNS_OPTION ; +/* support for the latest --dns option */ + iv_proto |=IV_PROTO_DNS_OPTION_V2 ;/* support for exit notify via control channel */ iv_proto |=IV_PROTO_CC_EXIT_NOTIFY ;
src/openvpn/ssl.h +4 -1
@@ -94,7 +94,7 @@* result. */ #define IV_PROTO_NCP_P2P (1<<5) -/** Supports the --dns option introduced in version 2.6 */ +/** Supports the --dns option introduced in version 2.6. Not sent anymore. */ #define IV_PROTO_DNS_OPTION (1<<6)/** Support for explicit exit notify via control channel
@@ -107,6 +107,9 @@/** Support to dynamic tls-crypt (renegotiation with TLS-EKM derived tls-crypt key) */ #define IV_PROTO_DYN_TLS_CRYPT (1<<9) +/** Supports the --dns option after all the incompatible changes */ +#define IV_PROTO_DNS_OPTION_V2 (1<<11) +/* Default field in X509 to be username */ #define X509_USERNAME_FIELD_DEFAULT "CN"
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/680?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I975057c20c1457ef88111f8d142ca3fd2039d5ff
Gerrit-Change-Number: 680
Gerrit-PatchSet: 2
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged