Guenter Knauf
357a15a649
Fixed error message since we require ALPN support.
2014-10-29 01:37:18 +01:00
Guenter Knauf
e42e3a4fac
Check for ALPN via OpenSSL version number.
...
This check works also with to non-configure platforms.
2014-10-29 00:59:38 +01:00
Steve Holme
2e121fda35
sasl_sspi: Fixed typo in comment
2014-10-28 23:57:46 +00:00
Steve Holme
085081fc6e
code cleanup: We prefer 'CURLcode result'
2014-10-28 22:45:32 +00:00
Daniel Stenberg
76b2f53707
mk-ca-bundle: spell fix "version"
2014-10-28 15:21:11 +01:00
Daniel Stenberg
95765567d0
HTTP: return larger than 3 digit response codes too
...
HTTP 1.1 is clearly specified to only allow three digit response codes,
and libcurl used sscanf("%3d") for that purpose. This made libcurl
support smaller numbers but not larger. It does now, but we will not
make any specific promises nor document this further since it is going
outside of what HTTP is.
Bug: http://curl.haxx.se/bug/view.cgi?id=1441
Reported-by: Balaji
2014-10-27 16:28:10 +01:00
Steve Holme
0811742488
ntlm: We prefer 'CURLcode result'
...
Continuing commit 0eb3d15ccb
more return code variable name changes.
2014-10-26 21:15:20 +00:00
Guenter Knauf
7be56906d6
Cosmetics: lowercase non-special subroutine names.
2014-10-26 19:07:35 +01:00
Steve Holme
07ac29a058
http_negotiate: We prefer 'CURLcode result'
...
Continuing commit 0eb3d15ccb
more return code variable name changes.
2014-10-26 16:38:21 +00:00
Steve Holme
64814739d5
http_negotiate: Fixed missing check for USE_SPNEGO
2014-10-26 16:28:02 +00:00
Steve Holme
c1c16bea94
sspi: Synchronization of cleanup code between auth mechanisms
2014-10-26 14:51:58 +00:00
Steve Holme
d91d21f05b
sspi: Renamed max token length variables
...
Code cleanup to try and synchronise code between the different SSPI
based authentication mechanisms.
2014-10-26 14:43:02 +00:00
Steve Holme
c2c6805797
sspi: Renamed expiry time stamp variables
...
Code cleanup to try and synchronise code between the different SSPI
based authentication mechanisms.
2014-10-26 14:34:06 +00:00
Steve Holme
9c613ade7a
sspi: Only call CompleteAuthToken() when complete is needed
...
Don't call CompleteAuthToken() after InitializeSecurityContext() has
returned SEC_I_CONTINUE_NEEDED as this return code only indicates the
function should be called again after receiving a response back from
the server.
This only affected the Digest and NTLM authentication code.
2014-10-26 14:33:19 +00:00
Steve Holme
980f2b7078
ntlm: Return all errors from Curl_ntlm_core_mk_nt_hash()
...
For consistency with other areas of the NTLM code propagate all errors
from Curl_ntlm_core_mk_nt_hash() up the call stack rather than just
CURLE_OUT_OF_MEMORY.
2014-10-26 09:14:46 +00:00
Steve Holme
3b738a16eb
ntlm: Return CURLcode from Curl_ntlm_core_mk_lm_hash()
2014-10-26 09:14:34 +00:00
Steve Holme
9c5f851ec9
ntlm: Use 'CURLcode result'
...
Continuing commit 0eb3d15ccb
more return code variable name changes.
2014-10-26 09:14:10 +00:00
Steve Holme
3fe5b462f7
ntlm: Only define ntlm data structure when USE_NTLM is defined
2014-10-25 22:36:49 +01:00
Steve Holme
28ff8babad
ntlm: Changed handles to be dynamic like other SSPI handles
...
Code cleanup to try and synchronise code between the different SSPI
based authentication mechanisms.
2014-10-25 14:16:06 +01:00
Steve Holme
f9f212fb93
ntlm: Renamed handle variables to match other SSPI structures
...
Code cleanup to try and synchronise code between the different SSPI
based authentication mechanisms.
2014-10-25 14:15:57 +01:00
Steve Holme
df97ab3e5f
ntlm: Renamed SSPI based input token variables
...
Code cleanup to try and synchronise code between the different SSPI
based authentication mechanisms.
2014-10-25 14:15:48 +01:00
Steve Holme
c18329cef6
ntlm: We prefer 'CURLcode result'
...
Continuing commit 0eb3d15ccb
more return code variable name changes.
2014-10-25 14:06:21 +01:00
Nick Zitzmann
bd87aec5a7
darwinssl: detect possible future removal of SSLv3 from the framework
...
If Apple ever drops SSLv3 support from the Security framework, we'll fail with an error if the user insists on using SSLv3.
2014-10-24 18:59:13 -05:00
Patrick Monnerat
3ca560439c
gskit.c: remove SSLv3 from SSL default.
2014-10-24 16:08:21 +02:00
Patrick Monnerat
897ef500e5
gskit.c: use 'CURLcode result'
2014-10-24 15:16:05 +02:00
Jay Satiro
ec783dc142
SSL: Remove SSLv3 from SSL default due to POODLE attack
...
- Remove SSLv3 from SSL default in darwinssl, schannel, cyassl, nss,
openssl effectively making the default TLS 1.x. axTLS is not affected
since it supports only TLS, and gnutls is not affected since it already
defaults to TLS 1.x.
- Update CURLOPT_SSLVERSION doc
2014-10-24 13:41:56 +02:00
Daniel Stenberg
2b04257491
pipelining: only output "is not blacklisted" in debug builds
2014-10-24 11:12:34 +02:00
Daniel Stenberg
fb6e8a5aa4
url.c: use 'CURLcode result'
2014-10-24 08:51:04 +02:00
Daniel Stenberg
0eb3d15ccb
code cleanup: we prefer 'CURLcode result'
...
... for the local variable name in functions holding the return
code. Using the same name universally makes code easier to read and
follow.
Also, unify code for checking for CURLcode errors with:
if(result) or if(!result)
instead of
if(result == CURLE_OK), if(CURLE_OK == result) or if(result != CURLE_OK)
2014-10-24 08:23:19 +02:00
Daniel Stenberg
1752e9c088
Curl_add_timecondition: skip superfluous varible assignment
...
Detected by cppcheck.
2014-10-24 08:23:19 +02:00
Daniel Stenberg
65db980106
Curl_pp_flushsend: skip superfluous assignment
...
Detected by cppcheck.
2014-10-24 08:23:19 +02:00
Daniel Stenberg
8e34d3f9ef
Curl_pp_readresp: remove superfluous assignment
...
Variable already assigned a few lines up.
Detected by cppcheck.
2014-10-24 08:23:19 +02:00
Daniel Stenberg
5b73f35761
Curl_proxyCONNECT: remove superfluous statement
...
The variable is already assigned, skip the duplicate assignment.
Pointed out by cppcheck.
2014-10-24 08:23:19 +02:00
Guenter Knauf
ede9884c59
Added MinGW support to build with nghttp2.
2014-10-24 04:22:04 +02:00
Guenter Knauf
4b7d499e64
Some cosmetics and simplifies.
2014-10-23 16:27:40 +02:00
Guenter Knauf
2be6941f42
Remove dependency on openssl and cut.
...
Prefer usage of Perl modules for sha1 calculation since there
might be systems where openssl is not installed or not in path.
If openssl is used for sha1 calculation then dont rely on cut
since it is usually not available on other systems than Linux.
2014-10-23 15:22:56 +02:00
Daniel Stenberg
9f5744a72f
gnutls: removed dead code
...
Bug: http://curl.haxx.se/bug/view.cgi?id=1437
Reported-by: Julien
2014-10-23 10:01:58 +02:00
Daniel Stenberg
e36115d688
Curl_rand: Uninitialized variable: r
...
This is not actually used uninitialized but we silence warnings.
Bug: http://curl.haxx.se/bug/view.cgi?id=1437
Reported-by: Julien
2014-10-23 10:01:36 +02:00
Kamil Dudka
0aecdf6828
nss: reset SSL handshake state machine
...
... when the handshake succeeds
This fixes a connection failure when FTPS handle is reused.
2014-10-20 18:55:51 +02:00
Steve Holme
fa9f5ed982
ntlm: Fixed empty type-2 decoded message info text
...
Updated the info text when the base-64 decode of the type-2 message
returns a null buffer to be more specific.
2014-10-16 20:30:08 +01:00
Steve Holme
72147c62f7
ntlm: Fixed empty/bad base-64 decoded buffer return codes
2014-10-16 20:24:56 +01:00
Steve Holme
7a91296f1d
ntlm: Avoid unnecessary buffer allocation for SSPI based type-2 token
2014-10-16 20:19:33 +01:00
Steve Holme
d4ea51734e
sasl_sspi: Fixed some typos
2014-10-15 21:58:30 +01:00
Steve Holme
2ae142e663
sasl_sspi: Fixed Kerberos response buffer not being allocated when using SSO
2014-10-15 21:24:10 +01:00
Bruno Thomsen
3621045631
mk-ca-bundle: added SHA-384 signature algorithm
...
Certificates based on SHA-1 are being phased out[1].
So we should expect a rise in certificates based on SHA-2.
Adding SHA-384 as a valid signature algorithm.
[1] https://blog.mozilla.org/security/2014/09/23/phasing-out-certificates-with-sha-1-based-signature-algorithms/
Signed-off-by: Bruno Thomsen <bth@kamstrup.dk>
2014-10-15 13:23:22 +02:00
Patrick Monnerat
473322ec66
Implement pinned public key in GSKit backend
2014-10-14 14:58:26 +02:00
Daniel Stenberg
628290b5e6
cleanups: reduce variable scope
...
cppcheck pointed these out.
2014-10-14 09:44:06 +02:00
Daniel Stenberg
c2d5f2ef98
singleipconnect: remove dead assignment never used
...
cppcheck pointed this out.
2014-10-14 09:16:28 +02:00
Daniel Stenberg
9d64ab7d5a
pinning: minor code style policing
2014-10-13 22:22:49 +02:00
Patrick Monnerat
357ff4d1dc
Factorize pinned public key code into generic file handling and backend specific
2014-10-13 18:34:51 +02:00