]> granicus.if.org Git - curl/log
curl
9 years agoRevert "HTTP: don't abort connections with pending Negotiate authentication"
Daniel Stenberg [Fri, 17 Apr 2015 21:23:42 +0000 (23:23 +0200)]
Revert "HTTP: don't abort connections with pending Negotiate authentication"

This reverts commit 5dc68dd6092a789bb5e0a67a1c1356ba87fdcbc6.

Bug: https://github.com/bagder/curl/issues/223
Reported-by: Michael Osipov
9 years agocyassl: Fix include order
Jay Satiro [Fri, 17 Apr 2015 19:22:48 +0000 (15:22 -0400)]
cyassl: Fix include order

Prior to this change CyaSSL's build options could redefine some generic
build symbols.

http://curl.haxx.se/mail/lib-2015-04/0069.html

9 years agoconfigure --with-nss: drop redundant if statement
Kamil Dudka [Wed, 8 Apr 2015 13:19:37 +0000 (15:19 +0200)]
configure --with-nss: drop redundant if statement

9 years agoconfigure --with-nss=PATH: query pkg-config if available
Kamil Dudka [Wed, 8 Apr 2015 13:17:49 +0000 (15:17 +0200)]
configure --with-nss=PATH: query pkg-config if available

Bug: https://github.com/bagder/curl/pull/171

9 years agoparsecfg: do not continue past a zero termination
Daniel Stenberg [Thu, 16 Apr 2015 22:38:50 +0000 (00:38 +0200)]
parsecfg: do not continue past a zero termination

When a config file line ends without newline, the parsing function could
continue reading beyond that point in memory.

Reported-by: Hanno Böck
9 years agogitignore: Ignore Windows build output directories
Jay Satiro [Thu, 16 Apr 2015 22:24:42 +0000 (18:24 -0400)]
gitignore: Ignore Windows build output directories

9 years agoRELEASE-NOTES: synced with 1ba6e4c88e0
Daniel Stenberg [Wed, 15 Apr 2015 21:21:35 +0000 (23:21 +0200)]
RELEASE-NOTES: synced with 1ba6e4c88e0

9 years agoTODO: 17.9 Choose the name of file in braces for complex URLs
Daniel Stenberg [Wed, 15 Apr 2015 19:13:25 +0000 (21:13 +0200)]
TODO: 17.9 Choose the name of file in braces for complex URLs

9 years agoTODO: a little caution that maybe not all ideas are still good
Daniel Stenberg [Wed, 15 Apr 2015 18:56:43 +0000 (20:56 +0200)]
TODO: a little caution that maybe not all ideas are still good

9 years agoTODO: 17.8 offer color-coded HTTP header output
Daniel Stenberg [Wed, 15 Apr 2015 12:29:30 +0000 (14:29 +0200)]
TODO: 17.8 offer color-coded HTTP header output

9 years agoTODO: 17.7 warning when sending binary output to terminal
Daniel Stenberg [Wed, 15 Apr 2015 12:27:32 +0000 (14:27 +0200)]
TODO: 17.7 warning when sending binary output to terminal

9 years agoKNOWN_BUGS: #90 IMAP "SEARCH ALL" truncates output on large boxes
Daniel Stenberg [Wed, 15 Apr 2015 00:48:20 +0000 (02:48 +0200)]
KNOWN_BUGS: #90 IMAP "SEARCH ALL" truncates output on large boxes

9 years agocyassl: Add support for TLS extension SNI
Jay Satiro [Mon, 13 Apr 2015 05:07:28 +0000 (01:07 -0400)]
cyassl: Add support for TLS extension SNI

9 years agogitignore: ignore test-driver file
Matthew Hall [Wed, 25 Mar 2015 00:37:41 +0000 (17:37 -0700)]
gitignore: ignore test-driver file

9 years agovtls_openssl: improve PKCS#12 load failure error message
Matthew Hall [Wed, 25 Mar 2015 00:36:32 +0000 (17:36 -0700)]
vtls_openssl: improve PKCS#12 load failure error message

9 years agovtls_openssl: fix minor typo in PKCS#12 load routine
Matthew Hall [Wed, 25 Mar 2015 00:35:36 +0000 (17:35 -0700)]
vtls_openssl: fix minor typo in PKCS#12 load routine

9 years agovtls_openssl: improve client certificate load failure error messages
Matthew Hall [Wed, 25 Mar 2015 00:34:13 +0000 (17:34 -0700)]
vtls_openssl: improve client certificate load failure error messages

9 years agovtls_openssl: remove ambiguous SSL_CLIENT_CERT_ERR constant
Matthew Hall [Wed, 25 Mar 2015 00:33:27 +0000 (17:33 -0700)]
vtls_openssl: remove ambiguous SSL_CLIENT_CERT_ERR constant

9 years agoBUGS: refer to the github issue tracker now as primary
Daniel Stenberg [Mon, 13 Apr 2015 14:43:52 +0000 (16:43 +0200)]
BUGS: refer to the github issue tracker now as primary

9 years agofirefox-db2pem: fix wildcard to find Firefox default profile
Daniel Stenberg [Mon, 13 Apr 2015 13:29:54 +0000 (15:29 +0200)]
firefox-db2pem: fix wildcard to find Firefox default profile

At some point, Firefox has changed and generates different directory
names for the default profile that made this script fail to find them.

Bug: https://github.com/bagder/curl/issues/207
Reported-by: sneakyimp
9 years agocyassl: Include the CyaSSL build config
Jay Satiro [Sun, 12 Apr 2015 03:58:42 +0000 (23:58 -0400)]
cyassl: Include the CyaSSL build config

CyaSSL >= 2.6.0 may have an options.h that was generated during
its build by configure.

9 years agobuild: Generate source prerequisites for Visual Studio in generate.bat
Jay Satiro [Wed, 8 Apr 2015 16:09:30 +0000 (12:09 -0400)]
build: Generate source prerequisites for Visual Studio in generate.bat

Prior to this change Visual Studio builds could fail due to missing
prerequisites src/tool_hugehelp.c and include/curl/curlbuild.h.

http://curl.haxx.se/mail/lib-2015-04/0034.html

9 years agolib/makefile.m32: add missing libs to build libcurl.dll
Viktor Szakats [Thu, 9 Apr 2015 01:31:00 +0000 (03:31 +0200)]
lib/makefile.m32: add missing libs to build libcurl.dll

Add 'gdi32' and 'crypt32' Windows implibs to avoid failure
while building libcurl.dll using the mingw compiler.
The same logic is used in 'src/makefile.m32' when
building curl.exe.

9 years agotest142[23]: verify that an empty file is stored on success
Kamil Dudka [Tue, 7 Apr 2015 14:54:50 +0000 (16:54 +0200)]
test142[23]: verify that an empty file is stored on success

9 years agosrc/tool_operate: create output file on successful download
Kamil Dudka [Mon, 30 Mar 2015 11:56:30 +0000 (13:56 +0200)]
src/tool_operate: create output file on successful download

... of an empty file

Bug: https://github.com/bagder/curl/issues/183

9 years agosrc/tool_cb_wrt: separate fnc for output file creation
Kamil Dudka [Mon, 30 Mar 2015 11:45:22 +0000 (13:45 +0200)]
src/tool_cb_wrt: separate fnc for output file creation

9 years agolib/transfer.c: Remove factor of 8 from sleep time calculation
Da-Yoon Chung [Mon, 6 Apr 2015 17:22:07 +0000 (13:22 -0400)]
lib/transfer.c: Remove factor of 8 from sleep time calculation

The factor of 8 is a bytes-to-bits conversion factor, but pkt_size and
rate_bps are both in bytes. When using the rate limiting option, curl
waits 8 times too long, and then transfers very quickly until the
average rate reaches the limit. The average rate follows the limit over
time, but the actual traffic is bursty.

Thanks-to: Benjamin Gilbert
9 years agox509asn1: Silence x64 loss-of-data warning on RSA key length assignment
Jay Satiro [Sun, 5 Apr 2015 06:25:33 +0000 (02:25 -0400)]
x509asn1: Silence x64 loss-of-data warning on RSA key length assignment

The key length in bits will always fit in an unsigned long so the
loss-of-data warning assigning the result of x64 pointer arithmetic to
an unsigned long is unnecessary.

9 years agocyassl: Use CYASSL_MAX_ERROR_SZ for error buffer size
Jay Satiro [Sat, 4 Apr 2015 06:12:03 +0000 (02:12 -0400)]
cyassl: Use CYASSL_MAX_ERROR_SZ for error buffer size

Also fix it so that all ERR_error_string calls use an error buffer.
CyaSSL's implementation of ERR_error_string only writes the error when
an error buffer is passed.

http://www.yassl.com/forums/topic599-openssl-compatibility-and-errerrorstring.html

9 years agocyassl: Remove 'Connecting to' message from cyassl_connect_step2
Jay Satiro [Sat, 4 Apr 2015 06:24:43 +0000 (02:24 -0400)]
cyassl: Remove 'Connecting to' message from cyassl_connect_step2

Prior to this change libcurl could show multiple 'CyaSSL: Connecting to'
messages since cyassl_connect_step2 is called multiple times, typically.
The message is superfluous even once since libcurl already informs the
user elsewhere in code that it is connecting.

9 years agochecksrc.bat: quotes to support an SRC_DIR with spaces
Viktor Szakats [Sat, 4 Apr 2015 16:03:25 +0000 (18:03 +0200)]
checksrc.bat: quotes to support an SRC_DIR with spaces

9 years agohostip: fix compiler warnings
Daniel Stenberg [Fri, 3 Apr 2015 21:41:58 +0000 (23:41 +0200)]
hostip: fix compiler warnings

introduced in the previous mini-series of 3 commits

9 years agoactually implement CURLOPT_RESOLVE removals
Stefan Bühler [Tue, 17 Mar 2015 08:15:25 +0000 (09:15 +0100)]
actually implement CURLOPT_RESOLVE removals

- also log when a CURLOPT_RESOLVE entry couldn't get parsed

9 years agomove Curl_share_lock and ref counting into Curl_fetch_addr
Stefan Bühler [Tue, 17 Mar 2015 08:26:36 +0000 (09:26 +0100)]
move Curl_share_lock and ref counting into Curl_fetch_addr

9 years agofix refreshing of obsolete dns cache entries
Stefan Bühler [Tue, 17 Mar 2015 08:09:43 +0000 (09:09 +0100)]
fix refreshing of obsolete dns cache entries

- cache entries must be also refreshed when they are in use
- have the cache count as inuse reference too, freeing timestamp == 0 special
  value
- use timestamp == 0 for CURLOPT_RESOLVE entries which don't get refreshed
- remove CURLOPT_RESOLVE special inuse reference (timestamp == 0 will prevent refresh)
- fix Curl_hostcache_clean - CURLOPT_RESOLVE entries don't have a special
  reference anymore, and it would also release non CURLOPT_RESOLVE references
- fix locking in Curl_hostcache_clean
- fix unit1305.c: hash now keeps a reference, need to set inuse = 1

9 years agoRELEASE-NOTES: synced with abf6bddc14a
Daniel Stenberg [Fri, 3 Apr 2015 09:02:57 +0000 (11:02 +0200)]
RELEASE-NOTES: synced with abf6bddc14a

9 years agochecksrc.bat: Check lib\vtls source
Jay Satiro [Fri, 3 Apr 2015 05:11:34 +0000 (01:11 -0400)]
checksrc.bat: Check lib\vtls source

9 years agocyassl: Set minimum protocol version before CTX callback
Jay Satiro [Fri, 3 Apr 2015 06:11:35 +0000 (02:11 -0400)]
cyassl: Set minimum protocol version before CTX callback

This change is to allow the user's CTX callback to change the minimum
protocol version in the CTX without us later overriding it, as we did
prior to this change.

9 years agobuild-openssl.bat: Fix mixed line endings
Jay Satiro [Thu, 2 Apr 2015 15:21:09 +0000 (17:21 +0200)]
build-openssl.bat: Fix mixed line endings

Use LF not CRLF, throughout.  msysgit will only convert a file to CRLF
on checkout if it's not mixed.

9 years agocyassl: Fix certificate load check
Jay Satiro [Thu, 2 Apr 2015 05:51:07 +0000 (01:51 -0400)]
cyassl: Fix certificate load check

SSL_CTX_load_verify_locations can return negative values on fail,
therefore to check for failure we check if load is != 1 (success)
instead of if load is == 0 (failure), the latter being incorrect given
that behavior.

9 years agohttp2: Fix missing nghttp2_session_send call in Curl_http2_switched
Tatsuhiro Tsujikawa [Wed, 1 Apr 2015 15:28:58 +0000 (00:28 +0900)]
http2: Fix missing nghttp2_session_send call in Curl_http2_switched

Previously in Curl_http2_switched, we called nghttp2_session_mem_recv to
parse incoming data which were already received while curl was handling
upgrade.  But we didn't call nghttp2_session_send, and it led to make
curl not send any response to the received frames.  Most likely, we
received SETTINGS from server at this point, so we missed opportunity to
send SETTINGS + ACK.  This commit adds missing nghttp2_session_send call
in Curl_http2_switched to fix this issue.

Bug: https://github.com/bagder/curl/issues/192
Reported-by: Stefan Eissing
9 years agocookie: handle spaces after the name in Set-Cookie
Daniel Stenberg [Wed, 1 Apr 2015 21:25:29 +0000 (23:25 +0200)]
cookie: handle spaces after the name in Set-Cookie

"name =value" is fine and the space should just be skipped.

Updated test 31 to also test for this.

Bug: https://github.com/bagder/curl/issues/195
Reported-by: cromestant
Help-by: Frank Gevaerts
9 years agocyassl: Fix library initialization return value
Jay Satiro [Mon, 30 Mar 2015 23:09:26 +0000 (19:09 -0400)]
cyassl: Fix library initialization return value

(Curl_cyassl_init)
- Return 1 on success, 0 in failure.

Prior to this change the fail path returned an incorrect value and the
evaluation to determine whether CyaSSL_Init had succeeded was incorrect.
Ironically that combined with the way curl_global_init tests SSL library
initialization (!Curl_ssl_init()) meant that CyaSSL having been
successfully initialized would be seen as that even though the code path
and return value in Curl_cyassl_init were wrong.

9 years agoCURLOPT_HTTP200ALIASES.3: Mainly SHOUTcast servers use "ICY 200"
Thomas Ruecker [Tue, 31 Mar 2015 10:07:53 +0000 (13:07 +0300)]
CURLOPT_HTTP200ALIASES.3: Mainly SHOUTcast servers use "ICY 200"

Icecast versions 1.3.0 through 1.3.12 would reply with "ICY 200"
under certain conditions:

    client_wants_icy_headers (connection_t *con)
    {
            const char *val;

            if (!con)
                    return 1;

            val = get_user_agent (con);
            if (!val || !val[0] || strcmp (val, "(null)") == 0)
                    return 1;

            if (con->food.client->use_icy)
                    return 1;
            if (strncasecmp (val, "winamp", 6) == 0)
                    return 1;
            if (strncasecmp (val, "Shoutcast", 9) == 0)
                    return 1;

            return 0;
    }

So mainly if there is no 'user agent' or it is '(null)' or contains
'winamp' or 'Shoutcast'.

No mainstream distribution carries Icecast 1.3.x anymore, after all
it was released in 2002 and superseded by Icecast 2.x.

9 years agoaxtls: add timeout within Curl_axtls_connect
Dan Fandrich [Tue, 31 Mar 2015 00:04:22 +0000 (02:04 +0200)]
axtls: add timeout within Curl_axtls_connect

This allows test 405 to pass on axTLS.

9 years agochecksrc: Windows-specific input fixes
Jay Satiro [Mon, 30 Mar 2015 20:22:58 +0000 (16:22 -0400)]
checksrc: Windows-specific input fixes

lib/config-win32ce.h
- Fix whitespace for checksrc compliance.

lib/checksrc.pl
- Remove trailing carriage returns from input.

projects/checksrc.bat
- Ignore tool_hugehelp.c.

9 years agoconfigure: Use KRB5CONFIG for krb5-config
Dagobert Michelsen [Mon, 30 Mar 2015 12:18:21 +0000 (14:18 +0200)]
configure: Use KRB5CONFIG for krb5-config

Allows the user to easier override its path.

Bug: http://curl.haxx.se/bug/view.cgi?id=1486

9 years agomulti: remove_handle: move pending connections
Daniel Stenberg [Sun, 29 Mar 2015 21:48:32 +0000 (23:48 +0200)]
multi: remove_handle: move pending connections

If the handle removed from the multi handle happens to be the one
"owning" the pipeline other transfers will be waiting indefinitely. Now
we move such handles back to connect to have them race (again) for
getting the connection and thus avoid hanging.

Bug: http://curl.haxx.se/bug/view.cgi?id=1465
Reported-by: Jiri Dvorak
9 years agoKNOWN_BUGS: 89 is bug #1411
Daniel Stenberg [Sun, 29 Mar 2015 21:20:15 +0000 (23:20 +0200)]
KNOWN_BUGS: 89 is bug #1411

Disabling pipelining on multi handle with in-progress pipelined requests
leads to heap corruption and crash

9 years agocyassl: CTX callback cosmetic changes and doc fix
Jay Satiro [Sat, 28 Mar 2015 04:16:08 +0000 (00:16 -0400)]
cyassl: CTX callback cosmetic changes and doc fix

- More descriptive fail message for NO_FILESYSTEM builds.
- Cosmetic changes.
- Change more of CURLOPT_SSL_CTX_* doc to not be OpenSSL specific.

9 years agoRELEASE-NOTES: synced with d2feb71752f
Daniel Stenberg [Fri, 27 Mar 2015 22:46:03 +0000 (23:46 +0100)]
RELEASE-NOTES: synced with d2feb71752f

9 years agotool_operate: only set SSL options if SSL is enabled
Dan Fandrich [Sat, 28 Mar 2015 10:51:05 +0000 (11:51 +0100)]
tool_operate: only set SSL options if SSL is enabled

9 years agoruntests.pl: detect WolfSSL as yassl
Dan Fandrich [Fri, 27 Mar 2015 23:26:45 +0000 (00:26 +0100)]
runtests.pl: detect WolfSSL as yassl

9 years agocyassl: add SSL context callback support for CyaSSL
Kyle L. Huff [Fri, 27 Mar 2015 11:22:32 +0000 (07:22 -0400)]
cyassl: add SSL context callback support for CyaSSL

Adds support for CURLOPT_SSL_CTX_FUNCTION when using CyaSSL, and better
handles CyaSSL instances using NO_FILESYSTEM.

9 years agocyassl: remove undefined reference to CyaSSL_no_filesystem_verify
Kyle L. Huff [Fri, 27 Mar 2015 00:43:22 +0000 (20:43 -0400)]
cyassl: remove undefined reference to CyaSSL_no_filesystem_verify

CyaSSL_no_filesystem_verify is not (or no longer) defined by cURL or
CyaSSL. This reference causes build errors when compiling with
NO_FILESYSTEM.

9 years agobuild: Fix libcurl.sln erroneous mixed configurations
Jay Satiro [Sat, 21 Mar 2015 22:55:29 +0000 (18:55 -0400)]
build: Fix libcurl.sln erroneous mixed configurations

Prior to this change some Release configurations had an active
configuration assignment to their Debug counterpart.

9 years agovtls: Don't accept unknown CURLOPT_SSLVERSION values
Jay Satiro [Fri, 27 Mar 2015 06:20:43 +0000 (02:20 -0400)]
vtls: Don't accept unknown CURLOPT_SSLVERSION values

9 years agourl: Don't accept CURLOPT_SSLVERSION unless USE_SSL is defined
Jay Satiro [Thu, 26 Mar 2015 06:31:35 +0000 (02:31 -0400)]
url: Don't accept CURLOPT_SSLVERSION unless USE_SSL is defined

9 years agobuild: link curl to openssl libraries when openssl support is enabled
Paul Howarth [Fri, 9 Jan 2015 09:49:20 +0000 (09:49 +0000)]
build: link curl to openssl libraries when openssl support is enabled

This fixes a build failure where openssl and libmetalink are used
together and the system linker does not do implicit linking (e.g.
Fedora 13 and later releases). The MD5 functions required for
metalink support must be pulled in from the openssl crypto library.

This is similar to commit c6e7cbb94e669b85d3eb8e015ec51d0072112133,
which fixes the same sort of problem for NSS builds.

9 years agomulti: on a request completion, check all CONNECT_PEND transfers
Daniel Stenberg [Sat, 21 Mar 2015 21:42:43 +0000 (22:42 +0100)]
multi: on a request completion, check all CONNECT_PEND transfers

... even if they don't have an associated connection anymore. It could
leave the waiting transfers pending with no active one on the
connection.

Bug: http://curl.haxx.se/bug/view.cgi?id=1465
Reported-by: Jiri Dvorak
9 years agoglobbing: fix url number calculation when using range with step
Emil Lerner [Wed, 25 Mar 2015 11:23:42 +0000 (14:23 +0300)]
globbing: fix url number calculation when using range with step

In function glob_range, the number of urls was multiplied by (max - min
+ 1), regardless of step. The correct formula is (max - min) / step + 1

9 years agoREADME.http2: refreshed and added TODO items
Daniel Stenberg [Wed, 25 Mar 2015 11:13:16 +0000 (12:13 +0100)]
README.http2: refreshed and added TODO items

9 years agoglobbing: fix step parsing for character globbing ranges
Emil Lerner [Wed, 25 Mar 2015 04:43:04 +0000 (07:43 +0300)]
globbing: fix step parsing for character globbing ranges

The glob_range function used wrong offset (3 instead of 4) for parsing
integer step inside character range specification, which led to 'bad
range' error when using character ranges with explicitly specified step
(such as '[a-z:2]')

9 years agopolarssl: called mbedTLS in 1.3.10 and later
Daniel Stenberg [Wed, 25 Mar 2015 08:19:57 +0000 (09:19 +0100)]
polarssl: called mbedTLS in 1.3.10 and later

9 years agopolarssl: remove dead code
Daniel Stenberg [Wed, 25 Mar 2015 08:01:11 +0000 (09:01 +0100)]
polarssl: remove dead code

and simplify code by changing if-elses to a switch()

CID 1291706: Logically dead code. Execution cannot reach this statement

9 years agopolarssl: remove superfluous for(;;) loop
Daniel Stenberg [Wed, 25 Mar 2015 07:49:34 +0000 (08:49 +0100)]
polarssl: remove superfluous for(;;) loop

"unreachable: Since the loop increment is unreachable, the loop body
will never execute more than once."

Coverity CID 1291707

9 years agoCurl_ssl_md5sum: return CURLcode
Daniel Stenberg [Wed, 25 Mar 2015 07:32:12 +0000 (08:32 +0100)]
Curl_ssl_md5sum: return CURLcode

... since the funciton can fail on OOM. Check this return code.

Coverity CID 1291705.

9 years agocyassl: default to highest possible TLS version
Jay Satiro [Wed, 25 Mar 2015 06:40:00 +0000 (02:40 -0400)]
cyassl: default to highest possible TLS version

(cyassl_connect_step1)
- Use TLS 1.0-1.2 by default when available.

CyaSSL/wolfSSL >= v3.3.0 supports setting a minimum protocol downgrade
version.

cyassl/cyassl@322f79f

9 years agocyassl: Check for invalid length parameter in Curl_cyassl_random
Jay Satiro [Wed, 25 Mar 2015 06:37:20 +0000 (02:37 -0400)]
cyassl: Check for invalid length parameter in Curl_cyassl_random

9 years agocyassl: If wolfSSL then identify as such in version string
Jay Satiro [Wed, 25 Mar 2015 06:33:44 +0000 (02:33 -0400)]
cyassl: If wolfSSL then identify as such in version string

9 years agosymbols-in-versions: added CURLOPT_PATH_AS_IS
Dan Fandrich [Tue, 24 Mar 2015 22:45:22 +0000 (23:45 +0100)]
symbols-in-versions: added CURLOPT_PATH_AS_IS

9 years agotestcurl.pl: add the --notes option to supply more info about a build
Dan Fandrich [Tue, 24 Mar 2015 22:43:32 +0000 (23:43 +0100)]
testcurl.pl: add the --notes option to supply more info about a build

Support for notes has been in place for a while, but it required
being added to the setup file manually.

9 years agocurl_memory: make curl_memory.h the second-last header file loaded
Dan Fandrich [Tue, 24 Mar 2015 22:12:03 +0000 (23:12 +0100)]
curl_memory: make curl_memory.h the second-last header file loaded

This header file must be included after all header files except
memdebug.h, as it does similar memory function redefinitions and can be
similarly affected by conflicting definitions in system or dependent
library headers.

9 years agoopenssl: do the OCSP work-around for libressl too
Daniel Stenberg [Tue, 24 Mar 2015 22:39:52 +0000 (23:39 +0100)]
openssl: do the OCSP work-around for libressl too

I tested with libressl git master now (v2.1.4-27-g34bf96c) and it seems to
still require the work-around for stapling to work.

9 years agoopenssl: verifystatus: only use the OCSP work-around <= 1.0.2a
Daniel Stenberg [Tue, 24 Mar 2015 22:05:26 +0000 (23:05 +0100)]
openssl: verifystatus: only use the OCSP work-around <= 1.0.2a

URL: http://curl.haxx.se/mail/lib-2015-03/0205.html
Reported-by: Alessandro Ghedini
9 years agoopenssl: adapt to ASN1/X509 things gone opaque in 1.1
Daniel Stenberg [Tue, 24 Mar 2015 21:59:33 +0000 (22:59 +0100)]
openssl: adapt to ASN1/X509 things gone opaque in 1.1

9 years agocurl_easy_setopt.3: Fix misspelling in CURLOPT_PATH_AS_IS description
Jay Satiro [Tue, 24 Mar 2015 19:02:22 +0000 (15:02 -0400)]
curl_easy_setopt.3: Fix misspelling in CURLOPT_PATH_AS_IS description

9 years agoCURLOPT_HTTPHEADER.3: fix typo in recent commit
Viktor Szakáts [Tue, 24 Mar 2015 16:59:42 +0000 (17:59 +0100)]
CURLOPT_HTTPHEADER.3: fix typo in recent commit

9 years agoCURLOPT_PATH_AS_IS.3: add type 'long' to prototype
Viktor Szakáts [Tue, 24 Mar 2015 16:52:22 +0000 (17:52 +0100)]
CURLOPT_PATH_AS_IS.3: add type 'long' to prototype

9 years agovtls: fix compile with --disable-crypto-auth but with SSL
Dan Fandrich [Tue, 24 Mar 2015 20:41:22 +0000 (21:41 +0100)]
vtls: fix compile with --disable-crypto-auth but with SSL

This is a strange combination of options, but is allowed.

9 years agoos400: define new options in ILE/RPG binding.
Patrick Monnerat [Tue, 24 Mar 2015 11:18:31 +0000 (12:18 +0100)]
os400: define new options in ILE/RPG binding.

9 years agoRELEASE-NOTES: synced with f6878609361
Daniel Stenberg [Tue, 24 Mar 2015 10:14:35 +0000 (11:14 +0100)]
RELEASE-NOTES: synced with f6878609361

9 years agocurl_easy_setopt.3: Add CURLOPT_PATH_AS_IS
Daniel Stenberg [Tue, 24 Mar 2015 10:06:38 +0000 (11:06 +0100)]
curl_easy_setopt.3: Add CURLOPT_PATH_AS_IS

9 years agoCURLOPT_PATH_AS_IS: added
Daniel Stenberg [Mon, 23 Mar 2015 09:51:49 +0000 (10:51 +0100)]
CURLOPT_PATH_AS_IS: added

--path-as-is is the command line option

Added docs in curl.1 and CURLOPT_PATH_AS_IS.3

Added test in test 1241

9 years agocurl_easy_recv/send: make them work with the multi interface
Yamada Yasuharu [Mon, 23 Mar 2015 21:46:58 +0000 (22:46 +0100)]
curl_easy_recv/send: make them work with the multi interface

By making sure Curl_getconnectinfo() uses the correct connection cache
to find the last connection.

9 years agohttp2: move the init too for when its actually needed
Daniel Stenberg [Mon, 23 Mar 2015 09:25:18 +0000 (10:25 +0100)]
http2: move the init too for when its actually needed

... it would otherwise lead to memory leakage if we never actually do
the switch.

9 years agodict: rename byte to avoid compiler shadowed declaration warning
Dan Fandrich [Mon, 23 Mar 2015 09:16:10 +0000 (10:16 +0100)]
dict: rename byte to avoid compiler shadowed declaration warning

This conflicted with a WolfSSL typedef.

9 years agocyassl: include version.h to ensure the version macros are defined
Dan Fandrich [Mon, 23 Mar 2015 09:10:03 +0000 (10:10 +0100)]
cyassl: include version.h to ensure the version macros are defined

9 years agotest1513: eliminated race condition in test run
Dan Fandrich [Sat, 21 Mar 2015 22:57:32 +0000 (23:57 +0100)]
test1513: eliminated race condition in test run

It seems that some systems (e.g. fairly consistently in some recent
Solaris autobuilds) would manage to get to the connect phase before the
progress callback was called, resulting in a CURLE_COULDNT_CONNECT
error. Reworked the test to point at a test server that never returns a
full result so the progress callback always gets a chance to be called
before the transfer can complete in some other way.

9 years agodarwinsssl: add support for TLS False Start
Nick Zitzmann [Sat, 21 Mar 2015 17:22:56 +0000 (12:22 -0500)]
darwinsssl: add support for TLS False Start

TLS False Start support requires iOS 7.0 or later, or OS X 10.9 or later.

9 years agogtls: add check of return code
Daniel Stenberg [Sat, 21 Mar 2015 15:50:51 +0000 (16:50 +0100)]
gtls: add check of return code

Coverity CID 1291167 pointed out that 'rc' was received but never used when
gnutls_credentials_set() was used. Added return code check now.

9 years agogtls: dereferencing NULL pointer
Daniel Stenberg [Sat, 21 Mar 2015 15:47:22 +0000 (16:47 +0100)]
gtls: dereferencing NULL pointer

Coverity CID 1291165 pointed out 'chainp' could be dereferenced when
NULL if gnutls_certificate_get_peers() had previously failed.

9 years agogtls: avoid uninitialized variable.
Daniel Stenberg [Sat, 21 Mar 2015 15:44:17 +0000 (16:44 +0100)]
gtls: avoid uninitialized variable.

Coverity CID 1291166 pointed out that we could read this variable
uninitialized.

9 years agotests/certs: rebuild certificates with modified key usage bits
Dan Fandrich [Sat, 21 Mar 2015 15:20:34 +0000 (16:20 +0100)]
tests/certs: rebuild certificates with modified key usage bits

The certificates were missing the digitalSignature and keyAgreement
usage types, of which at least digitalSignature was checked by CyaSSL.
This caused the test server in test 310 (among others) to fail the
startup verification and therefore run (see
http://curl.haxx.se/mail/lib-2014-07/0303.html).

9 years agotests/certs: added make target to rebuild certificates
Dan Fandrich [Sat, 21 Mar 2015 13:23:00 +0000 (14:23 +0100)]
tests/certs: added make target to rebuild certificates

The certificate generation scripts were also updated to better match the
format of the certificates currently checked in.

9 years agox509asn1: add /* fallthrough */ in switch() case
Daniel Stenberg [Sat, 21 Mar 2015 15:29:58 +0000 (16:29 +0100)]
x509asn1: add /* fallthrough */ in switch() case

9 years agox509asn1: minor edit to unconfuse Coverity
Daniel Stenberg [Sat, 21 Mar 2015 15:21:01 +0000 (16:21 +0100)]
x509asn1: minor edit to unconfuse Coverity

CID 1202732 warns on the previous use, although I cannot fine any
problems with it. I'm doing this change only to make the code use a more
familiar approach to accomplish the same thing.

9 years agotestcurl: Allow '=' in values given on command line
Dagobert Michelsen [Sat, 21 Mar 2015 14:38:56 +0000 (15:38 +0100)]
testcurl: Allow '=' in values given on command line

9 years agonss: error: unused variable 'connssl'
Daniel Stenberg [Sat, 21 Mar 2015 14:47:03 +0000 (15:47 +0100)]
nss: error: unused variable 'connssl'

9 years agotest938: added missing closing tags
Dan Fandrich [Sat, 21 Mar 2015 00:27:44 +0000 (01:27 +0100)]
test938: added missing closing tags