1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-05 09:05:04 -05:00
Go to file
Michael Forney 9024b01387 bearssl: Improve I/O handling
Factor out common I/O loop as bearssl_run_until, which reads/writes TLS
records until the desired engine state is reached. This is now used for
the handshake, read, write, and close.

Match OpenSSL SSL_write behavior, and don't return the number of bytes
written until the corresponding records have been completely flushed
across the socket. This involves keeping track of the length of data
buffered into the TLS engine, and assumes that when CURLE_AGAIN is
returned, the write function will be called again with the same data
and length arguments. This is the same requirement of SSL_write.

Handle TLS close notify as EOF when reading by returning 0.

Closes https://github.com/curl/curl/pull/4748
2019-12-31 02:43:47 -05:00
.github github action/azure pipeline: run 'make test-nonflaky' for tests 2019-12-03 19:30:34 +01:00
CMake CMake: add support for building with the NSS vtls backend 2019-12-04 21:34:02 +00:00
docs CURLOPT_HEADERFUNCTION.3: Document that size is always 1 2019-12-26 02:26:08 -05:00
include curl.h: add two defines for the "pre ISO C" case 2019-12-19 13:48:47 +01:00
lib bearssl: Improve I/O handling 2019-12-31 02:43:47 -05:00
m4 ESNI: initial build/setup 2019-10-02 12:33:08 +02:00
packages os400: Add missing CURLE error constants 2019-12-26 16:20:11 -05:00
plan9 plan9: fix installation instructions 2019-08-29 19:24:59 +02:00
projects checksrc.bat: Add a check for vquic and vssh directories 2019-11-24 03:16:25 -05:00
scripts travis: Fix error detection 2019-12-31 02:38:18 -05:00
src tool_operate: fix mem leak when failed config parse 2019-12-29 14:18:48 -05:00
tests sws: search for "Testno:" header uncondtionally if no testno 2019-12-19 23:03:33 +01:00
winbuild winbuild: Document CURL_STATICLIB requirement for static libcurl 2019-12-15 17:31:23 -05:00
.azure-pipelines.yml azure: the macos cmake doesn't need to install cmake 2019-12-16 10:11:49 +01:00
.cirrus.yml cirrus: Switch to the FreeBSD 12.1 point release & enable more tests. 2019-12-16 13:30:53 +01:00
.dir-locals.el Add .dir-locals and set c-basic-offset to 2. 2015-12-23 10:16:14 +01:00
.gitattributes .gitattributes: make tabs in indentation a visible error 2018-12-06 20:21:17 +01:00
.gitignore scripts/completion.pl: also generate fish completion file 2019-03-02 11:31:18 +01:00
.lgtm.yml CI: remove duplicate configure flag for LGTM.com 2019-08-31 11:40:09 +02:00
.mailmap mailmap: fix Andrew Ishchuk 2019-12-11 09:59:32 +01:00
.travis.yml travis: Fix error detection 2019-12-31 02:38:18 -05:00
acinclude.m4 configure: add --with-amissl 2019-03-15 10:22:42 +01:00
appveyor.yml appveyor: publish artifacts on appveyor 2019-10-30 09:41:38 +01:00
buildconf includes: remove curl/curlbuild.h and curl/curlrules.h 2017-06-14 11:07:33 +02:00
buildconf.bat copyrights: update all copyright notices to 2019 on files changed this year 2019-11-02 23:15:56 +01:00
CHANGES CHANGES: spell fix, use correct path to script 2017-02-07 08:22:37 +01:00
CMakeLists.txt CMake: add support for building with the NSS vtls backend 2019-12-04 21:34:02 +00:00
configure.ac azure: add libssh2 and cmake macos builds 2019-12-10 12:34:46 +01:00
COPYING COPYING: it's 2019 2019-01-19 20:26:31 +01:00
curl-config.in curl-config.in: remove dependency on bc 2018-10-26 00:06:19 +02:00
GIT-INFO CHANGES.0: removed 2017-02-07 08:20:10 +01:00
libcurl.pc.in URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
MacOSX-Framework includes: remove curl/curlbuild.h and curl/curlrules.h 2017-06-14 11:07:33 +02:00
Makefile.am TLS: add BearSSL vtls implementation 2019-11-26 08:32:23 +01:00
Makefile.dist build: remove the Borland specific makefiles 2018-06-02 11:23:40 +02:00
maketgz maketgz: delete .bak files, fix indentation 2018-06-15 23:28:34 +00:00
README docs: minor polish to the bug bounty / security docs 2019-04-29 08:09:10 +02:00
README.md travis: remove "coverage", make it "torture" 2019-12-10 13:39:29 +01:00
RELEASE-NOTES RELEASE-NOTES: synced 2019-12-20 09:02:58 +01:00
SECURITY.md SECURITY.md: created 2019-06-10 10:16:02 +02:00

curl logo

CII Best Practices Coverity passed Travis-CI Build Status AppVeyor Build Status Cirrus Build Status Backers on Open Collective Sponsors on Open Collective Language Grade: C/C++ Codacy Badge Fuzzing Status

Curl is a command-line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl.3 man page to learn how!

You can find answers to the most frequent questions we get in the FAQ document.

Study the COPYING file for distribution terms and similar. If you distribute curl binaries or other binaries that involve libcurl, you might enjoy the LICENSE-MIXING document.

Contact

If you have problems, questions, ideas or suggestions, please contact us by posting to a suitable mailing list.

All contributors to the project are listed in the THANKS document.

Website

Visit the curl web site for the latest news and downloads.

Git

To download the very latest source from the Git server do this:

git clone https://github.com/curl/curl.git

(you'll get a directory named curl created, filled with the source code)

Security problems

Report suspected security problems via our HackerOne page and not in public!

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]