<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/curl.git/lib/ldap.c, branch bagder/https-proxy-tests</title>
<subtitle>github.com: bagder/curl.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/'/>
<entry>
<title>build: Disable Visual Studio warning "conditional expression is constant"</title>
<updated>2019-12-02T00:01:02+00:00</updated>
<author>
<name>Jay Satiro</name>
<email>raysatiro@yahoo.com</email>
</author>
<published>2019-11-30T08:29:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=9c1806ae4684ec5ef1aeb39bb9f15cece1c27256'/>
<id>9c1806ae4684ec5ef1aeb39bb9f15cece1c27256</id>
<content type='text'>
- Disable warning C4127 "conditional expression is constant" globally
  in curl_setup.h for when building with Microsoft's compiler.

This mainly affects building with the Visual Studio project files found
in the projects dir.

Prior to this change the cmake and winbuild build systems already
disabled 4127 globally for when building with Microsoft's compiler.
Also, 4127 was already disabled for all build systems in the limited
circumstance of the WHILE_FALSE macro which disabled the warning
specifically for while(0). This commit removes the WHILE_FALSE macro and
all other cruft in favor of disabling globally in curl_setup.

Background:

We have various macros that cause 0 or 1 to be evaluated, which would
cause warning C4127 in Visual Studio. For example this causes it:

    #define Curl_resolver_asynch() 1

Full behavior is not clearly defined and inconsistent across versions.
However it is documented that since VS 2015 Update 3 Microsoft has
addressed this somewhat but not entirely, not warning on while(true) for
example.

Prior to this change some C4127 warnings occurred when I built with
Visual Studio using the generated projects in the projects dir.

Closes https://github.com/curl/curl/pull/4658
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Disable warning C4127 "conditional expression is constant" globally
  in curl_setup.h for when building with Microsoft's compiler.

This mainly affects building with the Visual Studio project files found
in the projects dir.

Prior to this change the cmake and winbuild build systems already
disabled 4127 globally for when building with Microsoft's compiler.
Also, 4127 was already disabled for all build systems in the limited
circumstance of the WHILE_FALSE macro which disabled the warning
specifically for while(0). This commit removes the WHILE_FALSE macro and
all other cruft in favor of disabling globally in curl_setup.

Background:

We have various macros that cause 0 or 1 to be evaluated, which would
cause warning C4127 in Visual Studio. For example this causes it:

    #define Curl_resolver_asynch() 1

Full behavior is not clearly defined and inconsistent across versions.
However it is documented that since VS 2015 Update 3 Microsoft has
addressed this somewhat but not entirely, not warning on while(true) for
example.

Prior to this change some C4127 warnings occurred when I built with
Visual Studio using the generated projects in the projects dir.

Closes https://github.com/curl/curl/pull/4658
</pre>
</div>
</content>
</entry>
<entry>
<title>ldap: fix OOM error on missing query string</title>
<updated>2019-10-05T23:47:31+00:00</updated>
<author>
<name>Nicolas</name>
<email>abramlujan@gmail.com</email>
</author>
<published>2019-10-05T01:49:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=8bb3a95ce1577e2c8282e7d1c2830bde87cf5c3b'/>
<id>8bb3a95ce1577e2c8282e7d1c2830bde87cf5c3b</id>
<content type='text'>
- Allow missing queries, don't return NO_MEMORY error in such a case.

It is acceptable for there to be no specified query string, for example:

curl ldap://ldap.forumsys.com

A regression bug in 1b443a7 caused this issue.

This is a partial fix for #4261.

Bug: https://github.com/curl/curl/issues/4261#issuecomment-525543077
Reported-by: Jojojov@users.noreply.github.com
Analyzed-by: Samuel Surtees

Closes https://github.com/curl/curl/pull/4467
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Allow missing queries, don't return NO_MEMORY error in such a case.

It is acceptable for there to be no specified query string, for example:

curl ldap://ldap.forumsys.com

A regression bug in 1b443a7 caused this issue.

This is a partial fix for #4261.

Bug: https://github.com/curl/curl/issues/4261#issuecomment-525543077
Reported-by: Jojojov@users.noreply.github.com
Analyzed-by: Samuel Surtees

Closes https://github.com/curl/curl/pull/4467
</pre>
</div>
</content>
</entry>
<entry>
<title>ldap: Stop using wide char version of ldapp_err2string</title>
<updated>2019-09-11T06:44:47+00:00</updated>
<author>
<name>Jay Satiro</name>
<email>raysatiro@yahoo.com</email>
</author>
<published>2019-08-27T18:20:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=08f96982a910eb83e2be03a7db1305c8668f9668'/>
<id>08f96982a910eb83e2be03a7db1305c8668f9668</id>
<content type='text'>
Despite ldapp_err2string being documented by MS as returning a
PCHAR (char *), when UNICODE it is mapped to ldap_err2stringW and
returns PWCHAR (wchar_t *).

We have lots of code that expects ldap_err2string to return char *,
most of it failf used like this:

failf(data, "LDAP local: Some error: %s", ldap_err2string(rc));

Closes https://github.com/curl/curl/pull/4272
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Despite ldapp_err2string being documented by MS as returning a
PCHAR (char *), when UNICODE it is mapped to ldap_err2stringW and
returns PWCHAR (wchar_t *).

We have lots of code that expects ldap_err2string to return char *,
most of it failf used like this:

failf(data, "LDAP local: Some error: %s", ldap_err2string(rc));

Closes https://github.com/curl/curl/pull/4272
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: reduce variable scopes</title>
<updated>2019-05-20T06:51:11+00:00</updated>
<author>
<name>Marcel Raad</name>
<email>Marcel.Raad@teamviewer.com</email>
</author>
<published>2019-05-11T19:42:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=10db3ef21eef1c7a1727579952a81ced2f4afc8b'/>
<id>10db3ef21eef1c7a1727579952a81ced2f4afc8b</id>
<content type='text'>
Fixes Codacy/CppCheck warnings.

Closes https://github.com/curl/curl/pull/3872
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes Codacy/CppCheck warnings.

Closes https://github.com/curl/curl/pull/3872
</pre>
</div>
</content>
</entry>
<entry>
<title>urldata: simplify bytecounters</title>
<updated>2019-03-01T16:30:34+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-02-28T10:36:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=65eb65fde64bd5faff6d6a7740f9436336e290e0'/>
<id>65eb65fde64bd5faff6d6a7740f9436336e290e0</id>
<content type='text'>
- no need to have them protocol specific

- no need to set pointers to them with the Curl_setup_transfer() call

- make Curl_setup_transfer() operate on a transfer pointer, not
  connection

- switch some counters from long to the more proper curl_off_t type

Closes #3627
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- no need to have them protocol specific

- no need to set pointers to them with the Curl_setup_transfer() call

- make Curl_setup_transfer() operate on a transfer pointer, not
  connection

- switch some counters from long to the more proper curl_off_t type

Closes #3627
</pre>
</div>
</content>
</entry>
<entry>
<title>ldap: fix LDAP URL parsing regressions</title>
<updated>2018-12-11T12:20:12+00:00</updated>
<author>
<name>Samuel Surtees</name>
<email>ssurtees@euclideon.com</email>
</author>
<published>2018-12-11T10:15:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=1b443a7c00c1e5d2d0567d440f309cba5d69096b'/>
<id>1b443a7c00c1e5d2d0567d440f309cba5d69096b</id>
<content type='text'>
- Match URL scheme with LDAP and LDAPS
- Retrieve attributes, scope and filter from URL query instead

Regression brought in 46e164069d1a5230 (7.62.0)

Closes #3362
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Match URL scheme with LDAP and LDAPS
- Retrieve attributes, scope and filter from URL query instead

Regression brought in 46e164069d1a5230 (7.62.0)

Closes #3362
</pre>
</div>
</content>
</entry>
<entry>
<title>ldap: show precise LDAP call in error message on Windows</title>
<updated>2018-10-09T15:05:35+00:00</updated>
<author>
<name>Viktor Szakats</name>
<email>commit@vszakats.net</email>
</author>
<published>2018-10-09T15:05:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=e13f0237774964abeb690c25b6d52ee5db77935c'/>
<id>e13f0237774964abeb690c25b6d52ee5db77935c</id>
<content type='text'>
Also add a unique but common text ('bind via') to make it
easy to grep this specific failure regardless of platform.

Ref: https://github.com/curl/curl/pull/878/files#diff-7a636f08047c4edb53a240f540b4ecf6R468
Closes https://github.com/curl/curl/pull/3118
Reviewed-by: Daniel Stenberg &lt;daniel@haxx.se&gt;
Reviewed-by: Marcel Raad &lt;Marcel.Raad@teamviewer.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also add a unique but common text ('bind via') to make it
easy to grep this specific failure regardless of platform.

Ref: https://github.com/curl/curl/pull/878/files#diff-7a636f08047c4edb53a240f540b4ecf6R468
Closes https://github.com/curl/curl/pull/3118
Reviewed-by: Daniel Stenberg &lt;daniel@haxx.se&gt;
Reviewed-by: Marcel Raad &lt;Marcel.Raad@teamviewer.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>url: use the URL API internally as well</title>
<updated>2018-09-22T09:58:10+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2018-09-14T21:33:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=46e164069d1a5230e4e64cbd2ff46c46cce056bb'/>
<id>46e164069d1a5230e4e64cbd2ff46c46cce056bb</id>
<content type='text'>
... to make it a truly unified URL parser.

Closes #3017
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... to make it a truly unified URL parser.

Closes #3017
</pre>
</div>
</content>
</entry>
<entry>
<title>boringssl + schannel: undef X509_NAME in lib/schannel.h</title>
<updated>2018-06-08T21:25:17+00:00</updated>
<author>
<name>Gisle Vanem</name>
<email>gisle.vanem@gmail.com</email>
</author>
<published>2018-06-08T13:10:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=274940d7438af7ef92ce3e11d75620db94675932'/>
<id>274940d7438af7ef92ce3e11d75620db94675932</id>
<content type='text'>
Fixes the build problem when both boringssl and schannel are enabled.

Fixes #2634
Closes #2643
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes the build problem when both boringssl and schannel are enabled.

Fixes #2634
Closes #2643
</pre>
</div>
</content>
</entry>
<entry>
<title>ldap: silence clang warning</title>
<updated>2017-10-15T15:59:43+00:00</updated>
<author>
<name>Viktor Szakats</name>
<email>vszakats@users.noreply.github.com</email>
</author>
<published>2017-10-15T15:59:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=748f5301c0a91ad8bab2b74097bc25e3d99317b9'/>
<id>748f5301c0a91ad8bab2b74097bc25e3d99317b9</id>
<content type='text'>
Use memset() to initialize a structure to avoid LLVM/Clang warning:
ldap.c:193:39: warning: missing field 'UserLength' initializer [-Wmissing-field-initializers]

Closes https://github.com/curl/curl/pull/1992
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use memset() to initialize a structure to avoid LLVM/Clang warning:
ldap.c:193:39: warning: missing field 'UserLength' initializer [-Wmissing-field-initializers]

Closes https://github.com/curl/curl/pull/1992
</pre>
</div>
</content>
</entry>
</feed>
