aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.c
AgeCommit message (Collapse)Author
2007-07-04Fix spelling error in error messageJames Housley
2007-06-27Add two new options for the SFTP/SCP/FILE protocols: CURLOPT_NEW_FILE_PERMSJames Housley
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-27removed trailing spaces.Gunter Knauf
2007-06-27fixed wrong var nameGunter Knauf
2007-06-26The results for a list only directory should be sent to the callbackJames Housley
2007-06-26ftp_list_only mode should list all file types, not just directories.James Housley
2007-06-20If the creation of rsa and rsa_pub fail due to memory, don't tryJames Housley
other authentication methods. Terminate with a memory error.
2007-06-19Check both variables, not the same one twice. Pointed out by Colin HogbenJames Housley
2007-06-19extra precaution to make PATH_MAX always be definedDaniel Stenberg
2007-06-19Change rsa and rsa_pub from static arrays in ssh_conn to be dynamicallyJames Housley
allocated when needed
2007-06-18If LIBSSH2DEBUG was defined "i" was undefinedJames Housley
2007-06-16Curl_ssh_connect() was using an uninitialized variable in one location.James Housley
Caught by the auto-builds
2007-06-14Remove duplicate code that was left in as part of 1.35. This codeJames Housley
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-14BUG FIX: When reading a directory listing that contains symlinksJames Housley
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-13Restore functionality mistakenly removed in the previous commitJames Housley
2007-06-13libssh2_session_free() returns void. Fix "#endif".Gisle Vanem
2007-06-13Commit Tom Regner's code for SFTP create missing directories. This patchJames Housley
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-13Add a define to protect the state machine from older versions of libssh2,James Housley
ie 0.14, that don't know about newer constants used in the state machine.
2007-06-12* Updates for the latest version of libssh2, specificallyJames Housley
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-12While connect and transfer works fine in non-blocking mode for the testJames Housley
suite, transfer fails in the real world. So after connect set to blocking as full non-blocking is migrated out.
2007-06-12Prevent the state machine from getting stuck in SSH_AUTH_HOST_INITJames Housley
2007-06-12Convert Curl_ssh_connect() to run in a state machine forJames Housley
LIBSSH2_APINO >= 200706012030. More to come...
2007-06-11Squelsh some warnings for libssh older than 0.1.5.Gisle Vanem
2007-06-08Curl_scp_done() needs to call libssh2_channel_free() to prevent aJames Housley
memory leak, and it is the right thing to do.
2007-06-08Fix to work with the latest CVS version of libssh2James Housley
* 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-05-15Added support for quote commands before a transfer using SFTP and testDan Fandrich
case 614. Allow SFTP quote commands chmod, chown, chgrp to set a value of 0.
2007-05-09Kristian Gunstone fixed a problem where overwriting an uploaded file withDan Fandrich
sftp didn't truncate it first, which would corrupt the file if the new file was shorter than the old.
2007-05-08CURLE_FTP_COULDNT_STOR_FILE is now known as CURLE_UPLOAD_FAILED. This isDaniel Stenberg
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-04-18clarify the comment about libssh2_sftp_write's return typeDaniel Stenberg
2007-04-18- James Housley made SFTP uploads use libssh2's non-blocking API (if available)Daniel Stenberg
2007-04-08Nick Zitzmann did ssh.c cleanupsDaniel Stenberg
2007-04-06Fixed a few memory leaks in OOM conditions.Dan Fandrich
Made libssh2 logging more verbose when debugging is enabled.
2007-04-04Fixed a memory leak and improper shutdown on SFTP post-quote command failure.Dan Fandrich
2007-04-02Nick Zitzmann made CURLOPT_POSTQUOTE work for SFTP as well.Daniel Stenberg
2007-03-29Send an EOF message before closing a channel, as recommended by RFC4254.Dan Fandrich
Enable libssh2 tracing when ssh debugging is turned on.
2007-03-24Fixed a couple of compile problems.Dan Fandrich
2007-03-23Added --pubkey option to curl and made --key also work for SCP/SFTP,Dan Fandrich
plus made --pass work on an SSH private key as well.
2007-03-23Don't shut down sftp in an error if it was never started.Dan Fandrich
2007-03-15Fixed some memory leaks in various error paths.Dan Fandrich
2007-03-15Fixed a memory leak.Dan Fandrich
2007-03-14Fixed a NULL pointer dereference on sftp initialization failure.Dan Fandrich
Added some more debug logs.
2007-02-26Removed inclusion of <sys/types.h> and <sys/stat.h> in .c-filesGisle Vanem
since they're already included through "setup.h".
2007-02-07SCP upload done non-blockingDaniel Stenberg
2007-02-06read SFTP with the non-blocking APIDaniel Stenberg
2007-02-02prefer using the (upcoming) non-blocking libssh2 APIDaniel Stenberg
2007-01-28silence compiler warningsDaniel Stenberg
2007-01-28another small fix to directory listing output; disabled CURL_LIBSSH2_DEBUG.Gunter Knauf
2007-01-27fix sftp directory listing so that it works without -v and is redirectable ↵Gunter Knauf
with -o/-O.
2007-01-27tell us what we put out here...Gunter Knauf
2007-01-23very minor indent changeDaniel Stenberg