Daniel Stenberg
1ce732e9d6
- I noticed while writing test 541 that the FTP code wrongly did a CWD on the
...
second transfer as it didn't store and remember the "" path from the
previous transfer so it would instead CWD to the entry path as stored. This
worked, but did a superfluous command. Thus, test case 541 now also verifies
this fix.
2007-09-11 22:21:39 +00:00
Daniel Stenberg
cc618e761c
- Bug report #1792649 ( http://curl.haxx.se/bug/view.cgi?id=1792649 ) pointed
...
out a problem with doing an empty upload over FTP on a re-used connection.
I added test case 541 to reproduce it and to verify the fix.
2007-09-11 22:21:12 +00:00
Dan Fandrich
7350f9851a
TFTP now reports the "not defined" TFTP error code 0 as an error,
...
not success.
2007-09-07 20:35:37 +00:00
Dan Fandrich
8147c3659d
Minix doesn't support getsockopt on UDP sockets or send/recv on TCP
...
sockets.
2007-09-05 22:01:57 +00:00
Daniel Stenberg
73e91ce20c
Curl_GetFTPResponse() now checks and properly deals with the fact that the
...
underlying ftp_readresp() function has a separate "cache" where there might
in fact be leftover data...
2007-09-05 21:41:07 +00:00
Dan Fandrich
3fa60164af
Renamed the CURLE_FTP_SSL_FAILED error code to CURLE_USE_SSL_FAILED.
...
Renamed the curl_ftpssl enum to curl_usessl and its enumerated constants,
creating macros for backward compatibility.
2007-08-31 19:36:32 +00:00
Dan Fandrich
ac6e0501c6
Made some of the error strings returned by the *strerror functions more
...
generic, and more consistent with each other.
2007-08-31 17:56:06 +00:00
Dan Fandrich
4f17c58315
Fixed an invalid returned error code added in my last submission.
2007-08-31 17:54:01 +00:00
Dan Fandrich
f6251734fc
Added more accurate error code returns from SFTP operations. Added test
...
case 615 to test an SFTP upload failure.
2007-08-30 23:03:59 +00:00
Dan Fandrich
9f44a95522
Renamed several libcurl error codes and options to make them more general
...
and allow reuse by multiple protocols. Several unused error codes were
removed. In all cases, macros were added to preserve source (and binary)
compatibility with the old names. These macros are subject to removal at
a future date, but probably not before 2009. An application can be
tested to see if it is using any obsolete code by compiling it with the
CURL_NO_OLDIES macro defined.
Documented some newer error codes in libcurl-error(3)
2007-08-30 20:34:57 +00:00
Dan Fandrich
5d4c981e13
Fixed a few compiler warnings. Try to do a slightly better job of
...
cleaning up after an OOM condition in curl_multi_add_handle
2007-08-30 18:26:19 +00:00
Daniel Stenberg
da4a776758
Made Curl_GetFTPResponse() use lots less code and instead use the proper
...
low-level ftp_readresp() function. Hopefully adressing bug #1779054 .
2007-08-30 14:06:00 +00:00
Dan Fandrich
1b66c1da6c
Added lots of consts
2007-08-29 05:36:53 +00:00
Dan Fandrich
8cf0814a14
Fixed some minor type mismatches and missing consts mainly found by splint.
2007-08-27 06:31:28 +00:00
Dan Fandrich
523767660c
Fixed some minor mismatched types found by splint.
2007-08-26 05:53:26 +00:00
Gunter Knauf
327c0d6b1c
bail out with error if someone tries to use another cert than PEM with OpenLDAP.
2007-08-25 12:10:30 +00:00
Gunter Knauf
870842ccee
only link with -lwldap32 if we dont use other LDAP SDKs.
2007-08-25 12:08:38 +00:00
Gunter Knauf
68b215157f
added defines to build with OpenLDAP.
2007-08-24 17:08:49 +00:00
Daniel Stenberg
7cba40b218
Bug report #1779054 ( http://curl.haxx.se/bug/view.cgi?id=1779054 ) pointed
...
out that libcurl didn't deal with large responses from server commands, when
the single response was consisting of multiple lines but of a total size of
16KB or more. Dan Fandrich improved the ftp test script and provided test
case 1006 to repeat the problem, and I fixed the code to make sure this new
test case runs fine.
2007-08-24 14:00:42 +00:00
Patrick Monnerat
d994fcf2b1
Remove leading space in curl_version_info ss_version field.
2007-08-24 09:06:17 +00:00
Daniel Stenberg
a5cb022407
added the two new os400 files
2007-08-23 14:58:10 +00:00
Patrick Monnerat
557cc55f6f
Porting library to OS/400
2007-08-23 14:30:24 +00:00
Gunter Knauf
2d8dba388b
added support for CA cert verification;
...
default now to verify cert unless data->set.ssl.verifypeer is 0.
2007-08-23 00:10:56 +00:00
Daniel Stenberg
91fd2c3bcd
Bug report #1779751 ( http://curl.haxx.se/bug/view.cgi?id=1779751 ) pointed
...
out that doing first a file:// upload and then an FTP upload crashed libcurl
or at best caused furious valgrind complaints. Fixed now by making sure we
free and clear the file-specific struct properly when done with it.
2007-08-22 22:48:41 +00:00
Gisle Vanem
d38891c950
Reversed the 'HAVE_LDAP_URL_PARSE' ifdef statement.
2007-08-22 18:05:46 +00:00
Daniel Stenberg
381e372939
Bug report #1779054 ( http://curl.haxx.se/bug/view.cgi?id=1779054 ) pointed
...
out that libcurl didn't deal with very long (>16K) FTP server response lines
properly. Starting now, libcurl will chop them off (thus the client app will
not get the full line) but survive and deal with them fine otherwise. Test
case 1003 was added to verify this.
2007-08-22 14:18:06 +00:00
Gunter Knauf
5b4f50857a
for now comment the tls_start section...
2007-08-22 10:14:57 +00:00
Gunter Knauf
6f10a718e4
sync libssh2 paths with comments.
2007-08-21 03:04:46 +00:00
Gunter Knauf
658de40930
added targets to create the files missing in CVS which makes calling buildconf.bat obsolete;
...
removed obsolete wsock32 link lib.
2007-08-21 02:42:29 +00:00
Gunter Knauf
fa1c916943
fixed warning with unused var;
...
removed now obsolete defines since we include now ldap headers which define these.
2007-08-20 23:31:26 +00:00
Daniel Stenberg
b132e865b9
Based on a patch by Christian Vogt, the FTP code now sets the upcoming
...
download transfer size much earlier to be possible to get read with
CURLINFO_CONTENT_LENGTH_DOWNLOAD as soon as possible.
2007-08-20 21:54:00 +00:00
Gunter Knauf
d4c4fd6272
compile with ldaps by default since it seems to work fine so far.
2007-08-20 16:34:04 +00:00
Gunter Knauf
acb905231d
fixed ldaps section for OpenLDAP. Still not working, but at least it compiles now, and should serve as base to get it finally working. Also seems that the ifdefs can be arranged some better because the Solaris and Netscape/iPlanet/Mozilla LDAP SDKs seem to be closer to the Novell section than the OpenLDAP one.
2007-08-20 16:30:41 +00:00
Gunter Knauf
c915eac93c
added some comments about the paths and build options;
...
added define to build with ldaps support;
enabled build with the Novell LDAP SDK.
2007-08-20 16:21:51 +00:00
Gunter Knauf
e347cff0e4
added define for ldap_ssl.h.
2007-08-20 12:50:44 +00:00
Gunter Knauf
d79fdbc46e
ignore errors of the RM command; seems that the del command fails on W2K when the file to delete isnt found while on XP it only prints the warning but make continues....
2007-08-19 23:23:50 +00:00
Gunter Knauf
ab13c2f814
added some comments in the makefiles about build options.
2007-08-19 00:26:24 +00:00
Daniel Stenberg
1aa82decea
- Robson Braga Araujo filed bug report #1776232
...
(http://curl.haxx.se/bug/view.cgi?id=1776232 ) about libcurl calling
Curl_client_write(), passing on a const string that the caller may not
modify and yet it does (on some platforms).
2007-08-17 22:31:51 +00:00
Daniel Stenberg
3217809294
Robson Braga Araujo filed bug report #1776235
...
(http://curl.haxx.se/bug/view.cgi?id=1776235 ) about ftp requests with NOBODY
on a directory would do a "SIZE (null)" request. This is now fixed and test
case 1000 was added to verify.
2007-08-17 22:22:43 +00:00
Daniel Stenberg
5a79532aee
Song Ma provided a patch that cures a problem libcurl has when doing resume
...
HTTP PUT using Digest authentication. Test case 5320 and 5322 were also
added to verify the functionality.
2007-08-17 20:21:32 +00:00
Gunter Knauf
29ac001aa6
fixed warning about uninitialized.
2007-08-16 15:23:39 +00:00
Gunter Knauf
ccba0d10b6
added basic ldaps support; for now its ifdef'd with HAVE_LDAP_SSL unless we know its fully working, and available with all LDAP SDKs.
...
Win32 requires to have the trusted CA in local keystore - I've not found yet a way to disable the cert check.
2007-08-16 14:08:47 +00:00
Gunter Knauf
7f7e42732d
added define PORT_LDAPS.
2007-08-15 16:17:32 +00:00
Patrick Monnerat
ca410ec2ca
Fix a potential buffer overflow bug in lib/version.c
2007-08-15 14:49:16 +00:00
Gunter Knauf
e5d8693865
added ldap_msgfree() to fix memory leak.
2007-08-15 08:18:37 +00:00
Gunter Knauf
46c92c0b80
added a dependency for libcares if build with ares support;
...
other minor makefile tweaks.
2007-08-14 18:39:26 +00:00
Gunter Knauf
327598e7b4
only include LDAP headers if we build with LDAP support.
2007-08-14 16:31:20 +00:00
Gunter Knauf
11caaad5f9
added -lwldap32 to link libs.
2007-08-14 14:48:25 +00:00
Gunter Knauf
3e0845e182
changed autoload dependent LDAP NLM.
2007-08-14 13:01:40 +00:00
Gunter Knauf
a2c7abea6c
trial to enable LDAP support again with patched Novell headers.
2007-08-14 12:02:10 +00:00