aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2015-01-04ldap: Fixed support for Unicode DN in Win32 search callSteve Holme
2015-01-04ldap: Fixed Unicode user and password in Win32 bind callsSteve Holme
2015-01-04ldap: Fixed Unicode host name in Win32 initialisation callsSteve Holme
2015-01-04ldap: Use host.dispname for infof() connection failure messagesSteve Holme
As host.name may be encoded use dispname for infof() failure messages.
2015-01-03ldap: Prefer 'CURLcode result' for curl result codesSteve Holme
2015-01-03ldap: Pass write length in all Curl_client_write() callsSteve Holme
As we get the length for the DN and attribute variables, and we know the length for the line terminator, pass the length values rather than zero as this will save Curl_client_write() from having to perform an additional strlen() call.
2015-01-03ldap: Fixed attribute memory leaks on failed client writeSteve Holme
Fixed memory leaks from commit 086ad79970 as was noted in the commit comments.
2015-01-03ldap: Fixed DN memory leaks on failed client writeSteve Holme
Fixed memory leaks from commit 086ad79970 as was noted in the commit comments.
2015-01-02curl_ntlm_core.c: Fixed compilation warning from commit 1cb17b2a5dSteve Holme
curl_ntlm_core.c:146: warning: passing 'DES_cblock' (aka 'unsigned char [8]') to parameter of type 'char *' converts between pointers to integer types with different sign
2015-01-02ntlm: Use extend_key_56_to_64() for all cryptography enginesSteve Holme
Rather than duplicate the code in setup_des_key() for OpenSSL and in extend_key_56_to_64() for non-OpenSSL based crypto engines, as it is the same, use extend_key_56_to_64() for all engines.
2015-01-02curl_ntlm_core.c: Fixed compilation warningSteve Holme
curl_ntlm_core.c:458: warning: 'ascii_uppercase_to_unicode_le' defined but not used
2015-01-02endian: Fixed bit-shift in 64-bit integer read functionsSteve Holme
From commit 43792592ca and 4bb5a351b2. Reported-by: Michael Osipov
2015-01-01smb: Use endian functions for reading NBT and message size valuesSteve Holme
2015-01-01endian: Added big endian read functionsSteve Holme
2015-01-01endian: Added 64-bit integer read functionSteve Holme
2015-01-01smb.c: Fixed compilation warningsSteve Holme
smb.c:780: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign smb.c:781: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign smb.c:804: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign
2014-12-31smb: Use endian functions for reading length and offset valuesSteve Holme
2014-12-31endian: Added 16-bit integer write functionSteve Holme
2014-12-31endian: Fixed Linux compilation issuesSteve Holme
Having files named endian.[c|h] seemed to cause issues under Linux so renamed them both to have the curl_ prefix in the filenames.
2014-12-31endian: Added standard function descriptionsSteve Holme
2014-12-31endian: Renamed functions for curl API naming conventionSteve Holme
2014-12-31endian: Moved write functions to new moduleSteve Holme
2014-12-31endian: Moved read functions to new moduleSteve Holme
2014-12-31endian: Introduced endian moduleSteve Holme
To allow the little endian functions, currently used in two of the NTLM source files, to be used by other modules such as the SMB module.
2014-12-30vtls: Use '(void) arg' for unused parametersSteve Holme
Prefer void for unused parameters, rather than assigning an argument to itself as a) unintelligent compilers won't optimize it out, b) it can't be used for const parameters, c) it will cause compilation warnings for clang with -Wself-assign and d) is inconsistent with other areas of the curl source code.
2014-12-30smb.c: Fixed compilation warningSteve Holme
smb.c:586: warning: conversion to 'short unsigned int' from 'int' may alter its value
2014-12-30smb: Use the connection's upload bufferBill Nagel
Use the connection's upload buffer instead of allocating our own send buffer.
2014-12-30schannel: Moved the ISC return flag definitions to the SSPI moduleSteve Holme
Moved our Initialize Security Context return attribute definitions to the SSPI module, as a) these can be used by other SSPI based providers and b) the ISC required attributes are defined there.
2014-12-29smb: Close the connection after a failed client writeBill Nagel
2014-12-28darwinssl: Fixed compilation warningSteve Holme
vtls.c:683:43: warning: unused parameter 'data'
2014-12-28sasl_gssapi: Fixed use of dummy username with real usernameSteve Holme
2014-12-28vtls: Fixed compilation warning and an ignored return codeSteve Holme
curl_schannel.h:123: warning: right-hand operand of comma expression has no effect Some instances of the curlssl_close_all() function were declared with a void return type whilst others as int. The schannel version returned CURLE_NOT_BUILT_IN and others simply returned zero, but in all cases the return code was ignored by the calling function Curl_ssl_close_all(). For the time being and to keep the internal API consistent, changed all declarations to use a void return type. To reduce code we might want to consider removing the unimplemented versions and use a void #define like schannel does.
2014-12-27openldap: Prefer use of 'CURLcode result'Steve Holme
2014-12-27openldap: Use 'LDAPMessage *msg' for messagesSteve Holme
This frees up the 'result' variable for CURLcode based result codes.
2014-12-27nss: Don't ignore Curl_extract_certinfo() OOM failureSteve Holme
2014-12-27nss: Don't ignore Curl_ssl_init_certinfo() OOM failureSteve Holme
2014-12-27nss: Use 'CURLcode result' for curl result codesSteve Holme
...and don't use CURLE_OK in failure/success comparisons.
2014-12-27getinfo: Code style policingSteve Holme
2014-12-27getinfo: Use 'CURLcode result' for curl result codesSteve Holme
2014-12-27darwinssl: Use 'CURLcode result' for curl result codesSteve Holme
2014-12-27polarssl: Use 'CURLcode result' for curl result codesSteve Holme
2014-12-27code/docs: Use correct case for IPv4 and IPv6Steve Holme
For consistency, as we seem to have a bit of a mixed bag, changed all instances of ipv4 and ipv6 in comments and documentations to use the correct case.
2014-12-26code/docs: Use Unix rather than UNIX to avoid use of the trademarkSteve Holme
Use Unix when generically writing about Unix based systems as UNIX is the trademark and should only be used in a particular product's name.
2014-12-26ip2ip.c: Fixed compilation warning when IPv6 Scope ID not supportedSteve Holme
if2ip.c:119: warning: unused parameter 'remote_scope_id' ...and some minor code style policing in the same function.
2014-12-26vtls: Don't set cert info count until memory allocation is successfulSteve Holme
Otherwise Curl_ssl_init_certinfo() can fail and set the num_of_certs member variable to the requested count, which could then be used incorrectly as libcurl closes down.
2014-12-26vtls: Use CURLcode for Curl_ssl_init_certinfo() return typeSteve Holme
The return type for this function was 0 on success and 1 on error. This was then examined by the calling functions and, in most cases, used to return CURLE_OUT_OF_MEMORY. Instead use CURLcode for the return type and return the out of memory error directly, propagating it up the call stack.
2014-12-25vtls: Use bool for Curl_ssl_getsessionid() return typeSteve Holme
The return type of this function is a boolean value, and even uses a bool internally, so use bool in the function declaration as well as the variables that store the return value, to avoid any confusion.
2014-12-25schannel: Minor code style policing for castsSteve Holme
2014-12-25schannel: Prefer 'CURLcode result' for curl result codesSteve Holme
2014-12-25cyassl: Prefer 'CURLcode result' for curl result codesSteve Holme