9#ifndef PROTOCORE_CLIENT_CLIENT_H
10#define PROTOCORE_CLIENT_CLIENT_H
25#if PROTOCORE_ENABLE_SSH_CLIENT
33 const uint8_t *auth_seed;
34 const uint8_t *host_pin;
35 const char *bind_addr;
39} protocore_ssh_client_cfg;
72 const uint8_t *payload;
78 const protocore_ssh_client_cfg *cfg;
86 void (*
const send)(uint8_t *work);
87 void (*
const crypto_work)(uint8_t *work);
88 void (*
const state)(uint8_t *work);
89 void (*
const begin)(uint8_t *work);
90 void (*
const poll)(uint8_t *work);
91 void (*
const end)(uint8_t *work);
95extern SshClientNs SshClient;
106uint8_t *protocore_ssh_client_span(
void);
PROTO_ENUM_PACKED
Application protocol spoken on a listener port or connection slot.
PROTOCORE_BEGIN_DECLS enum PROTO_ENUM_PACKED protocore_ssh_client_state
Lifecycle phase of the forward, for observability.
@ PROTOCORE_SSH_CLIENT_FAILED
the last attempt failed (host-key mismatch, auth, or transport).
@ PROTOCORE_SSH_CLIENT_UP
authenticated and the remote forward is established.
@ PROTOCORE_SSH_CLIENT_IDLE
not started.
@ PROTOCORE_SSH_CLIENT_CONNECTING
TCP + SSH handshake + auth in progress.
Root infrastructure: fixed widths, serializers, opcodes and sizes, for every layer above.
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS