]>
granicus.if.org Git - curl/log
Jay Satiro [Thu, 1 Oct 2015 20:39:40 +0000 (16:39 -0400)]
getinfo: Fix return code for unknown CURLINFO options
- If a CURLINFO option is unknown return CURLE_UNKNOWN_OPTION.
Prior to this change CURLE_BAD_FUNCTION_ARGUMENT was returned on
unknown. That return value is contradicted by the CURLINFO option
documentation which specifies a return of CURLE_UNKNOWN_OPTION on
unknown.
rouzier [Sun, 4 Oct 2015 18:30:07 +0000 (14:30 -0400)]
hiperfifo: fix the pointer passed to WRITEDATA
Closes https://github.com/bagder/curl/pull/471
Maksim Stsepanenka [Fri, 2 Oct 2015 06:43:57 +0000 (02:43 -0400)]
tool_setopt: fix c_escape truncated octal
Closes https://github.com/bagder/curl/pull/469
Orange Tsai [Thu, 1 Oct 2015 15:17:58 +0000 (23:17 +0800)]
gopher: don't send NUL byte
Closes #466
Jay Satiro [Wed, 30 Sep 2015 02:08:57 +0000 (22:08 -0400)]
runtests: Fix pid check in checkdied
Because the 'not' operator has a very low precedence and as a result the
entire statement was erroneously negated and could never be true.
Thorsten Schöning [Tue, 29 Sep 2015 22:03:35 +0000 (00:03 +0200)]
win32: make recent Borland compilers use long long
Daniel Stenberg [Tue, 29 Sep 2015 08:57:42 +0000 (10:57 +0200)]
RELEASE-NOTES: synced with
69b89050d4
Michael Kalinin [Tue, 22 Sep 2015 06:49:54 +0000 (02:49 -0400)]
openssl: Fix algorithm init
- Change algorithm init to happen after OpenSSL config load.
Additional algorithms may be available due to the user's config so we
initialize the algorithms after the user's config is loaded.
Bug: https://github.com/bagder/curl/issues/447
Reported-by: Denis Feklushkin
Svyatoslav Mishyn [Mon, 28 Sep 2015 03:44:31 +0000 (23:44 -0400)]
docs: fix unescaped '\n' in man pages
Closes https://github.com/bagder/curl/pull/459
Daniel Stenberg [Sun, 27 Sep 2015 21:20:13 +0000 (23:20 +0200)]
http2: set TCP_NODELAY unconditionally
For a single-stream download from localhost, we managed to increase
transfer speed from 1.6MB/sec to around 400MB/sec, mostly because of
this single fix.
Daniel Stenberg [Sun, 27 Sep 2015 17:40:20 +0000 (19:40 +0200)]
http2: avoid superfluous Curl_expire() calls
... only call it when there is data arriving for another handle than the
one that is currently driving it.
Improves single-stream download performance quite a lot.
Thanks-to: Tatsuhiro Tsujikawa
Bug: http://curl.haxx.se/mail/lib-2015-09/0097.html
Daniel Stenberg [Sun, 27 Sep 2015 18:48:35 +0000 (20:48 +0200)]
readwrite_data: set a max number of loops
... as otherwise a really fast pipe can "lock" one transfer for some
protocols, like with HTTP/2.
Sergei Nikulov [Thu, 17 Sep 2015 13:34:47 +0000 (16:34 +0300)]
CI: Added AppVeyor-CI for curl
Closes #439
Daniel Stenberg [Sat, 26 Sep 2015 21:36:25 +0000 (23:36 +0200)]
FTP: fix uploading ASCII with unknown size
... don't try to increase the supposed file size on newlines if we don't
know what file size it is!
Patch-by: lzsiga
Tatsuhiro Tsujikawa [Sat, 26 Sep 2015 08:24:34 +0000 (17:24 +0900)]
build: fix failures with -Wcast-align and -Werror
Closes #457
Tatsuhiro Tsujikawa [Sat, 26 Sep 2015 08:23:35 +0000 (17:23 +0900)]
curl-confopts.m4: Add missing ')'
... for CURL_CHECK_OPTION_RT
Closes #456
Jay Satiro [Fri, 25 Sep 2015 06:37:42 +0000 (02:37 -0400)]
curl_easy_getinfo.3: Add brief description for each CURLINFO
Jakub Zakrzewski [Wed, 16 Sep 2015 15:33:23 +0000 (17:33 +0200)]
CMake: Ensure discovered include dirs are considered
...during header checks. Otherwise some following header tests
(incorrectly) fail.
Closes #436
Jakub Zakrzewski [Wed, 16 Sep 2015 15:27:13 +0000 (17:27 +0200)]
CMake: Put "winsock2.h" before "windows.h" during configure checks
"windows.h" includes "winsock.h" what causes many redefinition errors
if "winsock2.h" is included afterwards and can cause build to fail.
Daniel Stenberg [Wed, 23 Sep 2015 11:53:38 +0000 (13:53 +0200)]
tests: disable 1510 due to CI-problems on github
Mike Crowe [Wed, 23 Sep 2015 11:31:29 +0000 (13:31 +0200)]
gnutls: Report actual GnuTLS error message for certificate errors
If GnuTLS fails to read the certificate then include whatever reason it
provides in the failure message reported to the client.
Signed-off-by: Mike Crowe <mac@mcrowe.com>
Daniel Stenberg [Tue, 22 Sep 2015 20:21:58 +0000 (22:21 +0200)]
RELEASE-NOTES: synced with
6b56901b56e
Mike Crowe [Mon, 21 Sep 2015 09:34:55 +0000 (11:34 +0200)]
gnutls: Support CURLOPT_KEYPASSWD
The gnutls vtls back-end was previously ignoring any password set via
CURLOPT_KEYPASSWD. Presumably this was because
gnutls_certificate_set_x509_key_file did not support encrypted keys.
gnutls now has a gnutls_certificate_set_x509_key_file2 function that
does support encrypted keys. Let's determine at compile time whether the
available gnutls supports this new function. If it does then use it to
pass the password. If it does not then emit a helpful diagnostic if a
password is set. This is preferable to the previous behaviour of just
failing to read the certificate without giving a reason in that case.
Signed-off-by: Mike Crowe <mac@mcrowe.com>
Daniel Stenberg [Tue, 22 Sep 2015 15:21:37 +0000 (17:21 +0200)]
CURLINFO_TLS_SESSION: always return backend info
... even for those that don't support providing anything in the
'internals' struct member since it offers a convenient way for
applications to figure this out.
Daniel Hwang [Tue, 22 Sep 2015 04:06:42 +0000 (21:06 -0700)]
tool: remove redundant libcurl check
The easysrc generation is run only when --libcurl is initialized.
Ref: https://github.com/bagder/curl/issues/429
Closes #448
Richard van den Berg [Tue, 22 Sep 2015 11:45:41 +0000 (13:45 +0200)]
CURLOPT_PROXY.3: A proxy given as env variable gets no special treatment
Closes #449
Daniel Stenberg [Tue, 22 Sep 2015 08:53:55 +0000 (10:53 +0200)]
TODO: 5.7 More compressions
Like for example brotli, as being implemented in Firefox now.
Jay Satiro [Mon, 21 Sep 2015 06:21:38 +0000 (02:21 -0400)]
tool_operate: Don't call easysrc cleanup unless --libcurl
- Review of
4d95491 .
The author changed it so easysrc only initializes when --libcurl but did
not do the same for the call to easysrc cleanup.
Ref: https://github.com/bagder/curl/issues/429
Viktor Szakats [Sun, 20 Sep 2015 14:08:15 +0000 (16:08 +0200)]
CURLOPT_PINNEDPUBLICKEY.3: replace test.com with example.com
closes #443
Daniel Stenberg [Sun, 20 Sep 2015 11:34:16 +0000 (13:34 +0200)]
KNOWN_BUGS: 91 "curl_easy_perform hangs with imap and PolarSSL"
Closes #334
Daniel Stenberg [Sun, 20 Sep 2015 11:31:22 +0000 (13:31 +0200)]
KNOWN_BUGS: add link to #85
Daniel Stenberg [Sun, 20 Sep 2015 11:12:44 +0000 (13:12 +0200)]
tests: disable 1801 until fixed
It is unreliable and causes CI problems on github
Closes #380
Daniel Stenberg [Sun, 20 Sep 2015 11:00:19 +0000 (13:00 +0200)]
RELEASE-NOTES: synced with
4d95491636ee
Daniel Lee Hwang [Sun, 20 Sep 2015 06:16:23 +0000 (23:16 -0700)]
tool: generate easysrc only on --libcurl
Code should only be generated when --libcurl is used.
Bug: https://github.com/bagder/curl/issues/429
Reported-by: @greafhe, Jay Satiro
Closes #429
Closes #442
Jay Satiro [Sun, 20 Sep 2015 02:40:40 +0000 (22:40 -0400)]
vtls: Change designator name for server's pubkey hash
- Change the designator name we use to show the base64 encoded sha256
hash of the server's public key from 'pinnedpubkey' to
'public key hash'.
Though the server's public key hash is only shown when comparing pinned
public key hashes, the server's hash may not match one of the pinned.
Isaac Boukris [Wed, 16 Sep 2015 00:52:36 +0000 (03:52 +0300)]
NTLM: Reset auth-done when using a fresh connection
With NTLM a new connection will always require authentication.
Fixes #435
Daniel Hwang [Sat, 12 Sep 2015 21:35:12 +0000 (14:35 -0700)]
ssl: add server cert's "sha256//" hash to verbose
Add a "pinnedpubkey" section to the "Server Certificate" verbose
Bug: https://github.com/bagder/curl/issues/410
Reported-by: W. Mark Kubacki
Closes #430
Closes #410
Jakub Zakrzewski [Thu, 17 Sep 2015 16:36:07 +0000 (18:36 +0200)]
openldap: only part of LDAP query results received
Introduced with commit
65d141e6da5c6003a1592bbc87ee550b0ad75c2f
Closes #440
Alessandro Ghedini [Mon, 14 Sep 2015 10:26:12 +0000 (12:26 +0200)]
openssl: don't output certinfo data
Alessandro Ghedini [Sat, 12 Sep 2015 13:30:44 +0000 (15:30 +0200)]
openssl: refactor certificate parsing to use OpenSSL memory BIO
Fixes #427
Kamil Dudka [Fri, 18 Sep 2015 15:10:05 +0000 (17:10 +0200)]
nss: prevent NSS from incorrectly re-using a session
Without this workaround, NSS re-uses a session cache entry despite the
server name does not match. This causes SNI host name to differ from
the actual host name. Consequently, certain servers (e.g. github.com)
respond by 400 to such requests.
Bug: https://bugzilla.mozilla.org/
1202264
Kamil Dudka [Fri, 18 Sep 2015 15:07:22 +0000 (17:07 +0200)]
nss: check return values of NSS functions
Daniel Stenberg [Thu, 17 Sep 2015 06:50:51 +0000 (08:50 +0200)]
CURLOPT_PINNEDPUBLICKEY.3: mention error code
Daniel Stenberg [Thu, 17 Sep 2015 06:48:43 +0000 (08:48 +0200)]
openssl: build with < 0.9.8
... without sha256 support and no define saying so.
Reported-by: Rajkumar Mandal
Daniel Stenberg [Thu, 17 Sep 2015 06:48:15 +0000 (08:48 +0200)]
libcurl-errors.3: add two missing error codes
CURLE_SSL_PINNEDPUBKEYNOTMATCH and CURLE_SSL_INVALIDCERTSTATUS
Jay Satiro [Mon, 14 Sep 2015 07:16:04 +0000 (03:16 -0400)]
CURLOPT_PINNEDPUBLICKEY.3: Improve pubkey extraction example
- Show how a certificate can be obtained using OpenSSL.
Bug: https://github.com/bagder/curl/pull/430
Reported-by: Daniel Hwang
Daniel Stenberg [Sun, 13 Sep 2015 14:32:59 +0000 (16:32 +0200)]
http2: removed unused function
Daniel Stenberg [Sat, 12 Sep 2015 21:37:52 +0000 (23:37 +0200)]
CURLINFO_ACTIVESOCKET.3: mention it replaces *LASTSOCKET
Daniel Stenberg [Sat, 12 Sep 2015 21:22:33 +0000 (23:22 +0200)]
opts: add CURLINFO_* man pages to dist
Daniel Stenberg [Sat, 12 Sep 2015 21:13:08 +0000 (23:13 +0200)]
opts: 19 more CURLINFO_* options made into stand-alone man pages
Daniel Stenberg [Sat, 12 Sep 2015 10:54:58 +0000 (12:54 +0200)]
RELEASE-NOTES: synced with
fad9604613
Daniel Stenberg [Fri, 11 Sep 2015 16:49:28 +0000 (18:49 +0200)]
curl: customrequest_helper: deal with NULL custom method
Svyatoslav Mishyn [Fri, 11 Sep 2015 14:52:01 +0000 (17:52 +0300)]
CURLOPT_FNMATCH_FUNCTION.3: fix typo
s => is
Closes #428
Daniel Stenberg [Sat, 29 Aug 2015 21:56:28 +0000 (23:56 +0200)]
curl: point out unnecessary uses of -X in verbose mode
It uses 'Note:' as a prefix as opposed to the common 'Warning:' to take
down the tone a bit.
It adds a warning for using -XHEAD on other methods becasue that may
lead to a hanging connection.
Jay Satiro [Thu, 10 Sep 2015 06:17:33 +0000 (02:17 -0400)]
curl_sspi: fix possibly undefined CRYPT_E_REVOKED
Bug: https://github.com/bagder/curl/pull/411
Reported-by: Viktor Szakats
Jay Satiro [Wed, 9 Sep 2015 06:46:48 +0000 (02:46 -0400)]
buildconf.bat: fix syntax error
Benjamin Kircher [Tue, 8 Sep 2015 14:22:39 +0000 (16:22 +0200)]
winbuild: run buildconf.bat if necessary
Svyatoslav Mishyn [Wed, 9 Sep 2015 01:17:50 +0000 (21:17 -0400)]
docs: fix argument type for CURLINFO_SPEED_*, CURLINFO_SIZE_*
long => double
Sergei Nikulov [Thu, 3 Sep 2015 12:20:32 +0000 (15:20 +0300)]
cmake: IPv6 : disable Unix header check on Windows platform
Closes #409
Daniel Stenberg [Tue, 8 Sep 2015 11:42:48 +0000 (13:42 +0200)]
parse_proxy: reject illegal port numbers
If the port number in the proxy string ended weirdly or the number is
too large, skip it. Mostly as a means to bail out early if a "bare" IPv6
numerical address is used without enclosing brackets.
Also mention the bracket requirement for IPv6 numerical addresses to the
man page for CURLOPT_PROXY.
Closes #415
Reported-by: Marcel Raad
Daniel Stenberg [Tue, 8 Sep 2015 07:29:03 +0000 (09:29 +0200)]
FTP: do_more: add check for wait_data_conn in upload case
In some timing-dependnt cases when a 4xx response immediately followed
after a 150 when a STOR was issued, this function would wrongly return
'complete == true' while 'wait_data_conn' was still set.
Closes #405
Reported-by: Patricia Muscalu
Svyatoslav Mishyn [Sun, 6 Sep 2015 16:42:33 +0000 (19:42 +0300)]
CURLOPT_TLSAUTH_TYPE.3: update description
Closes #414
Closes #413
Svyatoslav Mishyn [Sat, 5 Sep 2015 08:45:25 +0000 (11:45 +0300)]
CURLOPT_PATH_AS_IS.3: fix typo
leavit => leaveit
closes #412
Svyatoslav Mishyn [Sat, 5 Sep 2015 08:34:01 +0000 (11:34 +0300)]
CURLINFO_SSL_VERIFYRESULT.3: add short description
Svyatoslav Mishyn [Sat, 5 Sep 2015 08:30:51 +0000 (11:30 +0300)]
CURLINFO_SSL_ENGINES.3: add short description
Svyatoslav Mishyn [Sat, 5 Sep 2015 08:23:59 +0000 (11:23 +0300)]
CURLINFO_CONTENT_LENGTH_UPLOAD.3: replace "receive" with "get" for consistency
Svyatoslav Mishyn [Sat, 5 Sep 2015 08:19:40 +0000 (11:19 +0300)]
CURLINFO_REDIRECT_TIME.3: remove redundant '!'
Kamil Dudka [Fri, 4 Sep 2015 14:10:44 +0000 (16:10 +0200)]
Revert "has: generate the curl/has.h header"
This reverts commit
a60bde79f9adeb135d5c642a07f0d783fbfbbc25 I have
pushed by mistake. Apologies for my incompetent use of the git repo!
Kamil Dudka [Fri, 4 Sep 2015 12:35:36 +0000 (14:35 +0200)]
nss: do not directly access SSL_ImplementedCiphers[]
It causes dynamic linking issues at run-time after an update of NSS.
Bug: https://lists.fedoraproject.org/pipermail/devel/2015-September/214117.html
Daniel Stenberg [Wed, 2 Sep 2015 22:04:10 +0000 (00:04 +0200)]
has: generate the curl/has.h header
changed macro name, moved and renamed script to become docs/libcurl/has.pl,
generate code that is checksrc compliant
Daniel Stenberg [Thu, 3 Sep 2015 21:35:41 +0000 (23:35 +0200)]
gitignore: ignore more generated VC Makefiles
Daniel Stenberg [Thu, 3 Sep 2015 21:34:53 +0000 (23:34 +0200)]
projects/Windows/.gitignore: ignore generated files for release
Daniel Stenberg [Thu, 3 Sep 2015 20:23:50 +0000 (22:23 +0200)]
http2: don't pass on Connection: headers
RFC 7540 section 8.1.2.2 states: "An endpoint MUST NOT generate an
HTTP/2 message containing connection-specific header fields; any message
containing connection-specific header fields MUST be treated as
malformed"
Closes #401
Daniel Stenberg [Thu, 3 Sep 2015 17:52:23 +0000 (19:52 +0200)]
curl.1: update RFC references
Daniel Stenberg [Thu, 3 Sep 2015 15:33:16 +0000 (17:33 +0200)]
CURLOPT_POSTREDIR.3: update RFC number and section
Daniel Stenberg [Thu, 3 Sep 2015 15:27:40 +0000 (17:27 +0200)]
CURLOPT_FOLLOWLOCATION.3: mention methods for redirects
and some general cleaning up
Marcel Raad [Thu, 3 Sep 2015 09:32:39 +0000 (11:32 +0200)]
inet_pton.c: Fix MSVC run-time check failure (2)
This fixes another run-time check failure because of a narrowing cast on
Visual C++.
Closes #408
Jay Satiro [Thu, 3 Sep 2015 06:35:11 +0000 (02:35 -0400)]
docs: Warn about any-domain cookies and multiple transfers
- Warn that cookies without a domain are sent to any domain:
CURLOPT_COOKIELIST, CURLOPT_COOKIEFILE, --cookie
- Note that imported Set-Cookie cookies without a domain are no longer
exported:
CURLINFO_COOKIELIST, CURLOPT_COOKIEJAR, --cookie-jar
Steve Holme [Wed, 2 Sep 2015 05:52:12 +0000 (06:52 +0100)]
tool_sdecls.h: Fixed compilation warning from commit
4a889441d3
tool_sdecls.h:139 warning: comma at end of enumerator list
Daniel Stenberg [Tue, 1 Sep 2015 22:00:53 +0000 (00:00 +0200)]
opts: 8 more CURLINFO* options as stand-alone man pages
Daniel Stenberg [Mon, 31 Aug 2015 21:17:53 +0000 (23:17 +0200)]
RELEASE-NOTES: synced with
c764cb4add1a8
Daniel Stenberg [Mon, 31 Aug 2015 14:03:53 +0000 (16:03 +0200)]
man-pages: more SEE ALSO links
Daniel Stenberg [Mon, 31 Aug 2015 13:27:58 +0000 (15:27 +0200)]
opts: more CURLINFO_* options as stand-alone man pages
Steve Holme [Mon, 31 Aug 2015 10:49:31 +0000 (11:49 +0100)]
sasl: Only define Curl_sasl_digest_get_pair() when CRYPTO_AUTH enabled
Introduced in commit
59f3f92ba6 this function is only implemented when
CURL_DISABLE_CRYPTO_AUTH is not defined. As such we shouldn't define
the function in the header file either.
Steve Holme [Mon, 31 Aug 2015 10:45:47 +0000 (11:45 +0100)]
sasl: Updated SPN variables and comments for consistency
In places the "host name" and "realm" variable was referred to as
"instance" whilst in others it was referred to as "host".
Daniel Stenberg [Sun, 30 Aug 2015 21:20:31 +0000 (23:20 +0200)]
configure: check for HMAC_Update in openssl
Turns out HMAC_Init is now deprecated in openssl master (and I spelled
HMAC_Init_ex wrong in previous commit)
Steve Holme [Sun, 30 Aug 2015 19:50:52 +0000 (20:50 +0100)]
win32: Use DES_set_odd_parity() from OpenSSL/BoringSSL by default
Set HAVE_DES_SET_ODD_PARITY when using OpenSSL/BoringSSL as native
Windows builds don't use the autoconf tools.
Steve Holme [Sun, 30 Aug 2015 19:45:30 +0000 (20:45 +0100)]
des: Fixed compilation warning from commit
613e5022fe
curl_ntlm_core.c:150: warning 'Curl_des_set_odd_parity' undefined;
assuming extern returning int
Steve Holme [Sun, 30 Aug 2015 14:09:43 +0000 (15:09 +0100)]
buildconf.bat: Fixed double blank line in 'curl manual' warning output
Steve Holme [Sun, 30 Aug 2015 10:51:55 +0000 (11:51 +0100)]
makefiles: Added our standard copyright header
But kept the original author, when they were specified in a comment, as
the initial copyright holder.
Jay Satiro [Sun, 30 Aug 2015 03:23:58 +0000 (23:23 -0400)]
CURLOPT_FILETIME.3: CURLINFO_FILETIME has its own manpage now
Daniel Stenberg [Sat, 29 Aug 2015 11:55:00 +0000 (13:55 +0200)]
CURLINFO_RESPONSE_CODE.3: added short description
Daniel Stenberg [Fri, 28 Aug 2015 20:58:00 +0000 (22:58 +0200)]
opts: 7 initial CURLINFO_* options as stand-alone man pages
Nikolai Kondrashov [Fri, 28 Aug 2015 16:53:41 +0000 (19:53 +0300)]
libcurl.m4: Put braces around empty if body
Put braces around empty "if" body in libcurl.m4 check to avoid warning:
suggest braces around empty body in an 'if' statement
and make it work with -Werror builds.
Closes #402
Svyatoslav Mishyn [Tue, 25 Aug 2015 05:31:02 +0000 (08:31 +0300)]
curl_easy_escape.3: escape '\n'
Closes #398
Svyatoslav Mishyn [Tue, 25 Aug 2015 03:49:01 +0000 (06:49 +0300)]
curl_easy_{escape,setopt}.3: fix example
remove redundant '}'
Sergei Nikulov [Tue, 25 Aug 2015 11:56:55 +0000 (14:56 +0300)]
cmake: added Windows SSL support
Closes #399
Daniel Stenberg [Tue, 25 Aug 2015 07:20:56 +0000 (09:20 +0200)]
curl: point out the conflicting HTTP methods if used
It isn't always clear to the user which options that cause the HTTP
methods to conflict so by spelling them out it should hopefully be
easier to understand why curl complains.
Daniel Stenberg [Mon, 24 Aug 2015 22:04:03 +0000 (00:04 +0200)]
curl: clarify that users can only specify one _METHOD_
Svyatoslav Mishyn [Sun, 23 Aug 2015 11:43:04 +0000 (14:43 +0300)]
curl_easy_{escape,unescape}.3: "char *" vs. "const char *"
Closes #395