24 #include "libssh/callbacks.h"
37 struct ssh_kbdint_struct {
46 typedef struct ssh_kbdint_struct* ssh_kbdint;
48 ssh_kbdint ssh_kbdint_new(
void);
49 void ssh_kbdint_clean(ssh_kbdint kbd);
50 void ssh_kbdint_free(ssh_kbdint kbd);
54 void ssh_auth1_handler(ssh_session session, uint8_t type);
57 int ssh_userauth1_none(ssh_session session,
const char *username);
58 int ssh_userauth1_offer_pubkey(ssh_session session,
const char *username,
59 int type, ssh_string pubkey);
60 int ssh_userauth1_password(ssh_session session,
const char *username,
61 const char *password);
70 enum ssh_auth_state_e {
72 SSH_AUTH_STATE_NONE=0,
74 SSH_AUTH_STATE_PARTIAL,
76 SSH_AUTH_STATE_SUCCESS,
78 SSH_AUTH_STATE_FAILED,
86 SSH_AUTH_STATE_KBDINT_SENT,
88 SSH_AUTH_STATE_GSSAPI_REQUEST_SENT,
90 SSH_AUTH_STATE_GSSAPI_TOKEN,
92 SSH_AUTH_STATE_GSSAPI_MIC_SENT,
98 enum ssh_auth_service_state_e {
100 SSH_AUTH_SERVICE_NONE=0,
102 SSH_AUTH_SERVICE_SENT,
104 SSH_AUTH_SERVICE_ACCEPTED,
106 SSH_AUTH_SERVICE_DENIED,
108 SSH_AUTH_SERVICE_USER_SENT
#define SSH_PACKET_CALLBACK(name)
This macro declares a packet callback handler.
Definition: callbacks.h:449