summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* travis: add c-ares enabled builds linux + osxbagder/travis-c-aresDaniel Stenberg2017-09-061-0/+7
|
* configure: remove --enable-soname-bump and SONAME_BUMPDaniel Stenberg2017-09-062-47/+0
| | | | | | | | | | | | | | | | | | 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
* vtls: select ssl backend case-insensitive (follow-up)Gisle Vanem2017-09-062-7/+10
| | | | | | | | | | | | | - 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
* openssl: Integrate Peter Wu's SSLKEYLOGFILE implementationJay Satiro2017-09-052-0/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* mime: fix a trivial warning.Patrick Monnerat2017-09-051-1/+0
|
* mime: replace 'struct Curl_mimepart' by 'curl_mimepart' in encoder code.Patrick Monnerat2017-09-052-23/+22
| | | | mime_state is now a typedef.
* mime: implement encoders.Patrick Monnerat2017-09-0512-45/+809
| | | | | | | | 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.
* runtests.pl: support attribute "nonewline" in part verify/upload.Patrick Monnerat2017-09-051-0/+7
|
* fixup data/test1135Daniel Stenberg2017-09-051-1/+1
|
* mime: unified to use the typedef'd mime structs everywhereDaniel Stenberg2017-09-057-96/+96
| | | | ... and slightly edited to follow our code style better.
* curl.h: use lower case curl_mime* as for all public symbolsDaniel Stenberg2017-09-051-3/+3
|
* docs/curl_mime_*.3: use correct variable types in examplesDaniel Stenberg2017-09-057-14/+14
|
* openssl: use OpenSSL's default ciphers by defaultKamil Dudka2017-09-051-4/+14
| | | | | | | | 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
* examples/mime: minor example code fixesViktor Szakats2017-09-056-11/+11
|
* docs/curl_mime_*.3: added examplesDaniel Stenberg2017-09-059-2/+128
|
* configure: add MultiSSL to FEATURES when enabledDaniel Stenberg2017-09-051-0/+6
| | | | ...for curl-config and its corresponding test 1014
* http-proxy: treat all 2xx as CONNECT successDaniel Stenberg2017-09-053-4/+84
| | | | | | | | Added test 1904 to verify. Reported-by: Lawrence Wagerfield Fixes #1859 Closes #1860
* MAIL-ETIQUETTE: added "1.9 Your emails are public"Daniel Stenberg2017-09-051-5/+26
|
* curl.h: fix "unused checksrc ignore", remove dangling referenceDaniel Stenberg2017-09-041-4/+1
| | | | ... to a README file that doesn't exist anymore
* docs: Update to secure URL versionsViktor Szakats2017-09-043-4/+4
|
* mime: use CURL_ZERO_TERMINATED in examplesViktor Szakats2017-09-046-19/+19
| | | | and some minor whitespace fixes
* schannel: return CURLE_SSL_CACERT on failed verificationDaniel Stenberg2017-09-041-1/+1
| | | | | | | ... 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
* test1135: fixed after bd8070085f9Daniel Stenberg2017-09-041-2/+2
|
* examples/post-callback: stop returning one byte at a timeDaniel Stenberg2017-09-041-23/+32
| | | | | | | | ... 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.
* RELEASE-NOTES: fixed the function counter scriptDaniel Stenberg2017-09-041-1/+1
|
* curl.h: make the curl_strequal() protos use the same styleDaniel Stenberg2017-09-041-2/+2
| | | | ... as the other functions. Makes it easier to machine-parse!
* docs: curl_mime_*.3 man page formatting editsDaniel Stenberg2017-09-0412-67/+72
|
* RELEASE-NOTES: synced with 1ab9e9b50Daniel Stenberg2017-09-041-10/+18
|
* lib: bump version info (soname). Adapt and reenable test 1135.Patrick Monnerat2017-09-043-6/+15
|
* headers: move the global_sslset() proto from multi.h to curl.hDaniel Stenberg2017-09-032-61/+61
| | | | | | 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.
* mime: fix signed/unsigned conversions.Patrick Monnerat2017-09-033-16/+25
| | | | Use and generate CURL_ZERO_TERMINATED in curl tool and tests.
* tool_formparse: fix some trivial warningsJay Satiro2017-09-031-4/+2
|
* mime: use size_t instead of ssize_t in public API interface.Patrick Monnerat2017-09-036-53/+61
| | | | | | | | | 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.
* mime: remove support "-" stdin pseudo-file name in curl_mime_filedata().Patrick Monnerat2017-09-037-14/+48
| | | | | | | | | | | | | | | 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.
* mime: fix some implicit curl_off_t --> size_t conversion warnings.Patrick Monnerat2017-09-032-6/+10
|
* mime: tests and examples.Patrick Monnerat2017-09-0231-116/+1179
| | | | | | | | | | 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.
* mime: use in curl cli tool instead of form API.Patrick Monnerat2017-09-0217-456/+768
| | | | | | Extended -F option syntax to support multipart mail messages. -F keyword headers= added to include custom headers in parts. Documentation upgraded.
* mime: new MIME API.Patrick Monnerat2017-09-0238-967/+2919
| | | | | | | Available in HTTP, SMTP and IMAP. Deprecates the FORM API. See CURLOPT_MIMEPOST. Lib code and associated documentation.
* test564: Add a warning comment about shell profile output.Patrick Monnerat2017-09-021-0/+2
| | | | | Shell profile output makes the SSH server failing and this problem reason is not easy to find when no hint is given.
* checksrc: disable SPACEBEFOREPAREN for case statement.Patrick Monnerat2017-09-021-0/+3
| | | | | The case keyword may be followed by a constant expression and thus should allow it to start with an open parenthesis.
* runtests.pl: allow <file[1-4]> tags in client section.Patrick Monnerat2017-09-021-16/+18
| | | | This enables tests to create more than one file on the client side.
* runtests.pl: Apply strippart to upload too.Patrick Monnerat2017-09-021-0/+11
| | | | This will allow substitution of boundaries in mail messages.
* Curl_base64_encode: always call with a real data handle.Patrick Monnerat2017-09-025-14/+21
| | | | | Some calls in different modules were setting the data handle to NULL, causing segmentation faults when using builds that enable character code conversions.
* non-ascii: allow conversion functions to be called with a NULL data handle.Patrick Monnerat2017-09-021-19/+37
|
* http: fix a memory leakage in checkrtspprefix().Patrick Monnerat2017-09-021-6/+8
|
* ossfuzz: Move to C++ for curl_fuzzer.Max Dymond2017-09-0210-17/+29
| | | | | | | | 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.
* curl_global_sslset: select backend by name case insensitivelyDaniel Stenberg2017-09-012-3/+3
| | | | Closes #1849
* ossfuzz: additional seed corporaMax Dymond2017-09-017-0/+2
| | | | | | | | | | | | | | Create simple seed corpora for: - FTP - telnet - dict - tftp - imap - pop3 based off the tests of the same number. Closes #1842
* ossfuzz: moving towards the ideal integrationMax Dymond2017-09-0119-162/+767
| | | | | | | | | - 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
* strcase: corrected comment header for Curl_strcasecompare()Daniel Stenberg2017-08-311-5/+6
|