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
Daniel Stenberg
2f8f12e82e
Andrew Wansink provided an NTLM bugfix: in the case the server sets the flag
...
NTLMFLAG_NEGOTIATE_UNICODE, we need to filter it off because libcurl doesn't
unicode encode the strings it packs into the NTLM authenticate packet.
2007-08-14 10:28:21 +00:00
Dan Fandrich
8ee5e95ab1
Removed unused variable.
2007-08-13 16:37:51 +00:00
Patrick Monnerat
22c61d8da6
Simplify and rename internal structure to avoid potential name clash with LDAP header file.
2007-08-13 13:03:08 +00:00
Daniel Stenberg
1b88990cbb
Fixed the LDAP_DEPRECATED #define as suggested by Daniel Johnson, and
...
indented some of the code to curl-style
2007-08-12 22:25:50 +00:00
Gunter Knauf
44dc36cc8f
disable LDAP since we can no longer compile due to header incompatiblities.
2007-08-12 00:48:10 +00:00
Daniel Stenberg
6d3701318d
Allen Pulsifer provided a patch that makes libcurl set the expected download
...
size earlier when doing HTTP downloads, so that applications and the
progress meter etc know get the info earlier in the flow than before.
2007-08-11 21:05:13 +00:00
Daniel Stenberg
d0edb47896
Patrick Monnerat modified the LDAP code and approach in curl. Starting now,
...
the configure script checks for openldap and friends and we link with those
libs just like we link all other third party libraries, and we no longer
dlopen() those libraries. Our private header file lib/ldap.h was renamed to
lib/curl_ldap.h due to this. I set a tag in CVS (curl-7_17_0-preldapfix)
just before this commit, just in case.
2007-08-11 20:57:54 +00:00
Gunter Knauf
b238e0b1b4
fixed warning with gcc 4.x (hopefully); dynamincally imported UseAccurateCaseForPaths() for CLIB port to be stonetime-compatible (NW 3.x).
2007-08-09 22:33:49 +00:00
Gunter Knauf
3f62bfb61d
fixed a warning which MingW gcc 4.2.1.
2007-08-09 21:05:05 +00:00
Gunter Knauf
1866b95b7f
moved ugly CLIB define to nwos.c.
2007-08-08 20:09:08 +00:00
Dan Fandrich
668c204970
Song Ma noted a zlib memory leak in the illegal compressed header
...
countermeasures code path.
2007-08-08 17:51:40 +00:00
Gunter Knauf
d5ed9f787f
blocked ssize_t define for MingW32.
2007-08-08 16:59:43 +00:00
Patrick Monnerat
259f27b09f
Fix getsockname argument type
...
Improve "universal" alignment type in struct memdebug
2007-08-08 10:37:07 +00:00
Dan Fandrich
c669e1ae45
Fixed torture test for test 509
2007-08-07 18:24:49 +00:00
Gunter Knauf
10203cada9
moved HAVE_LONGLONG from makefiles to config-win32.h.
2007-08-07 17:40:56 +00:00
Patrick Monnerat
ad9cb40b6f
Some #if --> #ifdef
...
undef standard *printf before (re)defining them
2007-08-07 12:44:38 +00:00
Dan Fandrich
2e60ca382d
Fixed some icc compiler warnings.
2007-08-07 00:10:27 +00:00
Daniel Stenberg
26af759732
Patrick Monnerat updated the _FORM_DEBUG-enabled code, and I updated comments
...
based on his comments/suggestions.
2007-08-05 21:33:31 +00:00
Gunter Knauf
87fc4ad919
changed to use libssh2 0.16;
...
fixed link order in case libssh2 is build with zlib.
2007-08-04 23:35:23 +00:00
Daniel Stenberg
1926f4573d
Patrick Monnerat fixed curl_easy_escape() and curlx_strtoll() to work on
...
non-ASCII systems.
2007-08-04 20:47:59 +00:00
Dan Fandrich
7fe65aaf5b
Fixed a couple of compiler warnings.
2007-08-04 16:54:58 +00:00
Dan Fandrich
0d3d84e3ff
Refactored CreateConnection() somewhat to reduce its length by splitting
...
it into a few new functions.
Fixed a few leaks in out of memory conditions, including for test case 231.
2007-08-03 22:46:59 +00:00
Gunter Knauf
4aabbc5ac2
some more makefile fixes/changes.
2007-08-03 14:30:02 +00:00
James Housley
e7a50e37d6
Start adding some expanded error conversion of libssh2 errors.
2007-08-03 13:57:37 +00:00
James Housley
9fa05db83b
The previous commit to force the use of libssh2-0.16 by removing
...
LIBSSH2_APINO
2007-08-03 13:46:59 +00:00
Gunter Knauf
7ed58c4636
changed 'rm -f' to 'del /f' so it works without GnuUtils as Peteris Krumins pointed out; changed to use latest external libs.
2007-08-03 12:53:00 +00:00
Daniel Stenberg
252f16db02
remove left-over partly support for libssh2 0.14
2007-08-03 08:25:28 +00:00
Daniel Stenberg
72f5d6ba46
The SSH code now only works with libssh2 0.16 or later. Thus we must not
...
release the next curl until there is a libssh2 0.16 released.
2007-08-03 08:14:51 +00:00
Daniel Stenberg
5ec786b02e
Scott Cantor filed bug report #1766320
...
(http://curl.haxx.se/bug/view.cgi?id=1766320 ) pointing out that the libcurl
code accessed two curl_easy_setopt() options (CURLOPT_DNS_CACHE_TIMEOUT and
CURLOPT_DNS_USE_GLOBAL_CACHE) as ints even though they're documented to be
passed in as longs, and that makes a difference on 64 bit architectures.
2007-08-02 20:10:28 +00:00
Dan Fandrich
035ee257c8
Fixed a compiler warning.
2007-08-02 19:23:35 +00:00
Daniel Stenberg
188b08ca55
Patrick Monnerat's cleanup fix after my alloc-strings commit
2007-08-02 14:42:16 +00:00
Daniel Stenberg
6f750f3b57
Dmitriy Sergeyev reported a regression: resumed file:// transfers broke
...
after 7.16.2. This is much due to the different treatment file:// gets
internally, but now I added test 231 to make it less likely to happen again
without us noticing!
2007-08-02 14:09:08 +00:00
Daniel Stenberg
59c16a570f
argh, Greg Morse pointed out that the NTLM POST fix only worked if VERBOSE
...
was set, this should make it work for all cases!
2007-08-02 11:34:50 +00:00
Daniel Stenberg
50c10aa5bf
Patrick Monnerat and I modified libcurl so that now it *copies* all strings
...
passed to it with curl_easy_setopt()! Previously it has always just refered
to the data, forcing the user to keep the data around until libcurl is done
with it. That is now history and libcurl will instead clone the given
strings and keep private copies.
2007-08-01 21:20:01 +00:00
Daniel Stenberg
006878686c
Greg Morse reported a problem with POSTing using ANYAUTH to a server requiring
...
NTLM, and he provided test code and a test server and we worked out a bug
fix. We failed to count sent body data at times, which then caused internal
confusions when libcurl tried to send the rest of the data in order to
maintain the same connection alive.
(and then I did some minor reformatting of code in lib/http.c)
2007-08-01 12:58:04 +00:00
Daniel Stenberg
f01c6e51f4
Patrick Monnerat restored qssl successful compilation and loading
2007-07-30 21:41:12 +00:00
Dan Fandrich
de55038e33
Properly set USE_SSL on OS/400
2007-07-30 17:08:26 +00:00
Dan Fandrich
ea908c23ae
Fixed compiler warning on non-SSL builds
2007-07-30 17:05:39 +00:00
Daniel Stenberg
f1fa7b8ba4
Bug report #1759542 ( http://curl.haxx.se/bug/view.cgi?id=1759542 ). A bad use
...
of a socket after it has been closed, when the FTP-SSL data connection is taken
down.
2007-07-29 12:54:05 +00:00
Daniel Stenberg
86ff3194fa
added missing part for the qsossl support
2007-07-27 08:33:32 +00:00
Dan Fandrich
48a06d1a7b
Removed unused variable.
2007-07-24 15:23:16 +00:00
Daniel Stenberg
813a1107f4
#if that should be #ifdef
2007-07-23 21:48:27 +00:00
Daniel Stenberg
b3461bab1d
Implemented the parts of Patrick Monnerat's OS/400 patch that introduces
...
support for the OS/400 Secure Sockets Layer library
2007-07-23 21:46:26 +00:00
Dan Fandrich
5ecd56d964
Implemented only the parts of Patrick Monnerat's OS/400 patch that renamed
...
some few internal identifiers to avoid conflicts, which could be useful on
other platforms.
2007-07-23 18:51:22 +00:00
Daniel Stenberg
9af807a5ce
HTTP Digest auth fix on a re-used connection
2007-07-22 10:17:52 +00:00
Dan Fandrich
b465750041
Make the pointers of a few static const arrays const, too, for safety.
2007-07-21 02:08:17 +00:00
Daniel Stenberg
e3377e637a
Ralf S. Engelschall filed bug report #1757328
...
(http://curl.haxx.se/bug/view.cgi?id=1757328 ) and submitted a patch. It turns
out we broke login to FTP servers that don't require (nor understand) PASS
after the USER command
2007-07-20 09:35:58 +00:00
James Housley
2ab854cafd
Fix a loop with PWD
2007-07-20 01:03:49 +00:00
Dan Fandrich
4a2f0fb2be
Made some const arrays static to avoid unnecessary stack usage.
2007-07-20 00:41:12 +00:00
James Housley
ca1356702a
As has been pointed out, err_msg should not be freed here. The actual
...
issue is in libssh2 and not freeing a dynamic error message during cleanup.
2007-07-18 18:31:34 +00:00
Daniel Stenberg
1d728aae2a
Jofell Gallardo posted a libcurl log using FTP that exposed a bug which made
...
a control connection that was deemed "dead" to yet be re-used in a following
request. We must make sure the connection gets closed on this situation.
2007-07-17 20:59:53 +00:00
Gunter Knauf
dab569d76c
make users use the latest OpenSSL and Zlib libraries;
...
added hint to compile with SSPI with MSVC6 without PSDK.
2007-07-15 13:00:39 +00:00
Gunter Knauf
fee4f8c86d
for now unless we do better fixed LIBSSH2_APINO compares to use long constants.
2007-07-14 15:59:01 +00:00
Daniel Stenberg
46c699c483
Colin Hogben filed bug report #1750274
...
(http://curl.haxx.se/bug/view.cgi?id=1750274 ) and submitted a patch for the
case where libcurl did a connect attempt to a non-listening port and didn't
provide a human readable error string back.
2007-07-13 20:17:35 +00:00
Daniel Stenberg
cf5378b366
Daniel Cater made libcurl build with CURL_NO_OLDIES defined (which doesn't
...
define the symbols for backwards source compatibility)
2007-07-13 20:04:53 +00:00
Daniel Stenberg
a67c8b4698
Made the krb5 code build with Heimdal's GSSAPI lib
2007-07-12 21:34:42 +00:00
Daniel Stenberg
cf86f8cb78
Shmulik Regev found an (albeit rare) case where the proxy CONNECT operation
...
could in fact get stuck in an endless loop.
2007-07-12 20:15:38 +00:00
Gunter Knauf
0de56e5535
added nwos.c so that it gets distributed with releases and tarballs.
2007-07-12 10:44:46 +00:00
Daniel Stenberg
d12759c73e
Made CURLOPT_SSL_VERIFYHOST set to 1 acts as described in the documentation:
...
fail to connect if there is no Common Name field found in the remote cert.
We should deprecate the support for this set to 1 anyway soon, since the
feature is pointless and most likely never really used by anyone.
2007-07-11 22:20:46 +00:00
Gunter Knauf
c0095d6dd9
removed now obsolete NETDB_DEFINE_CONTEXT macro calls.
2007-07-11 21:47:31 +00:00
Gunter Knauf
6a88eab067
updated makefile to compile nwos.c.
2007-07-11 21:38:28 +00:00
Gunter Knauf
a4f36558fc
added NetWare-own file to provide some init functions (for now only CLIB);
...
added call to netware_init() in curl_global_init() to make sure it gets called before any library functions get used.
2007-07-11 21:34:22 +00:00
Gunter Knauf
2a1345ae9f
added netdb.h for NetWare CLIB since gethostname() is defined there.
2007-07-11 09:08:03 +00:00
Gunter Knauf
cf61c8d659
fixed endif comment.
2007-07-11 09:03:22 +00:00
Gunter Knauf
c39690486c
fixed endif comment.
2007-07-11 08:55:28 +00:00
Daniel Stenberg
5119fb16d6
Shmulik Regev:
...
The tiny patch below fixes a bug (that I introduced :) which happens
when negotiating authentication with a proxy (probably with web
servers as well) that uses chunked transfer encoding for the 407 error
pages. In this case the ''ignorebody'' flag was ignored (no pun
intended).
2007-07-10 22:45:01 +00:00
Daniel Stenberg
dc2c70be07
Giancarlo Formicuccia reported and fixed a problem with a closed connection
...
to a proxy during CONNECT auth negotiation.
2007-07-10 22:31:13 +00:00
James Housley
8026d94c07
* Finish moving sftp:// into a state machine so it won't block in multi mode
...
* Move scp:// into a state machine so it won't block in multi mode
* When available use the full directory entry from the sftp:// server
2007-07-10 22:26:32 +00:00
Daniel Stenberg
4b1782c371
7.16.4 preps
2007-07-10 21:36:30 +00:00
Gunter Knauf
f84642197f
added better CodeWarrior detection (forgot to add with previos version).
2007-07-09 02:00:39 +00:00
Gunter Knauf
4b0e48cb4e
added better CodeWarrior detection;
...
moved autounload flag so that its used for both lib architectures.
2007-07-08 23:18:47 +00:00
Gunter Knauf
932d38323f
removed some obsolete include paths and defines.
2007-07-07 16:26:02 +00:00
Daniel Stenberg
74ad8516d7
Thomas J. Moore made it build with less warnings
2007-07-06 22:14:29 +00:00
James Housley
7fd4f82a45
Gavrie Philipson provided a patch that will use a more specific error
...
message for an scp:// upload failure. If libssh2 has his matching
patch, then the error message return by the server will be used instead
of a more generic error.
2007-07-05 12:48:34 +00:00
James Housley
29357151af
Fix spelling error in error message
2007-07-04 22:54:29 +00:00
Gunter Knauf
9f21f74fbd
enabled ares build.
2007-07-04 13:45:46 +00:00
Gunter Knauf
70f8068d4d
fixed rule to build libcares when needed.
2007-07-03 00:50:40 +00:00
Gunter Knauf
5a051617f3
some more makefile tweaks and hacks to deal with both lib architectures.
2007-07-02 18:42:14 +00:00
Daniel Stenberg
54967d2a3a
Thomas J. Moore provided a patch that introduces Kerberos5 support in
...
libcurl. This also makes the options change name to --krb (from --krb4) and
CURLOPT_KRBLEVEL (from CURLOPT_KRB4LEVEL) but the old names are still
2007-07-01 22:01:18 +00:00
Daniel Stenberg
667fd9a60b
Song Ma helped me verify and extend a fix for doing FTP over a SOCKS4/5 proxy
2007-07-01 21:28:14 +00:00
Gunter Knauf
892a24f4c4
changed RECV_* / SEND_* defines to correctly reflect NetWare APIs;
...
some more minor Makefile tidyups.
2007-07-01 21:06:41 +00:00
Gunter Knauf
f7676e9667
disabled 64bit type for CLIB build which removes compiler runtime dependency.
2007-07-01 16:55:37 +00:00
Gunter Knauf
73e13ef19d
added lib architecture to NLM description.
2007-07-01 01:33:51 +00:00
Gunter Knauf
e983cd5cd3
added HAVE_SYS_IOCTL_H define; added gcc runtime.
2007-06-30 23:53:54 +00:00
Gunter Knauf
ca3e5a6322
moved includes to setup.h so that the project headers also pick them up (eleminate gcc warning).
2007-06-30 23:45:57 +00:00
Gunter Knauf
c4931601c6
fixed path to Metrowerks tools and runtime since they changed between compiler versions.
2007-06-30 21:20:24 +00:00
Gunter Knauf
afdfa4bed2
minor patches to enable building for NetWare CLIB.
...
sent by Dmitry Mityugov.
2007-06-30 20:08:13 +00:00
Gunter Knauf
3fc6faf1ae
enabled building for NetWare CLIB architecture.
2007-06-30 20:02:51 +00:00
James Housley
aed0cc6f2a
Using fdopen() is a more correct way to implement the CURLOPT_NEW_FILE_PREMS
...
file.c, but the debug interface was missing. This adds the routines needed
to make the memory debuging work for fdopen().
2007-06-28 11:11:29 +00:00
James Housley
4cd7f85410
Add two new options for the SFTP/SCP/FILE protocols: CURLOPT_NEW_FILE_PERMS
...
and CURLOPT_NEW_DIRECTORY_PERMS. These control the premissions for files
and directories created on the remote server. CURLOPT_NEW_FILE_PERMS
defaults to 0644 and CURLOPT_NEW_DIRECTORY_PERMS defaults to 0755
2007-06-27 20:15:48 +00:00
Gunter Knauf
edd35cab5c
removed trailing spaces.
2007-06-27 10:14:00 +00:00
Gunter Knauf
a2060effed
fixed wrong var name
2007-06-27 10:12:48 +00:00
Daniel Stenberg
62f0f5571d
Robert Iakobashvili re-arranged the internal hash code to work with a custom
...
hash function for different hashes, and also expanded the default size for
the socket hash table used in multi handles to greatly enhance speed when
very many connections are added and the socket API is used.
2007-06-26 21:09:28 +00:00
James Housley
7a360de49d
The results for a list only directory should be sent to the callback
2007-06-26 20:23:10 +00:00
James Housley
1be4557694
ftp_list_only mode should list all file types, not just directories.
2007-06-26 19:12:58 +00:00
Daniel Stenberg
6a21738704
gah, adding missing braces, removed silly debug output, added new debug output
2007-06-25 14:17:52 +00:00
Daniel Stenberg
974fa1242a
Adjusted how libcurl treats HTTP 1.1 responses without content-lenth or
...
chunked encoding (that also lacks "Connection: close"). It now simply
assumes that the connection WILL be closed to signal the end, as that is how
RFC2616 section 4.4 point #5 says we should behave.
2007-06-25 13:58:14 +00:00
Daniel Stenberg
af4edf10f5
As reported by "Tro" in http://curl.haxx.se/mail/lib-2007-06/0161.html and
...
http://curl.haxx.se/mail/lib-2007-06/0238.html , libcurl didn't properly do
no-body requests on FTP files on re-used connections properly, or at least
it didn't provide the info back in the header callback properly in the
subsequent requests.
2007-06-24 19:32:33 +00:00
Gunter Knauf
2aed8946b0
made debug flag settable from outside; add allways debug stuff when DB != NDEBUG
2007-06-22 21:10:17 +00:00
Daniel Stenberg
03b03f7b60
remove annoying debug output
2007-06-22 20:24:11 +00:00
Daniel Stenberg
a1b650ad7b
Gerrit Bruchhuser pointed out a warning that the Intel(R) Thread Checker
...
tool reports and it was indeed a legitimate one and it is one fixed. It was
a use of a share without doing the proper locking first.
2007-06-21 14:23:38 +00:00
James Housley
6e7f47da5b
If the creation of rsa and rsa_pub fail due to memory, don't try
...
other authentication methods. Terminate with a memory error.
2007-06-20 11:30:35 +00:00
James Housley
277bab0c7b
Check both variables, not the same one twice. Pointed out by Colin Hogben
2007-06-19 13:23:21 +00:00
Daniel Stenberg
fc3c5dae87
and fix another flaw in the singlecwd case when we get ftp://site.com/, also
...
from the #1739100 bug report
2007-06-19 12:33:28 +00:00
Daniel Stenberg
891dffb528
extra precaution to make PATH_MAX always be defined
2007-06-19 11:50:08 +00:00
James Housley
f0b361ecc1
Change rsa and rsa_pub from static arrays in ssh_conn to be dynamically
...
allocated when needed
2007-06-19 11:31:33 +00:00
James Housley
df7eed16dd
If LIBSSH2DEBUG was defined "i" was undefined
2007-06-18 22:28:40 +00:00
Daniel Stenberg
fe85ae15f3
make the ftp-method multicwd case possible to LIST the root directory of a
...
server!
2007-06-18 21:04:45 +00:00
James Housley
b61b420cb8
Curl_ssh_connect() was using an uninitialized variable in one location.
...
Caught by the auto-builds
2007-06-16 16:58:02 +00:00
Daniel Stenberg
b691102ec7
Shmulik Regev fixed a flaw in the multi interface that occurred when doing
...
HTTP CONNECT over a proxy
2007-06-14 14:42:21 +00:00
James Housley
db5d4bd811
Remove duplicate code that was left in as part of 1.35. This code
...
only affected sftp_sendquote() for the "chgrp/chmod/chown" commands.
This also fixed failure of test 614 on a system that previously failed.
2007-06-14 13:22:00 +00:00
Daniel Stenberg
dc3b3c6916
Make our own definitions of the POLL* defiens and the pollfd struct only get
...
done if the sys/poll.h file is missing, as we have seen machines with poll()
present but without the header file and machines that don't get HAVE_POLL
defined but that do have the sys/poll.h header file...
2007-06-14 11:21:48 +00:00
James Housley
82d3f97659
BUG FIX: When reading a directory listing that contains symlinks
...
with the latest libssh2, the listing would be truncated at the symlink.
Fix by looping on LIBSSH2_ERROR_EAGAIN, like the rest of the calls.
2007-06-14 10:36:53 +00:00
James Housley
f37dc9168a
Restore functionality mistakenly removed in the previous commit
2007-06-13 17:13:44 +00:00
Gisle Vanem
05ba9f9fcd
libssh2_session_free() returns void. Fix "#endif".
2007-06-13 14:01:48 +00:00
James Housley
96f4af4db9
Commit Tom Regner's code for SFTP create missing directories. This patch
...
uses the --ftp-create-dirs flag to control if cURL will try and create
directories that are specified in an upload path, but don't exist.
2007-06-13 12:15:23 +00:00
James Housley
3ec7f8a25a
Add a define to protect the state machine from older versions of libssh2,
...
ie 0.14, that don't know about newer constants used in the state machine.
2007-06-13 11:27:41 +00:00
Daniel Stenberg
375cdf89ad
With lots of help from Rich Rauenza(?) in bug #1733119 , we introduce a fairly
...
complicated work-around for 64bit HPUX compiles. We do the fix using inline
static functions to make them follow the header file properly and thus get
used fine in the test suite too etc.
2007-06-12 21:39:21 +00:00
James Housley
ab7e7144ef
* Updates for the latest version of libssh2, specifically
...
libssh2_sftp_shutdown() and libssh2_session_free() can now return
LIBSSH2_ERROR_EAGAIN.
* Fix the _send() and _recv() return values so non-blocking works
2007-06-12 21:32:45 +00:00
James Housley
6f59e19b91
While connect and transfer works fine in non-blocking mode for the test
...
suite, transfer fails in the real world. So after connect set to blocking
as full non-blocking is migrated out.
2007-06-12 16:15:20 +00:00
James Housley
73c13220ee
Prevent the state machine from getting stuck in SSH_AUTH_HOST_INIT
2007-06-12 13:47:32 +00:00
James Housley
99e0597c7b
Convert Curl_ssh_connect() to run in a state machine for
...
LIBSSH2_APINO >= 200706012030. More to come...
2007-06-12 12:31:10 +00:00
Daniel Stenberg
3247ac1918
remove unused field in the state struct
2007-06-12 08:15:02 +00:00
Daniel Stenberg
d23d686de2
restore the correct timeout time that my previous commit broke
2007-06-11 13:35:33 +00:00
Daniel Stenberg
c8677e9d3f
Properly wait for the c-ares resolve to complete, hopefully the cure for
...
bug #1733955
2007-06-11 13:32:49 +00:00
Gisle Vanem
1dcb99f0f7
constify 'hostname' in init_thread_sync_data(). Simply clear
...
the whole 'tsd' structure on exit in destroy_thread_sync_data().
2007-06-11 04:33:21 +00:00
Gisle Vanem
03bc2d34da
Squelsh some warnings for libssh older than 0.1.5.
2007-06-11 04:07:51 +00:00
James Housley
4f8ebd1673
Curl_scp_done() needs to call libssh2_channel_free() to prevent a
...
memory leak, and it is the right thing to do.
2007-06-08 16:19:21 +00:00
James Housley
cd4e6fbcac
Fix to work with the latest CVS version of libssh2
...
* As of (LIBSSH2_APINO >= 200706012030) there are not *nb() functions
* As of (LIBSSH2_APINO >= 200706012030) most libssh2_*() functions
can return LIBSSH2_ERROR_EAGAIN to indicate that the call would block.
To make the code work as previously, blocking, all the code has been
updated so that when (LIBSSH2_APINO >= 200706012030) it loops simulating
blocking. This allows the existing code to function and not hold up
the upcoming release.
2007-06-08 16:02:57 +00:00
Dan Fandrich
38b490a310
Fixed a compiler warning on uClibc.
2007-06-07 22:24:53 +00:00
Daniel Stenberg
48064f8dee
if we read zero bytes from the proxy, the connection is broken and we need
...
to bail out
2007-06-05 13:42:23 +00:00
Daniel Stenberg
e71378d3c8
mark connect failures as non-connected when ConnectPlease() fails, like when
...
a connection through a socks proxy doesn't work
2007-06-05 13:41:50 +00:00
Daniel Stenberg
b10ff9791b
ouch, two conditionals were turned backwards!
2007-06-01 21:24:34 +00:00
Daniel Stenberg
86a25239ec
do the update timer stuff even when CURLM_CALL_MULTI_PERFORM is returned
2007-06-01 21:01:57 +00:00
Daniel Stenberg
4c663ba9a8
When transferring 500 downloads in parallel with a c-ares enabled build only
...
to find that it crashed miserably, and this was due to some select()isms left
in the code. This was due to API restrictions in c-ares 1.3.x, but with the
upcoming c-ares 1.4.0 this is no longer the case so now libcurl runs much
better with c-ares and the multi interface with > 1024 file descriptors in
use.
2007-05-31 11:34:32 +00:00
Daniel Stenberg
713c9f8602
Feng Tu made (lib)curl support "upload" resuming work for file:// URLs.
2007-05-31 08:59:44 +00:00
Daniel Stenberg
a49e78d9b7
Added CURLMOPT_MAXCONNECTS which is a curl_multi_setopt() option for setting
...
the maximum size of the connection cache maximum size of the multi handle.
2007-05-30 20:04:44 +00:00
Daniel Stenberg
b6820b2674
remove really annoying debug output that makes life miserable when you do
...
hundreds of parallel transfers...
2007-05-30 09:24:06 +00:00
Daniel Stenberg
8bd7197a8f
Primarily this fixes an off-by-one buffer overwrite (rare but still existing).
...
I also switched from calloc() to malloc() as a minor performance boost since
the rest of the code fills in the structs fine anyway - and they must for the
case when we use the stack-based auto variable array instead of the allocated
one.
I made the loop filling in poll_fds[] break when poll_nfds is reached as a
minor speed improvement.
2007-05-26 22:02:29 +00:00
Daniel Stenberg
fe1fe64fd4
Rob Crittenden fixed bug #1705802
...
(http://curl.haxx.se/bug/view.cgi?id=1705802 ), which was filed by Daniel
Black identifying several FTP-SSL test cases fail when we build libcurl with
NSS for TLS/SSL. Listed as #42 in KNOWN_BUGS.
2007-05-25 21:56:27 +00:00
Daniel Stenberg
c25da51913
Song Ma filed bug report #1724016
...
(http://curl.haxx.se/bug/view.cgi?id=1724016 ) noticing that downloading
glob-ranges for TFTP was broken in CVS.
2007-05-24 21:11:18 +00:00
Daniel Stenberg
05ab8d291c
stay within 80 cols
2007-05-24 21:11:00 +00:00
Daniel Stenberg
96c093f27c
Andre Guibert de Bruet fixed a memory leak when PKCS #12 parsing failed
2007-05-22 20:46:51 +00:00
Daniel Stenberg
a9d49769ff
Andre Guibert de Bruet fixed a memory leak in the function that verifies the
...
peer's name in the SSL certificate when built for OpenSSL. The leak happens
for libcurls with CURL_DOES_CONVERSIONS enabled that fail to convert the CN
name from UTF8.
2007-05-22 19:51:44 +00:00
Daniel Stenberg
d7616d8a0a
WaitForSingleObject() uses a millisecond timeout and CURL_TIMEOUT_RESOLVE is
...
counted in seconds...
2007-05-20 22:11:47 +00:00
Daniel Stenberg
826bbfc01c
better fix for the dl/ul counters
2007-05-18 10:40:43 +00:00
Daniel Stenberg
250f9670b7
Feng Tu reported that curl -w did wrong on TFTP transfers in
...
bug report #1715394 (http://curl.haxx.se/bug/view.cgi?id=1715394 ), and the
transfer-related info "variables" were indeed overwritten with zeroes wrongly
and have now been adjusted. The upload size still isn't accurate.
2007-05-18 10:32:48 +00:00
Daniel Stenberg
ed4936fd30
bail out with error codes on failures
2007-05-18 10:12:57 +00:00
Daniel Stenberg
8479785620
Feng Tu pointed out a division by zero error in the TFTP connect timeout
...
code for timeouts less than fice seconds, and also provided a fix for it.
2007-05-17 21:40:08 +00:00
Dan Fandrich
0427e94465
Added support for compiling under Minix 3.1.3 using ACK.
2007-05-17 06:04:44 +00:00
Dan Fandrich
3fef839f75
Added call to setvbuf (disabled by default for speed) to flush the
...
memdebug log file after every line and avoid losing the last few log
entries if curl crashes.
2007-05-15 00:36:56 +00:00
Dan Fandrich
ea43bb013b
Added support for quote commands before a transfer using SFTP and test
...
case 614.
Allow SFTP quote commands chmod, chown, chgrp to set a value of 0.
2007-05-15 00:28:50 +00:00
Dan Fandrich
41ba7666f0
Kristian Gunstone fixed a problem where overwriting an uploaded file with
...
sftp didn't truncate it first, which would corrupt the file if the new
file was shorter than the old.
2007-05-09 18:24:27 +00:00
Daniel Stenberg
1b7f00b2a6
CURLE_FTP_COULDNT_STOR_FILE is now known as CURLE_UPLOAD_FAILED. This is
...
because I just made SCP uploads return this value if the file size of
the upload file isn't given with CURLOPT_INFILESIZE*. Docs updated to
reflect this news, and a define for the old name was added to the public
header file.
2007-05-08 11:34:31 +00:00