Change in openvpn[release/2.6]: ntlm: fix discards 'const' qualifier from pointer target type
A message that is not in the archive (sent off-list or not yet received): gerrit.1771415352000.I2703f15144661f9cadfc8750884db270f3a5bfc6@...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/+/1546?usp=email
to review the following change.
Change subject: ntlm: fix discards 'const' qualifier from pointer target type
......................................................................
ntlm: fix discards 'const' qualifier from pointer target type
Since glibc-2.43:
For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type.
fixes:
src/openvpn/ntlm.c: In function 'ntlm_phase_3':
src/openvpn/ntlm.c:241:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
241 | separator = strchr(p->up.username, '\\');
| ^
---
M src/openvpn/ntlm.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/1546/1
src/openvpn/ntlm.c +1 -1
@@ -230,7 +230,7 @@char domain[128 ];char username[128 ]; -char *separator; +const char *separator;bool ntlmv2_enabled = (p->auth_method ==HTTP_AUTH_NTLM2 );
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1546?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: release/2.6
Gerrit-Change-Id: I2703f15144661f9cadfc8750884db270f3a5bfc6
Gerrit-Change-Number: 1546
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[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/+/1546?usp=email
to look at the new patch set (#2).
Change subject: ntlm: fix discards 'const' qualifier from pointer target type
......................................................................
ntlm: fix discards 'const' qualifier from pointer target type
Since glibc-2.43:
For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type.
fixes:
src/openvpn/ntlm.c: In function 'ntlm_phase_3':
src/openvpn/ntlm.c:241:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
241 | separator = strchr(p->up.username, '\\');
| ^
---
M src/openvpn/ntlm.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/1546/2
src/openvpn/ntlm.c +1 -1
@@ -230,7 +230,7 @@char domain[128 ];char username[128 ]; -char *separator; +const char *separator;bool ntlmv2_enabled = (p->auth_method ==HTTP_AUTH_NTLM2 );
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1546?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: release/2.6
Gerrit-Change-Id: I2703f15144661f9cadfc8750884db270f3a5bfc6
Gerrit-Change-Number: 1546
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1546?usp=email )
Change subject: ntlm: fix discards 'const' qualifier from pointer target type
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1546?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: release/2.6
Gerrit-Change-Id: I2703f15144661f9cadfc8750884db270f3a5bfc6
Gerrit-Change-Number: 1546
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Wed, 18 Feb 2026 21:44:12 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH v2 1/1 ntlm: fix discards 'const' qualifier from pointer target type
In reply to a message not in the archiveFrom: Rudi Heitbaum <[email protected]...>
Since glibc-2.43:
For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type.
fixes:
src/openvpn/ntlm.c: In function 'ntlm_phase_3':
src/openvpn/ntlm.c:241:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
241 | separator = strchr(p->up.username, '\\');
| ^
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1546
(cherry picked from commit 720c2e97f609bf7bb7e628ddfa7d3e3783afa676)
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to release/2.6.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1546
This mail reflects revision 2 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpn/ntlm.c +1 -1
@@ -230,7 +230,7 @@char domain[128 ];char username[128 ]; -char *separator; +const char *separator;bool ntlmv2_enabled = (p->auth_method ==HTTP_AUTH_NTLM2 );
[Openvpn-devel] [PATCH applied] Re: ntlm: fix discards 'const' qualifier from pointer target type
Hi,
thanks for this. So *this* patch only goes to release/2.6 (because the NTLM code in release/2.7 is different, and there is no more NTLM code in master)...
Your patch has been applied to the release/2.6 branch.
commit b5087dcf3fe3d4aa226dd3e727991bfe8a3a5efb
Author: Rudi Heitbaum Date: Wed Feb 18 22:44:31 2026 +0100
ntlm: fix discards 'const' qualifier from pointer target type
Signed-off-by: Rudi Heitbaum <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1546
Acked-by: Frank Lichtenheld <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35723.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
Re: [Openvpn-devel] [PATCH applied] Re: ntlm: fix discards 'const' qualifier from pointer target type
Hi,
Quoted 7 lines · Gert Doering
thanks for this. So *this* patch only goes to release/2.6 (because the NTLM code in release/2.7 is different, and there is no more NTLM code in master)...
Your patch has been applied to the release/2.6 branch.
commit
b5087dcf3fe3d4aa226dd3e727991bfe8a3a5efb
Too many patches, too many branches, sorry - for whatever reason, "git am" was not cooperating, and I did not look in the right place, came to the wrong conclusion. Of course this needs to go into release/2.7 as well
commit 18b38ffc69f8ad96c2b3d7b86bd0eec015ffc376 (release/2.7)
gert
Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]...cron2 has uploaded a new patch set (#3) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1546?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: ntlm: fix discards 'const' qualifier from pointer target type
......................................................................
ntlm: fix discards 'const' qualifier from pointer target type
Since glibc-2.43:
For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type.
fixes:
src/openvpn/ntlm.c: In function 'ntlm_phase_3':
src/openvpn/ntlm.c:241:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
241 | separator = strchr(p->up.username, '\\');
| ^
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1546
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35723.html
---
M src/openvpn/ntlm.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/1546/3
src/openvpn/ntlm.c +1 -1
@@ -230,7 +230,7 @@char domain[128 ];char username[128 ]; -char *separator; +const char *separator;bool ntlmv2_enabled = (p->auth_method ==HTTP_AUTH_NTLM2 );
Signature · 13 lines
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1546?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: release/2.6 Gerrit-Change-Id: I2703f15144661f9cadfc8750884db270f3a5bfc6 Gerrit-Change-Number: 1546 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld <[email protected]...> Gerrit-Reviewer: cron2 <[email protected]...> Gerrit-Reviewer: plaisthos <[email protected]...> Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1546?usp=email )
Change subject: ntlm: fix discards 'const' qualifier from pointer target type
......................................................................
ntlm: fix discards 'const' qualifier from pointer target type
Since glibc-2.43:
For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type.
fixes:
src/openvpn/ntlm.c: In function 'ntlm_phase_3':
src/openvpn/ntlm.c:241:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
241 | separator = strchr(p->up.username, '\\');
| ^
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1546
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35723.html
---
M src/openvpn/ntlm.c
1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/ntlm.c +1 -1
@@ -230,7 +230,7 @@char domain[128 ];char username[128 ]; -char *separator; +const char *separator;bool ntlmv2_enabled = (p->auth_method ==HTTP_AUTH_NTLM2 );
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1546?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: release/2.6
Gerrit-Change-Id: I2703f15144661f9cadfc8750884db270f3a5bfc6
Gerrit-Change-Number: 1546
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>