14#ifndef ZEPHYR_INCLUDE_SHELL_SHELL_SSH_H_
15#define ZEPHYR_INCLUDE_SHELL_SHELL_SSH_H_
33#define SHELL_SSH_MAX_PASSWORD_LEN 32
78#define SHELL_SSH_GET_NAME(_name) _name##_shell_ssh
90#define SHELL_SSH_DEFINE(_name) \
91 static struct shell_ssh SHELL_SSH_GET_NAME(_name); \
92 static struct shell_transport _name = { \
93 .api = &shell_ssh_transport_api, \
94 .ctx = &_name##_shell_ssh, \
113#if defined(CONFIG_SSH_SERVER)
114int shell_sshd_event_callback(
struct ssh_server *ssh_server,
117int shell_sshd_transport_event_callback(
struct ssh_transport *transport,
void(* shell_transport_handler_t)(enum shell_transport_evt evt, void *context)
Shell transport event handler callback.
Definition shell.h:831
#define SHELL_SSH_MAX_PASSWORD_LEN
Maximum password length supported by the shell SSH transport.
Definition shell_ssh.h:33
BSD Sockets compatible API definitions.
Header file for the shell subsystem.
SSH transport user data.
Definition shell_ssh.h:56
int ssh_instance
Instance of the SSH connection (could be client or server).
Definition shell_ssh.h:68
struct shell_ssh * ssh
Shell SSH transport API.
Definition shell_ssh.h:60
bool in_use
Is this context in use (server-side pool tracking).
Definition shell_ssh.h:70
struct ssh_transport * transport
SSH transport associated with this user data.
Definition shell_ssh.h:64
struct ssh_channel * channel
SSH channel associated with this transport.
Definition shell_ssh.h:62
const struct shell * sh
Shell instance associated with this transport.
Definition shell_ssh.h:58
struct shell_ssh_passwd password
SSH server password storage.
Definition shell_ssh.h:66
SSH password storage.
Definition shell_ssh.h:43
size_t len
Length of the password stored in the buffer.
Definition shell_ssh.h:47
char buf[32+1]
Buffer to hold the password.
Definition shell_ssh.h:45
SSH transport API.
Definition shell_ssh.h:100
void * context
Transport context.
Definition shell_ssh.h:106
struct ssh_channel * ssh_channel
SSH channel.
Definition shell_ssh.h:104
shell_transport_handler_t handler
Transport handler.
Definition shell_ssh.h:102
bool in_use
Is this transport in use.
Definition shell_ssh.h:108
Unified shell transport interface.
Definition shell.h:864
Shell instance internals.
Definition shell.h:1129
SSH server event.
Definition server.h:64
SSH transport event information.
Definition common.h:164