Björn Stenberg
b46cfbc068
TODO fixed: Detect when called from within callbacks
...
Closes #2302
2018-02-15 09:36:03 +01:00
Daniel Stenberg
43a50a2580
BINDINGS: fix curb link (and remove ruby-curl-multi)
...
Reported-by: Klaus Stein
2018-02-14 14:57:00 +01:00
Daniel Stenberg
40e22e5c0b
curl_gssapi: make sure this file too uses our *printf()
2018-02-13 22:55:29 +01:00
Daniel Stenberg
63f6b3b220
libcurl-security.3: separate file:// section
...
... just to make it more apparent. Even if it repeats
some pieces of information.
2018-02-13 14:04:04 +01:00
Daniel Stenberg
1e720400aa
libcurl-security.3: the http://192.168.0.1/my_router_config case
...
Mentioned-By: Rich Moore
2018-02-13 13:54:11 +01:00
Daniel Stenberg
03b7b2e8fc
libcurl-security.3: mention the URL standards problems too
2018-02-13 12:05:43 +01:00
Daniel Stenberg
3901842055
libcurl-security.3: split out from libcurl-tutorial.3
...
To make more accessible.
Merged in some new language from "URLs are dangerous things" as discussed on
the mailing list a few days ago:
Bug: https://curl.haxx.se/mail/lib-2018-02/0013.html
2018-02-13 12:02:09 +01:00
Daniel Stenberg
851851fa94
RELEASE-NOTES: synced with e551910f8
2018-02-13 09:00:35 +01:00
Patrick Monnerat
e551910f8a
tests: new tests for http raw mode
...
Test 319 checks proper raw mode data with non-chunked gzip
transfer-encoded server data.
Test 326 checks raw mode with chunked server data.
Bug: #2303
Closes #2308
2018-02-13 01:44:57 +01:00
Kamil Dudka
08029a7e73
tlsauthtype.d: works only if libcurl is built with TLS-SRP support
...
Bug: https://bugzilla.redhat.com/1542256
Closes #2306
2018-02-12 18:09:54 +01:00
Patrick Monnerat
62cf2d180e
smtp: fix processing of initial dot in data
...
RFC 5321 4.1.1.4 specifies the CRLF terminating the DATA command
should be taken into account when chasing the <CRLF>.<CRLF> end marker.
Thus a leading dot character in data is also subject to escaping.
Tests 911 and test server are adapted to this situation.
New tests 951 and 952 check proper handling of initial dot in data.
Closes #2304
2018-02-12 16:43:15 +01:00
Daniel Stenberg
3f6051f4ed
sha256: avoid redefine
2018-02-12 14:18:30 +01:00
Douglas Mencken
50c0033a6c
sha256: build with OpenSSL < 0.9.8 too
...
support for SHA-2 was introduced in OpenSSL 0.9.8
Closes #2305
2018-02-12 14:16:37 +01:00
Bruno Grasselli
b9e323334d
README: language fix
...
s/off/from
Closes #2300
2018-02-12 08:19:34 +01:00
Patrick Monnerat
155ea88184
http_chunks: don't write chunks twice with CURLOPT_HTTP_TRANSFER_DECODING on
...
Bug: #2303
Reported-By: Henry Roeland
2018-02-12 03:47:36 +01:00
Daniel Stenberg
23722c515f
get_posix_time: only check for overflows if they can happen!
2018-02-09 22:13:41 +01:00
Michael Kaufmann
1c680e35ab
schannel: fix "no previous prototype" compiler warning
2018-02-09 20:10:25 +01:00
Mohammad AlSaleh
f886cbfe9c
content_encoding: Add "none" alias to "identity"
...
Some servers return a "content-encoding" header with a non-standard
"none" value.
Add "none" as an alias to "identity" as a work-around, to avoid
unrecognised content encoding type errors.
Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
Closes https://github.com/curl/curl/pull/2298
2018-02-09 03:11:18 -05:00
Steve Holme
daf959f692
build-openssl.bat: Follow up to 648679ab8e
to suppress copy/move output
2018-02-08 21:54:09 +00:00
Steve Holme
648679ab8e
build-openssl.bat: Fixed incorrect move if destination build folder exists
2018-02-08 21:36:27 +00:00
Michael Kaufmann
a64b002e3a
schannel: fix compiler warnings
...
Closes #2296
2018-02-08 22:31:45 +01:00
Steve Holme
0fd6221f8c
curl_addrinfo.c: Allow Unix Domain Sockets to compile under Windows
...
Windows 10.0.17061 SDK introduces support for Unix Domain Sockets.
Added the necessary include file to curl_addrinfo.c.
Note: The SDK (which is considered beta) has to be installed, VS 2017
project file has to be re-targeted for Windows 10.0.17061 and #define
enabled in config-win32.h.
2018-02-07 21:33:57 +00:00
Patrick Monnerat
a0984eae14
fnmatch: optimize processing of consecutive *s and ?s pattern characters
...
Reported-By: Daniel Stenberg
Fixes #2291
Closes #2293
2018-02-07 15:01:51 +01:00
Steve Holme
ff07089585
build-openssl.bat/build-wolfssl.bat: Build platform is optional
...
Whilst the compiler parameter is mandatory, platform is optional as it
is automatically calculated by the :configure section.
This partially reverts commit 6d62d2c55d
.
2018-02-06 19:35:13 +00:00
Patrick Schlangen
dc85437736
openssl: Don't add verify locations when verifypeer==0
...
When peer verification is disabled, calling
SSL_CTX_load_verify_locations is not necessary. Only call it when
verification is enabled to save resources and increase performance.
Closes #2290
2018-02-06 10:48:03 +01:00
Steve Holme
05484d4831
build-wolfssl.bat: Extend VC15 support to include Enterprise and Professional
...
...and not just the Community Edition.
2018-02-05 21:23:51 +00:00
Steve Holme
be033641c2
build-openssl.bat: Extend VC15 support to include Enterprise and Professional
...
...and not just the Community Edition.
2018-02-05 21:18:35 +00:00
Michael Kaufmann
d25b050379
time-cond: fix reading the file modification time on Windows
...
On Windows, stat() may adjust the unix file time by a daylight saving time
offset. Avoid this by calling GetFileTime() instead.
Fixes #2164
Closes #2204
2018-02-05 22:02:10 +01:00
Daniel Stenberg
84ad1fd304
formdata: use the mime-content type function
...
Reduce code duplication by making Curl_mime_contenttype available and
used by the formdata function. This also makes the formdata function
recognize a set of more file extensions by default.
PR #2280 brought this to my attention.
Closes #2282
2018-02-05 13:50:30 +01:00
Daniel Stenberg
a19afaccfe
getdate: return -1 for out of range
...
...as that's how the function is documented to work.
Reported-by: Michael Kaufmann
Bug found in an autobuild with 32 bit time_t
Closes #2278
2018-02-02 09:40:54 +01:00
Ben Greear
1eb4f5ac9d
build: fix termios issue on android cross-compile
...
Bug: https://curl.haxx.se/mail/lib-2018-01/0122.html
Signed-off-by: Ben Greear <greearb@candelatech.com>
2018-02-01 08:07:45 +01:00
Daniel Stenberg
ddd31dc5dd
time_t-fixes: remove typecasts to 'long' for info.filetime
...
They're now wrong.
Reported-by: Michael Kaufmann
Closes #2277
2018-02-01 07:50:59 +01:00
Daniel Stenberg
9409d0c26c
curl_setup: move the precautionary define of SIZEOF_TIME_T
...
... up to before it may be used for the TIME_T_MAX/MIN logic.
Reported-by: Michael Kaufmann
2018-01-31 23:01:01 +01:00
Daniel Stenberg
fcb9b63ee5
parsedate: s/#if/#ifdef
...
Reported-by: Michael Kaufmann
Bug: 1c39128d97 (commitcomment-27246479)
2018-01-31 22:56:36 +01:00
Patrick Monnerat
da5f4b1d84
fnmatch: pattern syntax can no longer fail
...
Whenever an expected pattern syntax rule cannot be matched, the
character starting the rule loses its special meaning and the parsing
is resumed:
- backslash at the end of pattern string matches itself.
- Error in [:keyword:] results in set containing :\[dekorwy.
Unit test 1307 updated for this new situation.
Closes #2273
2018-01-31 01:17:35 +01:00
Patrick Monnerat
fcaa1826bd
fnmatch: accept an alphanum to be followed by a non-alphanum in char set
...
Also be more tolerant about set pattern syntax.
Update unit test 1307 accordingly.
Bug: https://curl.haxx.se/mail/lib-2018-01/0114.html
2018-01-31 01:17:35 +01:00
Patrick Monnerat
19abad095c
fnmatch: do not match the empty string with a character set
2018-01-31 01:17:35 +01:00
Jay Satiro
2b50e56343
build: fix windows build methods for curl_ctype.c
...
- Fix winbuild and the VS project generator to treat curl_ctype.{c,h} as
curlx files since they are required by both src and lib.
Follow-up to 4272a0b
which added curl_ctype.
2018-01-30 19:14:00 -05:00
Daniel Stenberg
34ecdffe90
progress-bar.d: update to match implementation
...
... since commit 993dd5651a
Reported-by: Martin Dreher
Bug: https://github.com/curl/curl/pull/2242#issuecomment-361059228
Closes #2271
2018-01-30 23:46:58 +01:00
Daniel Stenberg
0630bb21be
http2: set DEBUG_HTTP2 to enable more HTTP/2 logging
...
... instead of doing it unconditionally in debug builds. It cluttered up
the output a little too much.
2018-01-30 23:19:53 +01:00
Max Dymond
811d96e9e2
file: Check the return code from Curl_range and bail out on error
2018-01-30 17:23:35 +01:00
Max Dymond
3f8a727611
Curl_range: add check to ensure "from <= to"
2018-01-30 17:23:34 +01:00
Max Dymond
e04417d98f
Curl_range: commonize FTP and FILE range handling
...
Closes #2205
2018-01-30 17:23:26 +01:00
Daniel Stenberg
f02c34476d
RELEASE-NOTES: synced with 811beab9f
2018-01-30 10:18:37 +01:00
Daniel Stenberg
3a048fa0c6
curlver: next release will be 7.59.0
2018-01-30 10:18:36 +01:00
Michał Janiszewski
811beab9f2
curl/curl.h: fix comment typo for CURLOPT_DNS_LOCAL_IP6
...
Closes #2275
2018-01-30 08:34:11 +01:00
Daniel Stenberg
8f69a9f28a
time: support > year 2038 time stamps for system with 32bit long
...
... with the introduction of CURLOPT_TIMEVALUE_LARGE and
CURLINFO_FILETIME_T.
Fixes #2238
Closes #2264
2018-01-30 08:29:59 +01:00
Daniel Stenberg
9caa3e248d
curl_easy_reset: clear digest auth state
...
Bug: https://curl.haxx.se/mail/lib-2018-01/0074.html
Reported-by: Ruurd Beerstra
Fixes #2255
Closes #2272
2018-01-30 08:17:59 +01:00
Adam Marcionek
a406e86ecb
winbuild: make linker generate proper PDB
...
Link.exe requires /DEBUG to properly generate a full pdb file on release
builds.
Closes #2274
2018-01-30 08:12:18 +01:00
Daniel Stenberg
fecec1d8ae
curl: add --proxy-pinnedpubkey
...
To verify a proxy's public key. For when using HTTPS proxies.
Fixes #2192
Closes #2268
2018-01-30 08:00:31 +01:00