summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* url: Don't pass UTF-8 hostname to libidn unless it's valid UTF-8. draft7check_utf8_before_libidnJay Satiro2015-07-112-12/+10
| | | | - Fix unit test.
* url: Don't pass UTF-8 hostname to libidn unless it's valid UTF-8. draft6Jay Satiro2015-07-084-26/+53
| | | | - Rename utf8len function to utf8_strict_codepoint_count.
* url: Don't pass UTF-8 hostname to libidn unless it's valid UTF-8. draft5Daniel Hardman2015-07-086-4/+147
| | | | | | | | | | | - Add a unit test. There is some question about whether we should be returning a better error (currently, the validation error, IDNA_STRINGPREP_ERROR, gets lost because the only action we take on invalid input is to not convert non-ascii hostnames, which eventually causes a dns failure; that's what gets reported). The unit test for the fix thus tests dns failure instead of looking for a specific error from utf8 validation.
* url: Don't pass UTF-8 hostname to libidn unless it's valid UTF-8. draft4Jay Satiro2015-07-083-45/+54
| | | | - Move utf8len from url.c to non-ascii.c
* url: Don't pass UTF-8 hostname to libidn unless it's valid UTF-8. draft3Jay Satiro2015-07-041-36/+10
| | | | - Refactor utf8len for less lines.
* url: Don't pass UTF-8 hostname to libidn unless it's valid UTF-8. draft2Jay Satiro2015-07-011-5/+8
| | | | | | | | | | | | | | | | | | | - Fix bug in utf8len: Return error when another character in the sequence is expected but that character is null. That is what I had initally intended, but I made a mistake with the logic. - Convert locale to UTF-8 then check if UTF-8 is valid. My understanding of the conversion from locale to UTF-8 is that if the locale string which is eventually passed from libidn to libiconv as 'from_codeset' is determined to be UTF-8 then (according to the reporter Thijs Alkemade) no conversion will happen since the 'to_codeset' is "UTF-8". So, we can only check for valid UTF-8 after we're sure we have UTF-8. The alternative here I guess would be to second guess iconv which could lead to bugs as Daniel noted on the wget mailing list, or just call it directly like Alessandro has done.
* url: Don't pass UTF-8 hostname to libidn unless it's valid UTF-8. draft1Jay Satiro2015-07-011-2/+78
| | | | | | | | | | - New function utf8len. Return the number of UTF-8 characters or -1 if invalid. - Don't call idna_to_ascii_lz if UTF-8 hostname is invalid UTF-8. - TODO: Some new or existing function (shown as codepage_is_utf8 in this draft) to check if the libidn current codepage is UTF-8.
* SSL: Pinned public key hash supportmoparisthebest2015-07-0116-11/+275
|
* examples: provide <DESC> sectionsDaniel Stenberg2015-07-0118-29/+89
|
* OpenVMS: VMS Software, Inc now the supplier.John Malmberg2015-07-012-2/+10
| | | | | | | | setup-vms.h: Symbol case fixups submitted by Michael Steve build_gnv_curl_pcsi_desc.com: VSI aka as VMS Software, is now the supplier of new versions of VMS. The install kit needs to accept VSI as a producer.
* multi: Move http2 push function declarations to header endJay Satiro2015-06-302-24/+27
| | | | | | This change necessary for binary compatibility. Prior to this change test 1135 failed due to the order of functions.
* symbols-in-versions: Add new http2 push symbolsJay Satiro2015-06-301-0/+4
| | | | Prior to this change test 1119 failed due to the missing symbols.
* RELEASE-NOTES: synced with e6749055d653Daniel Stenberg2015-06-301-5/+27
|
* configure: disable libidn by defaultDaniel Stenberg2015-06-291-2/+2
| | | | | | | For security reasons, until there is a fix. Bug: http://curl.haxx.se/mail/lib-2015-06/0143.html Reported-by: Gustavo Grieco, Feist Josselin
* SSL-PROBLEMS: mention WinSSL problems in WinXPDaniel Stenberg2015-06-291-2/+8
|
* CODE_OF_CONDUCT.md: addedDaniel Stenberg2015-06-292-1/+33
| | | | | | Just to underscore how we treat each other in this project. Nothing new really, but could be useful for newcomers and outsiders to see our values.
* tool_header_cb: fflush the header streamDaniel Stenberg2015-06-251-0/+2
| | | | | | | | Flush the header stream when -D is used so that they are sent off earlier. Bug: https://github.com/bagder/curl/issues/324 Reported-by: Cédric Connes
* tests: Distribute CMakeLists.txt files in subdirectoriesRoger Leigh2015-06-253-3/+3
|
* CURLOPT_FAILONERROR.3: mention that it closes the connectionDaniel Stenberg2015-06-241-1/+4
| | | | | Reported-by: bemoody Bug: https://github.com/bagder/curl/issues/325
* curl_multi_setopt.3: alpha sort the optionsDaniel Stenberg2015-06-241-18/+18
|
* curl_multi_setopt.3: add the new push optionsDaniel Stenberg2015-06-241-1/+5
|
* http2: Use nghttp2 library error code for error return valueTatsuhiro Tsujikawa2015-06-241-1/+1
|
* http2: Harden header validation for curl_pushheader_bynameTatsuhiro Tsujikawa2015-06-241-3/+8
| | | | | | | | | | Since we do prefix match using given header by application code against header name pair in format "NAME:VALUE", and VALUE part can contain ":", we have to careful about existence of ":" in header parameter. ":" should be allowed to match HTTP/2 pseudo-header field, and other use of ":" in header must be treated as error, and curl_pushheader_byname should return NULL. This commit implements this behaviour.
* CURLMOPT_PUSHFUNCTION.3: Remove unused variableTatsuhiro Tsujikawa2015-06-241-1/+0
|
* CURLMOPT_PUSHFUNCTION.3: added exampleDaniel Stenberg2015-06-241-1/+32
|
* http2: curl_pushheader_byname now takes a const char *Daniel Stenberg2015-06-243-10/+10
|
* http2-serverpush.c: example codeDaniel Stenberg2015-06-242-1/+314
|
* http2: free all header memory after the push callbackDaniel Stenberg2015-06-241-1/+4
|
* http2: init the pushed transfer properlyDaniel Stenberg2015-06-243-10/+21
|
* http2: fixed the header accessor functions for the push callbackDaniel Stenberg2015-06-245-43/+82
|
* http2: setup the new pushed stream properlyDaniel Stenberg2015-06-246-38/+127
|
* http2: initial implementation of the push callbackDaniel Stenberg2015-06-246-10/+92
|
* http2: initial HTTP/2 server push types/docsDaniel Stenberg2015-06-244-3/+194
|
* test1531: verify POSTFIELDSIZE set after add_handleDaniel Stenberg2015-06-234-2/+150
| | | | Following the fix made in 903b6e05565bf.
* pretransfer: init state.infilesize here, not in add_handleDaniel Stenberg2015-06-232-5/+5
| | | | | | | | ... to properly support that options are set to the handle after it is added to the multi handle. Bug: http://curl.haxx.se/mail/lib-2015-06/0122.html Reported-by: Stefan Bühler
* tool_help: fix --tlsv1 help text to use >= for TLSv1Lior Kaplan2015-06-211-1/+1
|
* INSTALL: Advise use of non-native SSL for Windows <= XPJay Satiro2015-06-203-2/+29
| | | | | | | | | Advise that WinSSL in versions <= XP will not be able to connect to servers that no longer support the legacy handshakes and algorithms used by those versions, and to use an alternate backend like OpenSSL instead. Bug: https://github.com/bagder/curl/issues/253 Reported-by: zenden2k <zenden2k@gmail.com>
* curl_easy_setopt.3: restore contents removed by mistakeKamil Dudka2015-06-191-0/+232
| | | | ... in commit curl-7_43_0-18-g570076e
* curl_easy_setopt.3: mention CURLOPT_PIPEWAITDaniel Stenberg2015-06-191-232/+2
|
* cookie: Fix bug in export if any-domain cookie is presentJay Satiro2015-06-181-7/+2
| | | | | | | | | In 3013bb6 I had changed cookie export to ignore any-domain cookies, however the logic I used to do so was incorrect, and would lead to a busy loop in the case of exporting a cookie list that contained any-domain cookies. The result of that is worse though, because in that case the other cookies would not be written resulting in an empty file once the application is terminated to stop the busy loop.
* FTP: fixed compiling with --disable-proxy, broken in b88f980aDan Fandrich2015-06-181-1/+1
|
* tool: always provide negotiate/kerberos optionsDaniel Stenberg2015-06-183-33/+19
| | | | | libcurl can still be built with it, even if the tool is not. Maintain independence!
* TODO: Support IDNA2008Daniel Stenberg2015-06-181-0/+7
|
* Makefile.m32: add support for CURL_LDFLAG_EXTRASViktor Szakats2015-06-181-1/+1
| | | | | It is similar to existing CURL_CFLAG_EXTRAS, but for extra linker option.
* RTSP: removed another piece of dead codeDaniel Stenberg2015-06-181-2/+1
| | | | Coverity CID 1306668
* openssl: fix use of uninitialized bufferDaniel Stenberg2015-06-181-7/+7
| | | | | | | | Make sure that the error buffer is always initialized and simplify the use of it to make the logic easier. Bug: https://github.com/bagder/curl/issues/318 Reported-by: sneis
* examples: more descriptionsDaniel Stenberg2015-06-1819-72/+90
|
* examples: add descriptions with <DESC>Daniel Stenberg2015-06-188-25/+40
| | | | | Using this fixed format for example descriptions, we can generate a better list on the web site.
* libcurl-errors.3: fix typoDaniel Stenberg2015-06-181-2/+2
|
* curl_easy_setopt.3: option order doesn't matterDaniel Stenberg2015-06-181-0/+2
|