summaryrefslogtreecommitdiff
path: root/lib/ssh-libssh.c
Commit message (Collapse)AuthorAgeFilesLines
* sftp: fix indentationViktor Szakats2018-09-041-1/+1
|
* sftp: don't send post-qoute sequence when retrying a connectionPrzemysław Tomaszewski2018-09-041-2/+3
| | | | | Fixes #2939 Closes #2940
* all: s/int/size_t cleanupDaniel Stenberg2018-09-011-4/+4
| | | | | | Assisted-by: Rikard Falkeborn Closes #2922
* ssh-libssh: use FALLTHROUGH to silence gcc8Daniel Stenberg2018-09-011-11/+11
|
* ssh-libssh: fix infinite connect loop on invalid private keyKamil Dudka2018-08-141-0/+1
| | | | | | | | Added test 656 (based on test 604) to verify the fix. Bug: https://bugzilla.redhat.com/1595135 Closes #2879
* ssh-libssh: reduce excessive verbose output about pubkey authKamil Dudka2018-08-141-2/+1
| | | | | | | | | | The verbose message "Authentication using SSH public key file" was printed each time the ssh_userauth_publickey_auto() was called, which meant each time a packet was transferred over network because the API operates in non-blocking mode. This patch makes sure that the verbose message is printed just once (when the authentication state is entered by the SSH state machine).
* libssh: goto DISCONNECT state on error, not SSH_SESSION_FREEDaniel Stenberg2018-07-061-1/+1
| | | | | | | ... because otherwise not everything get closed down correctly. Fixes #2708 Closes #2712
* libssh: include line number in state change debug messagesDaniel Stenberg2018-07-061-3/+14
| | | | Closes #2713
* Curl_debug: remove dead printhost codeDaniel Stenberg2018-06-121-4/+4
| | | | | | | | | The struct field is never set (since 5e0d9aea3) so remove the use of it and remove the connectdata pointer from the prototype. Reported-by: Tejas Bug: https://curl.haxx.se/mail/lib-2018-06/0054.html Closes #2647
* ssh-libssh.c: fix left shift compiler warningDaniel Stenberg2018-05-031-2/+1
| | | | | | | | ssh-libssh.c:2429:21: warning: result of '1 << 31' requires 33 bits to represent, but 'int' only has 32 bits [-Wshift-overflow=] 'len' will never be that big anyway so I converted the run-time check to a regular assert.
* TODO fixed: Detect when called from within callbacksBjörn Stenberg2018-02-151-0/+4
| | | | Closes #2302
* time_t-fixes: remove typecasts to 'long' for info.filetimeDaniel Stenberg2018-02-011-2/+2
| | | | | | | | They're now wrong. Reported-by: Michael Kaufmann Closes #2277
* build: remove HAVE_LIMITS_H checkJay Satiro2018-01-051-2/+0
| | | | | | | | .. because limits.h presence isn't optional, it's required by C89. Ref: http://port70.net/~nsz/c/c89/c89-draft.html#2.2.4.2 Closes https://github.com/curl/curl/pull/2215
* sftp: allow quoted commands to use relative pathsJohn DeHelian2017-12-091-4/+4
| | | | Closes #1900
* libssh: remove dead code in sftp_qouteDaniel Stenberg2017-12-051-113/+107
| | | | | | | | ... by removing a superfluous NULL pointer check that also confuses Coverity. Fixes #2143 Closes #2153
* ssh-libssh.c: please checksrcDaniel Stenberg2017-12-041-1/+1
|
* libssh: fixed dereference in statvfs accessNikos Mavrogiannopoulos2017-12-041-1/+1
| | | | | | | The behavior is now equivalent to ssh.c when SSH_SFTP_QUOTE_STATVFS handling fails. Fixes #2142
* libssh: corrected use of sftp_statvfs() in SSH_SFTP_QUOTE_STATVFSNikos Mavrogiannopoulos2017-12-031-3/+1
| | | | | | | | | The previous code was incorrectly following the libssh2 error detection for libssh2_sftp_statvfs, which is not correct for libssh's sftp_statvfs. Fixes #2142 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* libssh: no need to call sftp_get_error as ssh_get_error is sufficientNikos Mavrogiannopoulos2017-12-031-9/+2
| | | | | | Fixes #2141 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* libssh: fix minor static code analyzer nitsDaniel Stenberg2017-12-021-7/+10
| | | | | | | | | - remove superfluous NULL check which otherwise tricks the static code analyzers to assume NULL pointer dereferences. - fix fallthrough in switch() - indent mistake
* libssh: added SFTP supportNikos Mavrogiannopoulos2017-12-011-14/+1527
| | | | | | | | | | The SFTP back-end supports asynchronous reading only, limited to 32-bit file length. Writing is synchronous with no other limitations. This also brings keyboard-interactive authentication. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Added support for libssh SSH SCP back-endNikos Mavrogiannopoulos2017-12-011-0/+1234
libssh is an alternative library to libssh2. https://www.libssh.org/ That patch set also introduces support for ECDSA ed25519 keys, as well as gssapi authentication. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>