summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* curl_share_cleanup: avoid compiler warningDaniel Stenberg2011-10-041-1/+1
| | | | Move the variable declaration to within the #ifdef
* struct Curl_share: provide sslsession unconditionallyDaniel Stenberg2011-10-041-2/+0
| | | | | | | It makes much nicer and less convuluted code everywhere if this struct member is always present even when libcurl is built without SSL support. This reverts parts of commit 15e3e451702396e
* ftp: improved the failed PORT host name resolved error messageDaniel Stenberg2011-10-041-1/+1
|
* codepolicingDaniel Stenberg2011-10-031-7/+9
|
* sspi build fixDaniel Stenberg2011-10-031-0/+2
| | | | define away Curl_ntlm_sspi_cleanup() when no windows SSPI build
* smtp: Added support for NTLM authenticationSteve Holme2011-10-032-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | Modified smtp_endofresp() to detect NTLM from the server specified list of supported authentication mechanisms. Modified smtp_authenticate() to start the sending of the NTLM data. Added smtp_auth_ntlm_type1_message() which creates a NTLM type-1 message. This function is used by authenticate() to start the sending of data and by smtp_state_auth_ntlm_resp() when the AUTH command doesn't contain the type-1 message as part of the initial response. This lack of initial response can happen if an OOM error occurs or the type-1 message is longer than 504 characters. As the main AUTH command is limited to 512 character the data has to be transmitted in two parts; one containing the AUTH NTLM and the second containing the type-1 message. Added smtp_state_auth_ntlm_type2msg_resp() which handles the incoming type-2 message and sends an outgoing type-3 message. This type-2 message is sent by the server in response to our type-1 message. Modified smtp_state_auth_resp() to handle the response to: the AUTH NTLM without the initial response and the type-2 response. Modified smtp_disconnect() to cleanup the NTLM SSPI stack.
* Curl_ntlm_create_typeX_message: Added the outlen parameterSteve Holme2011-10-033-10/+17
| | | | | | | | | Added the output message length as a parameter to both Curl_ntlm_create_type1_message() and Curl_ntlm_create_type3_message() for use by future functions that require it. Updated curl_ntlm.c to cater for the extra parameter on these two functions.
* smtp: General tidy up ready for adding NTLM supportSteve Holme2011-10-031-71/+72
| | | | | | | | | | | Changed the name of variable l, in several functions, which represents the length of strings being sent to the server, to len which is more meaningful and consistent with other code in smtp.c and elsewhere. Reworked smtp_authenticate() to be simpler and easier to follow. Variables and now initialised in their definitions and if no username and password are specified the function sets the state to SMTP_STOP and returns immediately, rather than being part of a huge if statement.
* smtp_mail: fixed another memory leakSteve Holme2011-10-031-2/+5
| | | | ... introduced in 7f304ab84f560c
* share: don't use SSL unless enabledDaniel Stenberg2011-10-033-5/+26
| | | | | | | | Don't even declare the struct members for disabled features Introducing the CURLSHE_NOT_BUILT_IN return code for the share interface when trying to set a sharing option that has been disabled (or not enabled) in the library.
* multi: progress function abort must close connectionDaniel Stenberg2011-10-022-5/+12
| | | | | | | | | | | | | When the progress function returns to cancel the request, we must mark the connection to get closed and it must do to the DONE state. do_init() must be called as early as possible so that state variables for new connections are reset early. We could otherwise see that the old values were still there when a connection was to be disconnected very early and it would make it behave wrongly. Bug: http://curl.haxx.se/mail/lib-2011-10/0006.html Reported by: Vladimir Grishchenko
* multi_runsingle: change state on callback abortDaniel Stenberg2011-09-301-1/+3
| | | | | Reported by: Marcin Adamski Bug: http://curl.haxx.se/mail/lib-2011-09/0329.html
* Fix SSL disabled builds broken with 'SSL session sharing' commit 5793bc37Yang Tse2011-09-301-0/+1
|
* smtp_mail: fix memory leakDaniel Stenberg2011-09-291-3/+13
| | | | ... introduced in 7f304ab84f560c
* smtp_mail: Added support to MAIL FROM for the optional SIZE parameterSteve Holme2011-09-291-7/+19
| | | | | | The size of the email can now be set via CURLOPT_INFILESIZE. This allows the email to be rejected by the server, if supported, and the maximum size has been configured on the server.
* SSL session sharing support addedAlejandro Alvarez2011-09-285-8/+80
| | | | With locking, plus test, plus documentation
* Added SPNEGO to NetWare build.Guenter Knauf2011-09-271-0/+12
|
* remove short-lived CURL_WRITEFUNC_OUT_OF_MEMORYYang Tse2011-09-263-28/+3
|
* smtp_connect: use defined buffer length for hostnameSteve Holme2011-09-261-1/+1
|
* Curl_ntlm_create_type3_message: Tidied up the use of Curl_gethostname.Steve Holme2011-09-251-8/+3
| | | | | | | | | | Removed the code that striped off the domain name when Curl_gethostname returned the fully qualified domain name as the function has been updated to return the un-qualified host name. Replaced the use of HOSTNAME_MAX as the size of the buffer in the call to Curl_gethostname with sizeof(host) as this is safer should the buffer size ever be changed.
* HOSTNAME_MAX: Moved to curl_gethostname.hSteve Holme2011-09-253-6/+4
| | | | | Moved HOSTNAME_MAX #define into curl_gethostname.h rather than being locally defined in curl_gethostname.c, curl_ntlm_msgs.c and smtp.c.
* Q&D fix header inclusion orderYang Tse2011-09-251-1/+1
|
* allow write callbacks to indicate OOM to libcurlYang Tse2011-09-253-3/+28
| | | | | | Allow (*curl_write_callback) write callbacks to return CURL_WRITEFUNC_OUT_OF_MEMORY to properly indicate libcurl of OOM conditions inside the callback itself.
* curl_multi_fdset: avoid FD_SET out of boundsDaniel Stenberg2011-09-253-16/+19
| | | | | | | | If a socket is larger than FD_SETSIZE, avoid using FD_SET() on the platforms where this is possible. Bug: http://curl.haxx.se/bug/view.cgi?id=3413274 Reported by: Tim Starling
* NetWare makefile tweaks to select different builds.Guenter Knauf2011-09-251-0/+37
|
* http header: allow Content-Length to be replacedDaniel Stenberg2011-09-241-64/+68
| | | | | | In some cases Content-Length: couldn't be replaced by an application Also, indented some code properly
* Curl_pgrsStartNow: keep HEADERS_OUT setDaniel Stenberg2011-09-221-1/+2
| | | | | | | To avoid that the progress meter headers get output between each transfer, make sure the bits gets kept when (re-)inited. Reported by: Christopher Stone
* Added NetWare examples makefile.Guenter Knauf2011-09-221-0/+4
|
* NTLM_WB: fix disabling of NTLM_WB when NTLM is disabledYang Tse2011-09-224-13/+13
|
* smtp: without a MAIL_FROM, send blank MAIL FROMGisle Vanem2011-09-211-1/+5
| | | | | | I think curl should ignore this case and smtp.c should test for this. Since RFC-2821 seems to allow a "null reverse-path". Ref. "MAIL FROM:<>" in section 3.7, page 25.
* lib/http: add missing whitespace in verbose outputDave Reisner2011-09-211-1/+1
| | | | | | | | Example: * upload completely sent off: 35out of 35 bytes Should be: * upload completely sent off: 35 out of 35 bytes
* Changed suffix rules to pattern rules.Guenter Knauf2011-09-211-3/+2
| | | | Suffix rules cannot have any prerequisites of their own.
* Added dependency so that curlbuild.h is created.Guenter Knauf2011-09-211-1/+1
|
* Some more MinGW build tweaks.Guenter Knauf2011-09-211-4/+16
| | | | | Added envvars to specify OpenSSL include, libpath and lib. Added rule to create curlbuild.h from curlbuild.h.dist.
* A bunch of MinGW build tweaks.Guenter Knauf2011-09-201-21/+26
| | | | All paths to dependencies now quoted; synced examples makefile.
* Changed Windows 64bit OS define to x86_64.Guenter Knauf2011-09-201-2/+2
| | | | | Also added check for __x86_64__ define since MinGW64 seems to define the _M_X64 macro through a header not available for config-win32.h.
* Also skip certs masked as CKT_NSS_TRUST_UNKNOWN.Guenter Knauf2011-09-201-1/+2
| | | | Fix posted by Tomas Hoger <thoger redhat com>.
* Added _WIN32_WINNT define for IPv6 builds.Guenter Knauf2011-09-201-1/+1
|
* Curl_follow: handle redirects to "//hostname/path"Daniel Stenberg2011-09-201-19/+30
|
* Curl_gethostname: return un-qualified machine nameSteve Holme2011-09-181-6/+37
| | | | | | | | | Fixed Curl_gethostname() so that it always returns the un-qualified machine name rather than being dependent on the socket provider. Note: The return of getenv("CURL_GETHOSTNAME") is also parsed in case the developer / test harness provided a fully qualified domain name as it's value as well.
* Make Curl_safefree() macro assign NULL to given pointer when free'dYang Tse2011-09-151-1/+3
|
* ftp.c: add a couple of failure messagesYang Tse2011-09-141-0/+4
|
* Curl_add_custom_headers: support headers with no datawarp kawada2011-09-131-0/+25
| | | | | | A custom HTTP header ending in a semicolon instead of a colon will be treated as a header to be added without any data portion.
* codestyle: minor whitespace fixDaniel Stenberg2011-09-131-2/+2
|
* polarssl: build with PolarSSL-1.0.0Jeff Pohlmeyer2011-09-131-4/+22
| | | | | | | | | | With this fix, it should work for PolarSSL-1.0.0 (and SVN-1091 trunk) and retain compatibility with earlier versions. (Tested with 0.14.1) PolarSSL still doesn't play nicely with curl's CA bundle (we discussed this before) but I was at least able to retrieve the https://www.gmail.com/ login page using a modified ca-certificates.crt file with all 3 versions of PolarSSL.
* ftp.c: fix socket leak torture tests detected 2011-08-30Yang Tse2011-09-121-2/+12
| | | | Also fix inappropriate error handling when sending ftp EPRT or PORT commands.
* spell-checked commentsDaniel Stenberg2011-09-111-15/+14
|
* Updated makefiles to latest libssh2.Guenter Knauf2011-09-113-4/+4
|
* ftp.c: fix ftp active connects which got broken with commit fdf157abdfYang Tse2011-09-101-7/+7
|
* ssh.c: revert needless commit 7b7c45879eYang Tse2011-09-101-57/+3
|