diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-01-16 09:06:56 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-01-16 09:13:06 +0100 |
commit | 5229253f8684026b01db4cc6cdf3c149a6358984 (patch) | |
tree | 221ba7585ac8e2999520b7bbd74325cbc156ee1d /include/libssh/libssh.h | |
parent | a1c4fc07d43fb7a7e1e91bfdadbd3dc62b8ce462 (diff) | |
download | libssh-5229253f8684026b01db4cc6cdf3c149a6358984.tar.gz libssh-5229253f8684026b01db4cc6cdf3c149a6358984.tar.xz libssh-5229253f8684026b01db4cc6cdf3c149a6358984.zip |
channel: Fix the name scheme of the forward functions.
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r-- | include/libssh/libssh.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 2b125f23..a34e9ee4 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -405,10 +405,19 @@ LIBSSH_API const char *ssh_copyright(void); LIBSSH_API void ssh_disconnect(ssh_session session); LIBSSH_API char *ssh_dirname (const char *path); LIBSSH_API int ssh_finalize(void); -LIBSSH_API ssh_channel ssh_forward_accept(ssh_session session, int timeout_ms); -LIBSSH_API ssh_channel ssh_channel_accept_forward(ssh_session session, int timeout_ms, int *destination_port); -LIBSSH_API int ssh_forward_cancel(ssh_session session, const char *address, int port); -LIBSSH_API int ssh_forward_listen(ssh_session session, const char *address, int port, int *bound_port); + +/* REVERSE PORT FORWARDING */ +LIBSSH_API ssh_channel ssh_channel_accept_forward(ssh_session session, + int timeout_ms, + int *destination_port); +LIBSSH_API int ssh_channel_cancel_forward(ssh_session session, + const char *address, + int port); +LIBSSH_API int ssh_channel_listen_forward(ssh_session session, + const char *address, + int port, + int *bound_port); + LIBSSH_API void ssh_free(ssh_session session); LIBSSH_API const char *ssh_get_disconnect_message(ssh_session session); LIBSSH_API const char *ssh_get_error(void *error); @@ -429,7 +438,12 @@ LIBSSH_API int ssh_get_publickey_hash(const ssh_key key, unsigned char **hash, size_t *hlen); +/* DEPRECATED FUNCTIONS */ SSH_DEPRECATED LIBSSH_API int ssh_get_pubkey_hash(ssh_session session, unsigned char **hash); +SSH_DEPRECATED LIBSSH_API ssh_channel ssh_forward_accept(ssh_session session, int timeout_ms); +SSH_DEPRECATED LIBSSH_API int ssh_forward_cancel(ssh_session session, const char *address, int port); +SSH_DEPRECATED LIBSSH_API int ssh_forward_listen(ssh_session session, const char *address, int port, int *bound_port); + LIBSSH_API int ssh_get_random(void *where,int len,int strong); LIBSSH_API int ssh_get_version(ssh_session session); |