diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-07-29 16:05:45 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-29 16:05:45 +0200 |
commit | ed660c29c348eb2f7f2af21fa562589561cb35f1 (patch) | |
tree | c6dc7795a4026be7aa08110b4775791a75a490fc /include | |
parent | 6f47401173340665e25872bef0b87cedd9812602 (diff) | |
download | libssh-ed660c29c348eb2f7f2af21fa562589561cb35f1.tar.gz libssh-ed660c29c348eb2f7f2af21fa562589561cb35f1.tar.xz libssh-ed660c29c348eb2f7f2af21fa562589561cb35f1.zip |
Check for OpenSSH and implement sftp_symlink correct.
When OpenSSH's sftp-server was implemented, the order of the arguments
to the SSH_FXP_SYMLINK method was inadvertently reversed. Unfortunately,
the reversal was not noticed until the server was widely deployed.
Since fixing this to follow the specification would cause
incompatibility, the current order was retained.
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 1 | ||||
-rw-r--r-- | include/libssh/priv.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 5ed2c670..f4dbe126 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -211,6 +211,7 @@ int ssh_connect(SSH_SESSION *session); void ssh_disconnect(SSH_SESSION *session); int ssh_service_request(SSH_SESSION *session, const char *service); char *ssh_get_issue_banner(SSH_SESSION *session); +int ssh_get_openssh_version(SSH_SESSION *session); /* get copyright informations */ const char *ssh_copyright(void); diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 958b0d04..b01b4e93 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -337,6 +337,7 @@ struct ssh_session { int protoversion; int server; int client; + int openssh; u32 send_seq; u32 recv_seq; /* status flags */ |