cURL cURL > Development > Recent Source Code Activity

Recent Activity in the repo

The 100 latest commits in curl's git repository

RELEASE-NOTES: synced with e608324f9f9Daniel Stenberg
M RELEASE-NOTES
polarssl: implement CURLOPT_SSLVERSIONAndre Heinecke

Forwards the setting as minimum ssl version (if set) to polarssl. If the server does not support the requested version the SSL Handshake will fail.

Bug: http://curl.haxx.se/bug/view.cgi?id=1419

M lib/vtls/polarssl.c
Merge pull request #115 from ldx/darwinsslfixprnickzman

darwinssl: now accepts cacert bundles in PEM format in addition to single certs

Check CA certificate in curl_darwinssl.c.Vilmos Nebehaj

SecCertificateCreateWithData() returns a non-NULL SecCertificateRef even if the buffer holds an invalid or corrupt certificate. Call SecCertificateCopyPublicKey() to make sure cacert is a valid certificate.

M lib/vtls/curl_darwinssl.c
low-speed-limit: avoid timeout floodDaniel Stenberg

Introducing Curl_expire_latest(). To be used when we the code flow only wants to get called at a later time that is "no later than X" so that something can be checked (and another timeout be added).

The low-speed logic for example could easily be made to set very many expire timeouts if it would be called faster or sooner than what it had set its own timer and this goes for a few other timers too that aren't explictiy checked for timer expiration in the code.

If there's no condition the code that says if(time-passed >= TIME), then Curl_expire_latest() is preferred to Curl_expire().

If there exists such a condition, it is on the other hand important that Curl_expire() is used and not the other.

Bug: http://curl.haxx.se/mail/lib-2014-06/0235.html Reported-by: Florian Weimer

M lib/asyn-ares.c
M lib/asyn-thread.c
M lib/connect.c
M lib/multi.c
M lib/multiif.h
M lib/speedcheck.c
resolve: cache lookup for async resolversMichael Wallner

While waiting for a host resolve, check if the host cache may have gotten the name already (by someone else), for when the same name is resolved by several simultanoues requests.

The resolver thread occasionally gets stuck in getaddrinfo() when the DNS or anything else is crappy or slow, so when a host is found in the DNS cache, leave the thread alone and let itself cleanup the mess.

M lib/asyn-thread.c
M lib/hostip.c
M lib/hostip.h
M lib/multi.c
Fix CA certificate bundle handling in darwinssl.Vilmos Nebehaj

If the --cacert option is used with a CA certificate bundle that contains multiple CA certificates, iterate through it, adding each certificate as a trusted root CA.

M lib/vtls/curl_darwinssl.c
getinfo-times: Typo fixedAskar Safin
M docs/libcurl/getinfo-times
libcurl.3: Typo fixedAskar Safin
M docs/libcurl/libcurl.3
curl_formadd.3: setting CURLFORM_CONTENTSLENGTH 0 zero means strlenDaniel Stenberg
M docs/libcurl/curl_formadd.3
curl.1: add an example for -HDaniel Stenberg
M docs/curl.1
FAQ: mention -w in the 4.20 answer as wellDaniel Stenberg
M docs/FAQ
FAQ: 4.20 curl doesn't return error for HTTP non-200 responsesDaniel Stenberg
M docs/FAQ
CURLOPT_NOBODY.3: clarify this option is for downloadsDaniel Stenberg

When enabling CURLOPT_NOBODY, libcurl effectively switches off upload mode and will do a download (without a body). This is now better explained in this man page.

Bug: http://curl.haxx.se/mail/lib-2014-08/0236.html Reported-by: John Coffey

M docs/libcurl/opts/CURLOPT_NOBODY.3
INTERNALS: nghttp2 must be 0.6.0 or laterDaniel Stenberg
M docs/INTERNALS
Compile with latest nghttp2Tatsuhiro Tsujikawa
M configure.ac
M lib/http2.c
THANKS: removed a few more duplicatesDan Fandrich
M docs/THANKS
RELEASE-NOTES: synced with 007242257683aDaniel Stenberg

... and bumped the contributor amount after recount

M RELEASE-NOTES
THANKS: added 52 missing contributorsDaniel Stenberg

I re-ran contributors.sh on all changes since 7.10 and I found these contributors who are mentioned in the commits but never were added to THANKS before!

I also removed a couple of duplicates (mostly due to different spellings).

M docs/THANKS
contributors: grep and sort case insensitivelyDaniel Stenberg
M contributors.sh
configure.ac: Add support for recent GSS-API implementations for HP-UXMichael Osipov

By default, configure script assumes that libcurl will use the HP-supplied GSS-API implementation which does not have krb5-config. If a dev needs a more recent version which has that config script, the change will allow to pass an appropriate GSSAPI_ROOT.

M configure.ac
CONNECT: close proxy connections that fail to CONNECTDaniel Stenberg

This is usually due to failed auth. There's no point in us keeping such a connection alive since it shouldn't be re-used anyway.

Bug: http://curl.haxx.se/bug/view.cgi?id=1381 Reported-by: Marcel Raad

M lib/http_proxy.c
RELEASE-NOTES: added two missing HTTP/2 bug fixesDaniel Stenberg

And renamed all http2 references to HTTP/2 in this file

M RELEASE-NOTES
RELEASE-NOTES: synced with f646e9075f47Daniel Stenberg
M RELEASE-NOTES
Cmake: Possibility to use OpenLDAP, OpenSSL, LibSSH2 on windowsJakub Zakrzewski

At this point I can build libcurl on windows. It provides at least the same list of protocols as for linux build and works with our software.

M CMake/OtherTests.cmake
M CMakeLists.txt
M lib/curl_config.h.cmake
Cmake: Removed repeated content from ending blocksJakub Zakrzewski

They are unnecesary in modern CMake and removing them improves readability.

M CMake/CurlCheckCSourceCompiles.cmake
Cmake: Removed some useless empty SET statements.Jakub Zakrzewski

Undefined variables resolve to empty strings and we do not ever test if the variable is defined thus those SETs are superfluous.

M CMake/CurlCheckCSourceCompiles.cmake
Cmake: Removed useless comments from CMakeLists.txtJakub Zakrzewski

They look like some relics after changes.

M CMakeLists.txt
Cmake: Don't check for all headers each timeJakub Zakrzewski

One header at a time is the right way. Apart from that the output on windows goes from: ... -- Looking for include files I:/src/libssh2-1.4.3/include/libssh2.h, ws2tcpip.h -- Looking for include files I:/src/libssh2-1.4.3/include/libssh2.h, ws2tcpip.h - found -- Looking for 3 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., wins ock2.h -- Looking for 3 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., wins ock2.h - found -- Looking for 4 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., stdi o.h -- Looking for 4 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., stdi o.h - found -- Looking for 5 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., wind ows.h -- Looking for 5 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., wind ows.h - found -- Looking for 6 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., wins ock.h -- Looking for 6 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., wins ock.h - found -- Looking for 7 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., sys/ filio.h -- Looking for 7 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., sys/ filio.h - not found -- Looking for 7 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., sys/ ioctl.h -- Looking for 7 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., sys/ ioctl.h - not found -- Looking for 7 include files I:/src/libssh2-1.4.3/include/libssh2.h, ..., sys/ resource.h ...

To much nicer: ... -- Looking for ws2tcpip.h -- Looking for ws2tcpip.h - found -- Looking for winsock2.h -- Looking for winsock2.h - found -- Looking for stdio.h -- Looking for stdio.h - found -- Looking for windows.h -- Looking for windows.h - found -- Looking for winsock.h -- Looking for winsock.h - found -- Looking for sys/filio.h -- Looking for sys/filio.h - not found -- Looking for sys/ioctl.h -- Looking for sys/ioctl.h - not found -- Looking for sys/resource.h

M CMake/Macros.cmake
Cmake: Append OpenSSL include directory to search pathJakub Zakrzewski

At this point I can build libcurl with OpenSSL, OpenLDAP and LibSSH2. Supported protocols are at least: HTTP, HTTPS, FTP, SFTP, TFTP, LDAP, LDAPS, POP3, SMTP (those are the ones we have regression tests for in our product's testsuite)

M CMakeLists.txt
Cmake: Search for liblber, LDAP SSL headers, swith for using OpenLDAP code.Jakub Zakrzewski
M CMakeLists.txt
Cmake: LibSSH2 detection and use.Jakub Zakrzewski
A CMake/FindLibSSH2.cmake
M CMakeLists.txt
M lib/curl_config.h.cmake
Cmake: Moved macros out of the main CMakeLists.txtJakub Zakrzewski
A CMake/Macros.cmake
M CMakeLists.txt
Cmake: Added missing protocol-disable switchesJakub Zakrzewski

They already have their defines in config.h. This makes it possible to disable the protocols from command line during configure step.

M CMakeLists.txt
Cmake: Made boolean defines be defined to "1" instead of "ON"Jakub Zakrzewski

It's by convention, for compatibility and because the comments say so. Just mabe someone have written a test like "#if HAVE_XX==1"

M lib/curl_config.h.cmake
Cmake: Require at least CMake 2.8.Jakub Zakrzewski

CMake 2.6 is already a bit old. Many bugs have been fixed since its release. We use 2.8 in our company and we have no intention of polluting our environment with old software, so 2.6 would not be tested. This shouldn't be a problem since all one need to build CMake from source is C and C++ compiler.

D CMake/FindOpenSSL.cmake
D CMake/FindZLIB.cmake
M CMakeLists.txt
disconnect: don't touch easy-related state on disconnectsDaniel Stenberg

This was done to make sure NTLM state that is bound to a connection doesn't survive and gets used for the subsequent request - but disconnects can also be done to for example make room in the connection cache and thus that connection is not strictly related to the easy handle's current operation.

The http authentication state is still kept in the easy handle since all http auth _except_ NTLM is connection independent and thus survive over multiple connections.

Bug: http://curl.haxx.se/mail/lib-2014-08/0148.html Reported-by: Paras S

M lib/url.c
curl.1: clarify --limit-rate's effect on both directionsDaniel Stenberg

Bug: http://curl.haxx.se/bug/view.cgi?id=1414 Reported-by: teo8976

M docs/curl.1
curl.1: mention the --post30x options within the --location descDaniel Stenberg
M docs/curl.1
sasl: Fixed a memory leak on OOMDan Fandrich
M lib/curl_sasl.c
NTLM: ignore CURLOPT_FORBID_REUSE during NTLM HTTP authFrank Meier

Problem: if CURLOPT_FORBID_REUSE is set, requests using NTLM failed since NTLM requires multiple requests that re-use the same connection for the authentication to work

Solution: Ignore the forbid reuse flag in case the NTLM authentication handshake is in progress, according to the NTLM state flag.

Fixed known bug #77.

M docs/KNOWN_BUGS
M lib/url.c
openssl.c: Fixed longer than 79 columnsSteve Holme
M lib/vtls/openssl.c
openssl.c: Fixed compilation warningSteve Holme

warning: declaration of 'minor' shadows a global declaration

M lib/vtls/openssl.c
win32: Fixed WinSock 2 #ifHaris Okanovic

A conditionally compiled block in connect.c references WinSock 2 symbols, but used `#ifdef HAVE_WINSOCK_H` instead of `#ifdef HAVE_WINSOCK2_H`.

Bug: http://curl.haxx.se/mail/lib-2014-08/0155.html

M lib/connect.c
Curl_disconnect: don't free the URLDaniel Stenberg

The URL is not a property of the connection so it should not be freed in the connection disconnect but in the Curl_close() that frees the easy handle.

Bug: http://curl.haxx.se/mail/lib-2014-08/0148.html Reported-by: Paras S

M lib/url.c
help output: minor whitespace editsDaniel Stenberg

Should've been amended in the previous commit but wasn't due to a mistake.

M src/tool_help.c
help output: use ≥2 spaces between option and descriptionZearin

... and some other cleanups

M src/tool_help.c
FAQ: some actually sometimes get paid...Daniel Stenberg
M docs/FAQ
sasl_sspi: Fixed a memory leak with the GSSAPI base-64 decoded challengeSteve Holme
M lib/curl_sasl_sspi.c
sasl_sspi: Renamed GSSAPI mutual authentication parameterSteve Holme

...From "mutual" to "mutual_auth" which better describes what it is.

M lib/curl_sasl_sspi.c
sasl_sspi: Corrected some of the GSSAPI security message error codesSteve Holme

Corrected a number of the error codes that can be returned from the Curl_sasl_create_gssapi_security_message() function when things go wrong.

It makes more sense to return CURLE_BAD_CONTENT_ENCODING when the inbound security challenge can't be decoded correctly or doesn't contain the KERB_WRAP_NO_ENCRYPT flag and CURLE_OUT_OF_MEMORY when EncryptMessage() fails. Unfortunately the previous error code of CURLE_RECV_ERROR was a copy and paste mistakes on my part and should have been correct in commit 4b491c675f :(

M lib/curl_sasl_sspi.c
docs: Escaped single backslashSteve Holme
M docs/curl.1
M docs/libcurl/opts/CURLOPT_USERNAME.3
M docs/libcurl/opts/CURLOPT_USERPWD.3
TODO: Updated following GSSAPI (Kerberos V5) additionsSteve Holme

Updated "FTP 4.6 GSSAPI via Windows SSPI" and "SASL 14.1 Other authentication mechanisms" following recent additions.

Added SASL 14.2 GSSAPI via GSS-API libraries.

M docs/TODO
CURLOPT_USERNAME.3: Added Kerberos V5 and NTLM domain informationSteve Holme

This repeats what has already been documented in both the curl manpage and CURLOPT_USERPWD documentation but is provided here for completeness as someone may not especially read the latter when using libcurl.

M docs/libcurl/opts/CURLOPT_USERNAME.3
CURLOPT_USERPWD.3: Updated following Kerberos V5 SSPI changesSteve Holme

Added information about Kerberos V5 requiring the domain part in the user name.

Mentioned that the user name can be specified in UPN format, and not just in Down-Level Logon Name format, following the information added in commit 7679cb3fa8 reworking the exisitng information in the process.

M docs/libcurl/opts/CURLOPT_USERPWD.3
docs: Added Kerberos V5 and NTLM domain information to --userSteve Holme
M docs/curl.1
docs: Added Kerberos V5 to the --user SSPI current credentials usageSteve Holme
M docs/curl.1
sasl_sspi: Tell the server we don't support a GSSAPI receive bufferSteve Holme
M lib/curl_sasl_sspi.c
smtp: Added support for GSSAPI (Kerberos V5) authentication via Windows SSPISteve Holme
M lib/smtp.c
pop3: Added support for GSSAPI (Kerberos V5) authentication via Windows SSPISteve Holme
M lib/pop3.c
imap: Added support for GSSAPI (Kerberos V5) authentication via Windows SSPISteve Holme
M lib/imap.c
email: Added mutual authentication flagSteve Holme
M lib/imap.h
M lib/pop3.h
M lib/smtp.h
RELEASE-NOTES: synced with 0187c9e11d079Daniel Stenberg
M RELEASE-NOTES
http: fix the Content-Range: parserDaniel Stenberg

... to handle "*/[total]". Also, removed the strange hack that made CURLOPT_FAILONERROR on a 416 response after a *RESUME_FROM return CURLE_OK.

Reported-by: Dimitrios Siganos Bug: http://curl.haxx.se/mail/lib-2014-06/0221.html

M lib/http.c
M tests/data/test194
email: Introduced the GSSAPI statesSteve Holme
M lib/imap.c
M lib/imap.h
M lib/pop3.c
M lib/pop3.h
M lib/smtp.c
M lib/smtp.h
curl_sasl_sspi.c: Fixed more compilation warnings from commit 4b491c675fSteve Holme

warning: unused variable 'resp'

warning: no previous prototype for 'Curl_sasl_gssapi_cleanup'

M lib/curl_sasl_sspi.c
SHA-1: 61c93383b7f6cf79d12ff99e9dced1d1cc2a7064Steve Holme

* curl_sasl_sspi.c: Fixed compilation warning from commit 4b491c675f

warning: declaration of 'result' shadows a previous local

M lib/curl_sasl_sspi.c
curl_sasl.h: Fixed compilation error from commit 4b491c675fSteve Holme

warning: 'struct kerberos5data' declared inside parameter list

Due to missing forward declaration.

M lib/curl_sasl.h
urldata.h: Fixed compilation warnings from commit 3ec253532eSteve Holme

warning: extra tokens at end of #endif directive

M lib/urldata.h
sasl_sspi: Added GSSAPI message functionsSteve Holme
M lib/curl_sasl.c
M lib/curl_sasl.h
M lib/curl_sasl_sspi.c
urldata: Introduced a GSSAPI (Kerberos V5) data structureSteve Holme

Added a kerberos5data structure which is similar in nature to the ntlmdata and negotiatedata structures.

M lib/urldata.h
sspi: Moved KERB_WRAP_NO_ENCRYPT from socks_sspi moduleSteve Holme

In preparation for the upcoming SSPI implementation of GSSAPI authentication, moved the definition of KERB_WRAP_NO_ENCRYPT from socks_sspi.c to curl_sspi.h allowing it to be shared amongst other SSPI based code.

M lib/curl_sspi.h
M lib/socks_sspi.c
mk-ca-bundle.pl: add missing $Daniel Stenberg
M lib/mk-ca-bundle.pl
mk-ca-bundle.pl: switched to using hg.mozilla.orgDaniel Stenberg

... as mxr.mozilla.org is due to be retired.

The new host doesn't support If-Modified-Since nor ETags, meaning that the script will now defer to download and do a post-transfer checksum check to see if a new output is to be generated. The new output format will hold the SHA1 checksum of the source file for that purpose.

We call this version 1.22

Reported-by: Ed Morley Bug: http://curl.haxx.se/bug/view.cgi?id=1409

M lib/mk-ca-bundle.pl
openssl: fix version report for the 0.9.8 branchJose Alf

Fixed libcurl to correctly output the newer versions of OpenSSL 0.9.8, starting from openssl-0.9.8za.

M lib/vtls/openssl.c
create_conn: prune dead connectionsFrank Meier

Bringing back the old functionality that was mistakenly removed when the connection cache was remade. When creating a new connection, all the existing ones are checked and those that are known to be dead get disconnected for real and removed from the connection cache. It helps the cache from holding on to very many stale connections and aids in keeping down the number of system sockets in wait states.

Help-by: Jonatan Vela <jonatan.vela@ergon.ch>

Bug: http://curl.haxx.se/mail/lib-2014-06/0189.html

M lib/conncache.c
M lib/conncache.h
M lib/url.c
docs/SSLCERTS: update the section about NSS databaseKamil Dudka

Bug: http://curl.haxx.se/mail/lib-2014-07/0335.html Reported-by: David Shaw

M docs/SSLCERTS
Curl_poll + Curl_wait_ms: fix timeout return valuePeter Wang

Curl_poll and Curl_wait_ms require the fix applied to Curl_socket_check in commits b61e8b8 and c771968:

When poll or select are interrupted and coincides with the timeout elapsing, the functions return -1 indicating an error instead of 0 for the timeout.

M lib/select.c
config-tpf.h: Fixed up line lengths > 79 charactersSteve Holme
M lib/config-tpf.h
config-symbian.h: Fixed up line lengths > 79 charactersSteve Holme
M lib/config-symbian.h
tool_hugehelp.c.cvs: Added copyrightSteve Holme

Added copyright due to warning from checksrc.pl.

M src/tool_hugehelp.c.cvs
RELEASE-NOTES: Synced with cd6ecf6a89Steve Holme
M RELEASE-NOTES
sasl_sspi: Fixed hard coded buffer for response generationSteve Holme

Given the SSPI package info query indicates a token size of 4096 bytes, updated to use a dynamic buffer for the response message generation rather than a fixed buffer of 1024 bytes.

M lib/curl_sasl_sspi.c
sasl_sspi: Fixed missing free of challenge buffer on SPN failureSteve Holme
M lib/curl_sasl_sspi.c
http_negotiate_sspi: Tidy up to remove the get_gss_name() functionSteve Holme

Due to the reduction of code in commit 3b924b29 of get_gss_name() the function isn't necessary anymore.

M lib/http_negotiate_sspi.c
http_negotiate_sspi: Use a dynamic buffer for SPN generationSteve Holme

Updated to use a dynamic buffer for the SPN generation via the recently introduced Curl_sasl_build_spn() function rather than a fixed buffer of 1024 characters, which should have been more than enough, but by using the new function removes the need for another variable sname to do the wide character conversion in Unicode builds.

M lib/http_negotiate_sspi.c
M lib/urldata.h
sasl: Tidy up to rename SPN variable from URISteve Holme
M lib/curl_sasl.c
sasl: Use a dynamic buffer for SPN generationSteve Holme

Updated Curl_sasl_create_digest_md5_message() to use a dynamic buffer for the SPN generation via the recently introduced Curl_sasl_build_spn() function rather than a fixed buffer of 128 characters.

M lib/curl_sasl.c
sasl_sspi: Fixed SPN not being converted to wchar under Unicode buildsSteve Holme

Curl_sasl_create_digest_md5_message() would simply cast the SPN variable to a TCHAR when calling InitializeSecurityContext(). This meant that, under Unicode builds, it would not be valid wide character string.

Updated to use the recently introduced Curl_sasl_build_spn() function which performs the correct conversion for us.

M lib/curl_sasl_sspi.c
sasl: Introduced Curl_sasl_build_spn() for building a SPNSteve Holme

Various parts of the libcurl source code build a SPN for inclusion in authentication data. This information is either used by our own native generation routines or passed to authentication functions in third-party libraries such as SSPI. However, some of these instances use fixed buffers rather than dynamically allocated ones and not all of those that should, convert to wide character strings in Unicode builds.

Implemented a common function that generates a SPN and performs the wide character conversion where necessary.

M lib/curl_sasl.c
M lib/curl_sasl.h
M lib/curl_sasl_sspi.c
sasl_sspi: Fixed memory leak with not releasing Package Info structSteve Holme

Curl_sasl_create_digest_md5_message() wouldn't free the Package Info structure after QuerySecurityPackageInfo() had allocated it.

M lib/curl_sasl_sspi.c
docs: Update SPNEGO and GSS-API related doc sectionsMichael Osipov

Reflect recent changes in SPNEGO and GSS-API code in the docs. Update them with appropriate namings and remove visible spots for GSS-Negotiate.

M docs/FAQ
M docs/FEATURES
M docs/KNOWN_BUGS
M docs/MANUAL
M docs/curl.1
M docs/libcurl/curl_version_info.3
M docs/libcurl/libcurl-tutorial.3
M docs/libcurl/opts/CURLOPT_HTTPAUTH.3
M docs/libcurl/symbols-in-versions
sspi: Minor code tidy up to standardise coding styleSteve Holme

Following the recent changes and in attempt to align the SSPI based authentication code performed the following:

* Use NULL and SECBUFFVERSION rather than hard coded constants. * Avoid comparison of zero in if statements. * Standardised the buf and desc setup code.

M lib/curl_ntlm_msgs.c
M lib/http_negotiate_sspi.c
schannel: Fixed compilation warning in vtls.cSteve Holme

vtls.c:688:43: warning: unused parameter 'data'

M lib/vtls/curl_schannel.h
tool_getparam.c: Fixed compilation warningSteve Holme

warning: `orig_opt' might be used uninitialized in this function

M src/tool_getparam.c
RELEASE-NOTES: Synced with 159c3aafd8Steve Holme
M RELEASE-NOTES
curl_ntlm_msgs: make < 80 columns wideDaniel Stenberg
M lib/curl_ntlm_msgs.c
ntlm: Fixed hard coded buffer for SSPI based auth packet generationSteve Holme

Given the SSPI package info query indicates a token size of 2888 bytes, and as with the Winbind code and commit 9008f3d56, use a dynamic buffer for the Type-1 and Type-3 message generation rather than a fixed buffer of 1024 bytes.

M lib/curl_ntlm_msgs.c
M lib/urldata.h
ntlm: Added support for SSPI package info querySteve Holme

Just as with the SSPI implementations of Digest and Negotiate added a package info query so that libcurl can a) return a more appropriate error code when the NTLM package is not supported and b) it can be of use later to allocate a dynamic buffer for the Type-1 and Type-3 output tokens rather than use a fixed buffer of 1024 bytes.

M lib/curl_ntlm_msgs.c
http2: added some more logging for debugging stream problemsDaniel Stenberg
M lib/http2.c