]> granicus.if.org Git - curl/log
curl
7 years agoconversions: fix several compiler warnings
Daniel Stenberg [Sun, 10 Sep 2017 22:31:12 +0000 (00:31 +0200)]
conversions: fix several compiler warnings

7 years agoserver/getpart: provide dummy function to build conversion enabled
Daniel Stenberg [Fri, 8 Sep 2017 07:33:22 +0000 (09:33 +0200)]
server/getpart: provide dummy function to build conversion enabled

7 years agonon-ascii: use iconv() with 'char **' argument
Daniel Stenberg [Fri, 8 Sep 2017 07:22:01 +0000 (09:22 +0200)]
non-ascii: use iconv() with 'char **' argument

Bug: https://curl.haxx.se/mail/lib-2017-09/0031.html

7 years agoescape.c: error: pointer targets differ in signedness
Daniel Stenberg [Fri, 8 Sep 2017 06:58:12 +0000 (08:58 +0200)]
escape.c: error: pointer targets differ in signedness

7 years agodocs: clarify the CURLOPT_INTERLEAVE* options behavior
Daniel Stenberg [Fri, 15 Sep 2017 13:47:56 +0000 (15:47 +0200)]
docs: clarify the CURLOPT_INTERLEAVE* options behavior

7 years agortsp: Segfault in rtsp.c when using WRITEDATA
Max Dymond [Tue, 12 Sep 2017 18:45:19 +0000 (19:45 +0100)]
rtsp: Segfault in rtsp.c when using WRITEDATA

If the INTERLEAVEFUNCTION is defined, then use that plus the
INTERLEAVEDATA information when writing RTP. Otherwise, use
WRITEFUNCTION and WRITEDATA.

Fixes #1880
Closes #1884

7 years agotests: enable gssapi in travis-ci linux build
Isaac Boukris [Wed, 19 Jul 2017 17:41:26 +0000 (20:41 +0300)]
tests: enable gssapi in travis-ci linux build

Closes https://github.com/curl/curl/pull/1687

7 years agotests: add initial gssapi test using stub implementation
Isaac Boukris [Tue, 18 Jul 2017 18:46:21 +0000 (21:46 +0300)]
tests: add initial gssapi test using stub implementation

The stub implementation is pre-loaded using LD_PRELOAD
and emulates common gssapi uses (only builds if curl is
initially built with gssapi support).

The initial tests are currently disabled for debug builds
as LD_PRELOAD is not used then.

Ref: https://github.com/curl/curl/pull/1687

7 years agotest1150: verify same host fetch using different ports over proxy
Daniel Stenberg [Thu, 14 Sep 2017 20:50:32 +0000 (22:50 +0200)]
test1150: verify same host fetch using different ports over proxy

Closes #1889

7 years agoURL: on connection re-use, still pick the new remote port
Daniel Stenberg [Thu, 14 Sep 2017 14:49:40 +0000 (16:49 +0200)]
URL: on connection re-use, still pick the new remote port

... as when a proxy connection is being re-used, it can still get a
different remote port.

Fixes #1887
Reported-by: Oli Kingshott
7 years agoRELEASE-NOTES: synced with 87501e57f
Daniel Stenberg [Tue, 12 Sep 2017 12:20:04 +0000 (14:20 +0200)]
RELEASE-NOTES: synced with 87501e57f

7 years agocode style: remove wrong uses of multiple spaces
Daniel Stenberg [Tue, 12 Sep 2017 07:29:01 +0000 (09:29 +0200)]
code style: remove wrong uses of multiple spaces

Closes #1878

7 years agochecksrc: detect and warn for multiple spaces
Daniel Stenberg [Tue, 12 Sep 2017 07:28:37 +0000 (09:28 +0200)]
checksrc: detect and warn for multiple spaces

7 years agocode style: use space after semicolon
Daniel Stenberg [Mon, 11 Sep 2017 07:27:06 +0000 (09:27 +0200)]
code style: use space after semicolon

7 years agochecksrc: verify space after semicolons
Daniel Stenberg [Mon, 11 Sep 2017 07:25:31 +0000 (09:25 +0200)]
checksrc: verify space after semicolons

7 years agocode style: use spaces around pluses
Daniel Stenberg [Sat, 9 Sep 2017 21:55:08 +0000 (23:55 +0200)]
code style: use spaces around pluses

7 years agochecksrc: detect and warn for lack of spaces next to plus signs
Daniel Stenberg [Sat, 9 Sep 2017 21:54:47 +0000 (23:54 +0200)]
checksrc: detect and warn for lack of spaces next to plus signs

7 years agocode style: use spaces around equals signs
Daniel Stenberg [Sat, 9 Sep 2017 21:09:06 +0000 (23:09 +0200)]
code style: use spaces around equals signs

7 years agochecksrc: verify spaces around equals signs
Daniel Stenberg [Sat, 9 Sep 2017 09:57:17 +0000 (11:57 +0200)]
checksrc: verify spaces around equals signs

... as the code style mandates.

7 years agoCurl_checkheaders: make it available for IMAP and SMTP too
Daniel Stenberg [Fri, 8 Sep 2017 13:13:42 +0000 (15:13 +0200)]
Curl_checkheaders: make it available for IMAP and SMTP too

... not only HTTP uses this now.

Closes #1875

7 years agotravis: add build without HTTP/SMTP/IMAP
Daniel Stenberg [Fri, 8 Sep 2017 13:13:22 +0000 (15:13 +0200)]
travis: add build without HTTP/SMTP/IMAP

7 years agombedtls: enable CA path processing
Jay Satiro [Sun, 10 Sep 2017 07:22:05 +0000 (03:22 -0400)]
mbedtls: enable CA path processing

CA path processing was implemented when mbedtls.c was added to libcurl
in fe7590f, but it was never enabled.

Bug: https://github.com/curl/curl/issues/1877
Reported-by: SBKarr@users.noreply.github.com
7 years agortsp: do not call fwrite() with NULL pointer FILE *
Daniel Stenberg [Fri, 8 Sep 2017 08:20:36 +0000 (10:20 +0200)]
rtsp: do not call fwrite() with NULL pointer FILE *

If the default write callback is used and no destination has been set, a
NULL pointer would be passed to fwrite()'s 4th argument.

OSS-fuzz bug https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3327
(not publicly open yet)

Detected by OSS-fuzz
Closes #1874

7 years agoconfigure: use -Wno-varargs on clang 3.9[.X] debug builds
Daniel Stenberg [Fri, 8 Sep 2017 12:48:45 +0000 (14:48 +0200)]
configure: use -Wno-varargs on clang 3.9[.X] debug builds

... to avoid a clang bug

7 years agoossfuzz: add some more handled CURL options
Max Dymond [Sat, 2 Sep 2017 21:40:01 +0000 (22:40 +0100)]
ossfuzz: add some more handled CURL options

Add support for HEADER, COOKIE, RANGE, CUSTOMREQUEST, MAIL_RECIPIENT,
MAIL_FROM and uploading data.

7 years agoconfigure: check for C++ compiler after C, to make it non-fatal
Daniel Stenberg [Thu, 7 Sep 2017 14:25:38 +0000 (16:25 +0200)]
configure: check for C++ compiler after C, to make it non-fatal

The tests for object file/executable file extensions are presumably only
done for the first of these macros in the configure file.

Bug: https://github.com/curl/curl/pull/1851#issuecomment-327597515
Reported-by: Marcel Raad
Closes #1873

7 years agoform API: add new test 650.
Patrick Monnerat [Thu, 7 Sep 2017 18:11:02 +0000 (19:11 +0100)]
form API: add new test 650.

Now that the form API is deprecated and not used anymore in curl tool,
a lot of its features left untested. Test 650 attempts to check all these
features not tested elsewhere.

7 years agoconfigure: fix curl_off_t check's include order
Jay Satiro [Wed, 6 Sep 2017 22:04:16 +0000 (18:04 -0400)]
configure: fix curl_off_t check's include order

- Prepend srcdir include path instead of append.

Prior to this change it was possible that during the check for the size
of curl_off_t the include path of a user's already installed curl could
come before the include path of the to-be-built curl, resulting in the
system.h of the former being incorrectly included for that check.

Closes https://github.com/curl/curl/pull/1870

7 years agoKNOWN_BUGS: Remove CMake symbol hiding issue
Jakub Zakrzewski [Sat, 26 Aug 2017 15:34:07 +0000 (17:34 +0200)]
KNOWN_BUGS: Remove CMake symbol hiding issue

It has already been fixed in 6140dfc

7 years agohttp-proxy: when not doing CONNECT, that phase is done immediately
Daniel Stenberg [Mon, 4 Sep 2017 21:43:05 +0000 (23:43 +0200)]
http-proxy: when not doing CONNECT, that phase is done immediately

`conn->connect_state` is NULL when doing a regular non-CONNECT request
over the proxy and should therefor be considered complete at once.

Fixes #1853
Closes #1862
Reported-by: Lawrence Wagerfield
7 years agoOpenSSL: fix yet another mistake while encapsulating SSL backend data
Johannes Schindelin [Wed, 6 Sep 2017 22:55:38 +0000 (00:55 +0200)]
OpenSSL: fix yet another mistake while encapsulating SSL backend data

Another mistake in my manual fixups of the largely mechanical
search-and-replace ("connssl->" -> "BACKEND->"), just like the previous
commit concerning HTTPS proxies (and hence not caught during my
earlier testing).

Fixes #1855
Closes #1871

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
7 years agoOpenSSL: fix erroneous SSL backend encapsulation
Johannes Schindelin [Wed, 6 Sep 2017 22:04:06 +0000 (00:04 +0200)]
OpenSSL: fix erroneous SSL backend encapsulation

In d65e6cc4f (vtls: prepare the SSL backends for encapsulated private
data, 2017-06-21), this developer prepared for a separation of the
private data of the SSL backends from the general connection data.

This conversion was partially automated (search-and-replace) and
partially manual (e.g. proxy_ssl's backend data).

Sadly, there was a crucial error in the manual part, where the wrong
handle was used: rather than connecting ssl[sockindex]' BIO to the
proxy_ssl[sockindex]', we reconnected proxy_ssl[sockindex]. The reason
was an incorrect location to paste "BACKEND->"... d'oh.

Reported by Jay Satiro in https://github.com/curl/curl/issues/1855.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
7 years agovtls: fix memory corruption
Jay Satiro [Wed, 6 Sep 2017 21:39:21 +0000 (23:39 +0200)]
vtls: fix memory corruption

Ever since 70f1db321 (vtls: encapsulate SSL backend-specific data,
2017-07-28), the code handling HTTPS proxies was broken because the
pointer to the SSL backend data was not swapped between
conn->ssl[sockindex] and conn->proxy_ssl[sockindex] as intended, but
instead set to NULL (causing segmentation faults).

[jes: provided the commit message, tested and verified the patch]

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
7 years agovtls: switch to CURL_SHA256_DIGEST_LENGTH define
Daniel Stenberg [Wed, 6 Sep 2017 07:32:02 +0000 (09:32 +0200)]
vtls: switch to CURL_SHA256_DIGEST_LENGTH define

... instead of the prefix-less version since WolfSSL 3.12 now uses an
enum with that name that causes build failures for us.

Fixes #1865
Closes #1867
Reported-by: Gisle Vanem
7 years agotravis: add c-ares enabled builds linux + osx
Daniel Stenberg [Wed, 6 Sep 2017 08:05:05 +0000 (10:05 +0200)]
travis: add c-ares enabled builds linux + osx

Closes #1868

7 years agoHISTORY: added some recent items
Daniel Stenberg [Thu, 7 Sep 2017 07:51:25 +0000 (09:51 +0200)]
HISTORY: added some recent items

7 years agoSSL: fix unused parameter warnings
Jay Satiro [Wed, 6 Sep 2017 19:11:55 +0000 (15:11 -0400)]
SSL: fix unused parameter warnings

7 years agomime: drop internal FILE * support.
Patrick Monnerat [Wed, 6 Sep 2017 12:42:03 +0000 (13:42 +0100)]
mime: drop internal FILE * support.

- The part kind MIMEKIND_FILE and associated code are suppressed.
- Seek data origin offset not used anymore: suppressed.
- MIMEKIND_NAMEDFILE renamed MIMEKIND_FILE; associated fields/functions
  renamed accordingly.
- Curl_getformdata() processes stdin via a callback.

7 years agoconfigure: remove --enable-soname-bump and SONAME_BUMP
Daniel Stenberg [Mon, 4 Sep 2017 10:24:41 +0000 (12:24 +0200)]
configure: remove --enable-soname-bump and SONAME_BUMP

Back in 2008, (and commit 3f3d6ebe665f3) we changed the logic in how we
determine the native type for `curl_off_t`. To really make sure we
didn't break ABI without bumping SONAME, we introduced logic that
attempted to detect that it would use a different size and thus not be
compatible. We also provided a manual switch that allowed users to tell
configure to bump SONAME by force.

Today, we know of no one who ever got a SONAME bump auto-detected and we
don't know of anyone who's using the manual bump feature. The auto-
detection is also no longer working since we introduced defining
curl_off_t in system.h (7.55.0).

Finally, this bumping logic is not present in the cmake build.

Closes #1861

7 years agovtls: select ssl backend case-insensitive (follow-up)
Gisle Vanem [Wed, 6 Sep 2017 06:22:49 +0000 (02:22 -0400)]
vtls: select ssl backend case-insensitive (follow-up)

- Do a case-insensitive comparison of CURL_SSL_BACKEND env as well.

- Change Curl_strcasecompare calls to strcasecompare
  (maps to the former but shorter).

Follow-up to c290b8f.

Bug: https://github.com/curl/curl/commit/c290b8f#commitcomment-24094313

Co-authored-by: Jay Satiro
7 years agoopenssl: Integrate Peter Wu's SSLKEYLOGFILE implementation
Jay Satiro [Tue, 5 Sep 2017 19:27:22 +0000 (15:27 -0400)]
openssl: Integrate Peter Wu's SSLKEYLOGFILE implementation

This is an adaptation of 2 of Peter Wu's SSLKEYLOGFILE implementations.

The first one, written for old OpenSSL versions:
https://git.lekensteyn.nl/peter/wireshark-notes/tree/src/sslkeylog.c

The second one, written for BoringSSL and new OpenSSL versions:
https://github.com/curl/curl/pull/1346

Note the first one is GPL licensed but the author gave permission to
waive that license for libcurl.

As of right now this feature is disabled by default, and does not have
a configure option to enable it. To enable this feature define
ENABLE_SSLKEYLOGFILE when building libcurl and set environment
variable SSLKEYLOGFILE to a pathname that will receive the keys.

And in Wireshark change your preferences to point to that key file:
Edit > Preferences > Protocols > SSL > Master-Secret

Co-authored-by: Peter Wu
Ref: https://github.com/curl/curl/pull/1030
Ref: https://github.com/curl/curl/pull/1346

Closes https://github.com/curl/curl/pull/1866

7 years agomime: fix a trivial warning.
Patrick Monnerat [Tue, 5 Sep 2017 17:38:31 +0000 (18:38 +0100)]
mime: fix a trivial warning.

7 years agomime: replace 'struct Curl_mimepart' by 'curl_mimepart' in encoder code.
Patrick Monnerat [Tue, 5 Sep 2017 17:20:06 +0000 (18:20 +0100)]
mime: replace 'struct Curl_mimepart' by 'curl_mimepart' in encoder code.

mime_state is now a typedef.

7 years agomime: implement encoders.
Patrick Monnerat [Tue, 5 Sep 2017 16:11:59 +0000 (17:11 +0100)]
mime: implement encoders.

curl_mime_encoder() is operational and documented.
curl tool -F option is extended with ";encoder=".
curl tool --libcurl option generates calls to curl_mime_encoder().
New encoder tests 648 & 649.
Test 1404 extended with an encoder specification.

7 years agoruntests.pl: support attribute "nonewline" in part verify/upload.
Patrick Monnerat [Tue, 5 Sep 2017 16:10:05 +0000 (17:10 +0100)]
runtests.pl: support attribute "nonewline" in part verify/upload.

7 years agofixup data/test1135
Daniel Stenberg [Tue, 5 Sep 2017 12:47:59 +0000 (14:47 +0200)]
fixup data/test1135

7 years agomime: unified to use the typedef'd mime structs everywhere
Daniel Stenberg [Tue, 5 Sep 2017 09:45:21 +0000 (11:45 +0200)]
mime: unified to use the typedef'd mime structs everywhere

... and slightly edited to follow our code style better.

7 years agocurl.h: use lower case curl_mime* as for all public symbols
Daniel Stenberg [Tue, 5 Sep 2017 09:44:28 +0000 (11:44 +0200)]
curl.h: use lower case curl_mime* as for all public symbols

7 years agodocs/curl_mime_*.3: use correct variable types in examples
Daniel Stenberg [Tue, 5 Sep 2017 09:41:03 +0000 (11:41 +0200)]
docs/curl_mime_*.3: use correct variable types in examples

7 years agoopenssl: use OpenSSL's default ciphers by default
Kamil Dudka [Wed, 30 Aug 2017 12:12:10 +0000 (14:12 +0200)]
openssl: use OpenSSL's default ciphers by default

Up2date versions of OpenSSL maintain the default reasonably secure
without breaking compatibility, so it is better not to override the
default by curl.  Suggested at https://bugzilla.redhat.com/1483972

Closes #1846

7 years agoexamples/mime: minor example code fixes
Viktor Szakats [Tue, 5 Sep 2017 10:05:27 +0000 (10:05 +0000)]
examples/mime: minor example code fixes

7 years agodocs/curl_mime_*.3: added examples
Daniel Stenberg [Tue, 5 Sep 2017 09:14:42 +0000 (11:14 +0200)]
docs/curl_mime_*.3: added examples

7 years agoconfigure: add MultiSSL to FEATURES when enabled
Daniel Stenberg [Tue, 5 Sep 2017 08:45:09 +0000 (10:45 +0200)]
configure: add MultiSSL to FEATURES when enabled

...for curl-config and its corresponding test 1014

7 years agohttp-proxy: treat all 2xx as CONNECT success
Daniel Stenberg [Mon, 4 Sep 2017 08:45:02 +0000 (10:45 +0200)]
http-proxy: treat all 2xx as CONNECT success

Added test 1904 to verify.

Reported-by: Lawrence Wagerfield
Fixes #1859
Closes #1860

7 years agoMAIL-ETIQUETTE: added "1.9 Your emails are public"
Daniel Stenberg [Tue, 5 Sep 2017 07:29:11 +0000 (09:29 +0200)]
MAIL-ETIQUETTE: added "1.9 Your emails are public"

7 years agocurl.h: fix "unused checksrc ignore", remove dangling reference
Daniel Stenberg [Mon, 4 Sep 2017 17:59:11 +0000 (19:59 +0200)]
curl.h: fix "unused checksrc ignore", remove dangling reference

... to a README file that doesn't exist anymore

7 years agodocs: Update to secure URL versions
Viktor Szakats [Mon, 4 Sep 2017 14:08:54 +0000 (14:08 +0000)]
docs: Update to secure URL versions

7 years agomime: use CURL_ZERO_TERMINATED in examples
Viktor Szakats [Mon, 4 Sep 2017 13:58:10 +0000 (13:58 +0000)]
mime: use CURL_ZERO_TERMINATED in examples

and some minor whitespace fixes

7 years agoschannel: return CURLE_SSL_CACERT on failed verification
Daniel Stenberg [Sun, 3 Sep 2017 22:02:29 +0000 (00:02 +0200)]
schannel: return CURLE_SSL_CACERT on failed verification

... not *CACERT_BADFILE as it isn't really because of a bad file.

Bug: https://curl.haxx.se/mail/lib-2017-09/0002.html
Closes #1858

7 years agotest1135: fixed after bd8070085f9
Daniel Stenberg [Mon, 4 Sep 2017 09:44:42 +0000 (11:44 +0200)]
test1135: fixed after bd8070085f9

7 years agoexamples/post-callback: stop returning one byte at a time
Daniel Stenberg [Mon, 4 Sep 2017 09:39:59 +0000 (11:39 +0200)]
examples/post-callback: stop returning one byte at a time

... since people copy and paste code from this example and thus they get
an inefficient POST operation without a good reason and sometimes
without understanding why.

Instead this now returns as much data as possible.

7 years agoRELEASE-NOTES: fixed the function counter script
Daniel Stenberg [Mon, 4 Sep 2017 07:40:04 +0000 (09:40 +0200)]
RELEASE-NOTES: fixed the function counter script

7 years agocurl.h: make the curl_strequal() protos use the same style
Daniel Stenberg [Mon, 4 Sep 2017 07:38:19 +0000 (09:38 +0200)]
curl.h: make the curl_strequal() protos use the same style

... as the other functions. Makes it easier to machine-parse!

7 years agodocs: curl_mime_*.3 man page formatting edits
Daniel Stenberg [Mon, 4 Sep 2017 07:20:24 +0000 (09:20 +0200)]
docs: curl_mime_*.3 man page formatting edits

7 years agoRELEASE-NOTES: synced with 1ab9e9b50
Daniel Stenberg [Mon, 4 Sep 2017 06:34:53 +0000 (08:34 +0200)]
RELEASE-NOTES: synced with 1ab9e9b50

7 years agolib: bump version info (soname). Adapt and reenable test 1135.
Patrick Monnerat [Sun, 3 Sep 2017 23:35:53 +0000 (00:35 +0100)]
lib: bump version info (soname). Adapt and reenable test 1135.

7 years agoheaders: move the global_sslset() proto from multi.h to curl.h
Daniel Stenberg [Sun, 3 Sep 2017 21:51:42 +0000 (23:51 +0200)]
headers: move the global_sslset() proto from multi.h to curl.h

As it was added to multi.h simply to not break test 1135, which now has
been disabled due to the mime API addition anyway and su we can now move
the sslset stuff to where the other curl_global_* prototypes are.

7 years agomime: fix signed/unsigned conversions.
Patrick Monnerat [Sun, 3 Sep 2017 16:48:15 +0000 (17:48 +0100)]
mime: fix signed/unsigned conversions.

Use and generate CURL_ZERO_TERMINATED in curl tool and tests.

7 years agotool_formparse: fix some trivial warnings
Jay Satiro [Sun, 3 Sep 2017 16:13:44 +0000 (12:13 -0400)]
tool_formparse: fix some trivial warnings

7 years agomime: use size_t instead of ssize_t in public API interface.
Patrick Monnerat [Sun, 3 Sep 2017 15:10:55 +0000 (16:10 +0100)]
mime: use size_t instead of ssize_t in public API interface.

To support telling a string is nul-terminated, symbol CURL_ZERO_TERMINATED
has been introduced.

Documentation updated accordingly.

symbols in versions updated. Added form API symbols deprecation info.

7 years agomime: remove support "-" stdin pseudo-file name in curl_mime_filedata().
Patrick Monnerat [Sun, 3 Sep 2017 13:45:43 +0000 (14:45 +0100)]
mime: remove support "-" stdin pseudo-file name in curl_mime_filedata().

This feature is badly supported in Windows: as a replacement, a caller has
to use curl_mime_data_cb() with fread, fseek and possibly fclose
callbacks to process opened files.

The cli tool and documentation are updated accordingly.

The feature is however kept internally for form API compatibility, with
the known caveats it always had.

As a side effect, stdin size is not determined by the cli tool even if
possible and this results in a chunked transfer encoding. Test 173 is
updated accordingly.

7 years agomime: fix some implicit curl_off_t --> size_t conversion warnings.
Patrick Monnerat [Sun, 3 Sep 2017 09:18:58 +0000 (10:18 +0100)]
mime: fix some implicit curl_off_t --> size_t conversion warnings.

7 years agomime: tests and examples.
Patrick Monnerat [Sat, 2 Sep 2017 18:08:45 +0000 (19:08 +0100)]
mime: tests and examples.

Additional mime-specific tests.
Existing tests updated to reflect small differences (Expect: 100-continue,
data size change due to empty lines, etc).
Option -F headers= keyword added to tests.
test1135 disabled until the entry point order change is resolved.
New example smtp-mime.
Examples postit2 and multi-post converted from form API to mime API.

7 years agomime: use in curl cli tool instead of form API.
Patrick Monnerat [Sat, 2 Sep 2017 17:17:33 +0000 (18:17 +0100)]
mime: use in curl cli tool instead of form API.

Extended -F option syntax to support multipart mail messages.
-F keyword headers= added to include custom headers in parts.
Documentation upgraded.

7 years agomime: new MIME API.
Patrick Monnerat [Sat, 2 Sep 2017 16:47:10 +0000 (17:47 +0100)]
mime: new MIME API.

Available in HTTP, SMTP and IMAP.
Deprecates the FORM API.
See CURLOPT_MIMEPOST.
Lib code and associated documentation.

7 years agotest564: Add a warning comment about shell profile output.
Patrick Monnerat [Sat, 2 Sep 2017 12:01:15 +0000 (13:01 +0100)]
test564: Add a warning comment about shell profile output.

Shell profile output makes the SSH server failing and this problem reason
is not easy to find when no hint is given.

7 years agochecksrc: disable SPACEBEFOREPAREN for case statement.
Patrick Monnerat [Sat, 2 Sep 2017 11:58:55 +0000 (12:58 +0100)]
checksrc: disable SPACEBEFOREPAREN for case statement.

The case keyword may be followed by a constant expression and thus should
allow it to start with an open parenthesis.

7 years agoruntests.pl: allow <file[1-4]> tags in client section.
Patrick Monnerat [Sat, 2 Sep 2017 11:57:13 +0000 (12:57 +0100)]
runtests.pl: allow <file[1-4]> tags in client section.

This enables tests to create more than one file on the client side.

7 years agoruntests.pl: Apply strippart to upload too.
Patrick Monnerat [Sat, 2 Sep 2017 11:55:28 +0000 (12:55 +0100)]
runtests.pl: Apply strippart to upload too.

This will allow substitution of boundaries in mail messages.

7 years agoCurl_base64_encode: always call with a real data handle.
Patrick Monnerat [Sat, 2 Sep 2017 11:49:59 +0000 (12:49 +0100)]
Curl_base64_encode: always call with a real data handle.

Some calls in different modules were setting the data handle to NULL, causing
segmentation faults when using builds that enable character code conversions.

7 years agonon-ascii: allow conversion functions to be called with a NULL data handle.
Patrick Monnerat [Sat, 2 Sep 2017 11:45:21 +0000 (12:45 +0100)]
non-ascii: allow conversion functions to be called with a NULL data handle.

7 years agohttp: fix a memory leakage in checkrtspprefix().
Patrick Monnerat [Sat, 2 Sep 2017 11:40:19 +0000 (12:40 +0100)]
http: fix a memory leakage in checkrtspprefix().

7 years agoossfuzz: Move to C++ for curl_fuzzer.
Max Dymond [Fri, 1 Sep 2017 20:48:41 +0000 (21:48 +0100)]
ossfuzz: Move to C++ for curl_fuzzer.

Automake gets confused if you want to use C++ static libraries with C
code - basically we need to involve the clang++ linker. The easiest way
of achieving this is to rename the C code as C++ code. This gets us a
bit further along the path and ought to be compatible with Google's
version of clang.

7 years agocurl_global_sslset: select backend by name case insensitively
Daniel Stenberg [Thu, 31 Aug 2017 09:54:51 +0000 (11:54 +0200)]
curl_global_sslset: select backend by name case insensitively

Closes #1849

7 years agoossfuzz: additional seed corpora
Max Dymond [Tue, 29 Aug 2017 22:03:50 +0000 (23:03 +0100)]
ossfuzz: additional seed corpora

Create simple seed corpora for:
- FTP
- telnet
- dict
- tftp
- imap
- pop3

based off the tests of the same number.

Closes #1842

7 years agoossfuzz: moving towards the ideal integration
Max Dymond [Sun, 27 Aug 2017 14:57:05 +0000 (15:57 +0100)]
ossfuzz: moving towards the ideal integration

- Start with the basic code from the ossfuzz project.
- Rewrite fuzz corpora to be binary files full of Type-Length-Value
  data, and write a glue layer in the fuzzing function to convert
  corpora into CURL options.
- Have supporting functions to generate corpora from existing tests
- Integrate with Makefile.am

7 years agostrcase: corrected comment header for Curl_strcasecompare()
Daniel Stenberg [Thu, 31 Aug 2017 09:37:36 +0000 (11:37 +0200)]
strcase: corrected comment header for Curl_strcasecompare()

7 years agounit1301: fix error message on first test
Daniel Stenberg [Thu, 31 Aug 2017 09:37:13 +0000 (11:37 +0200)]
unit1301: fix error message on first test

7 years agocurl_global_sslset.3: show the struct and enum too
Daniel Stenberg [Thu, 31 Aug 2017 08:12:50 +0000 (10:12 +0200)]
curl_global_sslset.3: show the struct and enum too

... so that users can actually write code based on the man page alone,
not having to read the header file.

7 years agodarwinssl: handle long strings in TLS certs (follow-up)
Jay Satiro [Mon, 28 Aug 2017 03:37:02 +0000 (23:37 -0400)]
darwinssl: handle long strings in TLS certs (follow-up)

- Fix handling certificate subjects that are already UTF-8 encoded.

Follow-up to b3b75d1 from two days ago. Since then a copy would be
skipped if the subject was already UTF-8, possibly resulting in a NULL
deref later on.

Ref: https://github.com/curl/curl/issues/1823
Ref: https://github.com/curl/curl/pull/1831

Closes https://github.com/curl/curl/pull/1836

7 years agocyassl: call it the "WolfSSL" backend
Daniel Stenberg [Wed, 30 Aug 2017 10:48:53 +0000 (12:48 +0200)]
cyassl: call it the "WolfSSL" backend

... instead of cyassl, as this is the current name for it.

Closes #1844

7 years agopolarssl: fix multissl breakage
Daniel Stenberg [Wed, 30 Aug 2017 08:26:37 +0000 (10:26 +0200)]
polarssl: fix multissl breakage

Reported-by: Dan Fandrich
Bug: https://curl.haxx.se/mail/lib-2017-08/0121.html
Closes #1843

7 years agoconfigure: remove the leading comma from the backends list
Daniel Stenberg [Wed, 30 Aug 2017 10:58:37 +0000 (12:58 +0200)]
configure: remove the leading comma from the backends list

... when darwinssl is used.

Reported-by: Viktor Szakats
Bug: https://github.com/curl/curl/commit/b0989cd3abaff4f9a0717b4875022fa79e33b481#commitcomment-23943493

Closes #1845

7 years agoexamples/sslbackend.c: fix failure of 'make checksrc'
Kamil Dudka [Wed, 30 Aug 2017 12:16:35 +0000 (14:16 +0200)]
examples/sslbackend.c: fix failure of 'make checksrc'

./sslbackend.c:58:3: warning: else after closing brace on same line (BRACEELSE)
   } else if(isdigit(*name)) {
   ^
./sslbackend.c:62:3: warning: else after closing brace on same line (BRACEELSE)
   } else
   ^

7 years agomakefile.m32: add multissl support
Viktor Szakats [Wed, 30 Aug 2017 10:44:50 +0000 (10:44 +0000)]
makefile.m32: add multissl support

Closes https://github.com/curl/curl/pull/1840

7 years agocurl.h: CURLSSLBACKEND_WOLFSSL used wrong value
Daniel Stenberg [Wed, 30 Aug 2017 08:04:00 +0000 (10:04 +0200)]
curl.h: CURLSSLBACKEND_WOLFSSL used wrong value

The CURLSSLBACKEND_WOLFSSL is supposed to be an alias for
CURLSSLBACKEND_CYASSL, but used an erronous value. To reduce the risk
for a similar mistake, define the backend aliases to use the enum values
instead.

Reported-by: Gisle Vanem
Bug: https://curl.haxx.se/mail/lib-2017-08/0120.html

7 years agocurl_global_sslset.3: clarify
Daniel Stenberg [Wed, 30 Aug 2017 07:48:14 +0000 (09:48 +0200)]
curl_global_sslset.3: clarify

it is a one time *set*, not necessarily a one time use... it can be
called again if the first call failed or just listed the alternatives.

clarify that the available backends are the ones this build supports

plus add some formatting

Reported-by: Rich Gray
Bug: https://curl.haxx.se/mail/lib-2017-08/0119.html

7 years agocurl/multi.h: remove duplicated closing c++ brace
Daniel Stenberg [Tue, 29 Aug 2017 15:14:36 +0000 (17:14 +0200)]
curl/multi.h: remove duplicated closing c++ brace

Regression since 1328f69d53f2f2e93

Fixes #1841
Reported-by: Andrei Karas
7 years agoRELEASE-NOTES: synced with 8c33c963a
Daniel Stenberg [Tue, 29 Aug 2017 08:51:01 +0000 (10:51 +0200)]
RELEASE-NOTES: synced with 8c33c963a

7 years agoHELP-US.md: spelling
Daniel Stenberg [Tue, 29 Aug 2017 06:31:59 +0000 (08:31 +0200)]
HELP-US.md: spelling