mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
handle no-more-sessions in server
Signed-off-by: Ahsen Kamal <itsahsenkamal@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -191,7 +191,8 @@ enum ssh_global_requests_e {
|
||||
SSH_GLOBAL_REQUEST_UNKNOWN=0,
|
||||
SSH_GLOBAL_REQUEST_TCPIP_FORWARD,
|
||||
SSH_GLOBAL_REQUEST_CANCEL_TCPIP_FORWARD,
|
||||
SSH_GLOBAL_REQUEST_KEEPALIVE
|
||||
SSH_GLOBAL_REQUEST_KEEPALIVE,
|
||||
SSH_GLOBAL_REQUEST_NO_MORE_SESSIONS
|
||||
};
|
||||
|
||||
enum ssh_publickey_state_e {
|
||||
|
||||
@@ -71,10 +71,13 @@ enum ssh_pending_call_e {
|
||||
};
|
||||
|
||||
/* libssh calls may block an undefined amount of time */
|
||||
#define SSH_SESSION_FLAG_BLOCKING 1
|
||||
#define SSH_SESSION_FLAG_BLOCKING 0x0001
|
||||
|
||||
/* Client successfully authenticated */
|
||||
#define SSH_SESSION_FLAG_AUTHENTICATED 2
|
||||
#define SSH_SESSION_FLAG_AUTHENTICATED 0x0002
|
||||
|
||||
/* Do not accept new session channels (no-more-sessions@openssh.com) */
|
||||
#define SSH_SESSION_FLAG_NO_MORE_SESSIONS 0x0004
|
||||
|
||||
/* codes to use with ssh_handle_packets*() */
|
||||
/* Infinite timeout */
|
||||
|
||||
Reference in New Issue
Block a user