ssh_auth.c
error_t sshAcceptAuthRequest(SshConnection *connection)
Accept client's authentication request.
Definition: ssh_auth.c:263
error_t sshParseNoneAuthParams(SshConnection *connection, const SshString *userName, const uint8_t *p, size_t length)
Parse "none" method specific fields.
Definition: ssh_auth.c:858
error_t sshFormatNoneAuthParams(SshConnection *connection, uint8_t *p, size_t *written)
Format "none" method specific fields.
Definition: ssh_auth.c:470
error_t sshParseUserAuthPasswdChangeReq(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_USERAUTH_PASSWD_CHANGEREQ message.
Definition: ssh_auth_password.c:354
error_t sshParseUserAuthBanner(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_USERAUTH_BANNER message.
Definition: ssh_auth.c:640
SSH user authentication protocol.
error_t sshParseUserAuthPkOk(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_USERAUTH_PK_OK message.
Definition: ssh_auth_public_key.c:443
error_t sshFormatUserAuthSuccess(SshConnection *connection, uint8_t *p, size_t *length)
Format SSH_MSG_USERAUTH_SUCCESS message.
Definition: ssh_auth.c:494
error_t sshParseString(const uint8_t *p, size_t length, SshString *string)
Parse a string.
Definition: ssh_misc.c:1152
SSH transport layer protocol.
Public key authentication method.
SshAuthMethod sshGetAuthMethod(SshConnection *connection)
Get current authentication method.
Definition: ssh_auth.c:1147
error_t sshParseUserAuthSuccess(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_USERAUTH_SUCCESS message.
Definition: ssh_auth.c:929
error_t sshParsePublicKeyAuthParams(SshConnection *connection, const SshString *userName, const uint8_t *message, const uint8_t *p, size_t length)
Parse "publickey" method specific fields.
Definition: ssh_auth_public_key.c:272
bool_t sshCompareString(const SshString *string, const char_t *value)
Compare a binary string against the supplied value.
Definition: ssh_misc.c:1586
error_t sshSendPacket(SshConnection *connection, uint8_t *payload, size_t payloadLen)
Send SSH packet.
Definition: ssh_packet.c:57
Password authentication method.
error_t sshFormatPublicKeyAuthParams(SshConnection *connection, const uint8_t *message, size_t messageLen, uint8_t *p, size_t *written)
Format "publickey" method specific fields.
Definition: ssh_auth_public_key.c:107
bool_t sshCompareAlgo(const char_t *name1, const char_t *name2)
Compare algorithm names.
Definition: ssh_misc.c:1653
int_t sshSelectNextHostKey(SshConnection *connection)
Select the next acceptable host key.
Definition: ssh_misc.c:808
error_t sshSendUserAuthBanner(SshConnection *connection, const char_t *banner)
Send SSH_MSG_USERAUTH_BANNER message.
Definition: ssh_auth.c:67
error_t sshParseUserAuthMessage(SshConnection *connection, uint8_t type, const uint8_t *message, size_t length)
Parse authentication method specific method messages.
Definition: ssh_auth.c:1076
error_t sshSendDisconnect(SshConnection *connection, uint32_t reasonCode, const char_t *description)
Send SSH_MSG_DISCONNECT message.
Definition: ssh_transport.c:209
error_t sshFormatPasswordAuthParams(SshConnection *connection, uint8_t *p, size_t *written)
Format "password" method specific fields.
Definition: ssh_auth_password.c:104
error_t sshSendUserAuthSuccess(SshConnection *connection)
Send SSH_MSG_USERAUTH_SUCCESS message.
Definition: ssh_auth.c:171
error_t sshParseNameList(const uint8_t *p, size_t length, SshNameList *nameList)
Parse a comma-separated list of names.
Definition: ssh_misc.c:1227
error_t sshFormatUserAuthFailure(SshConnection *connection, uint8_t *p, size_t *length)
Format SSH_MSG_USERAUTH_FAILURE message.
Definition: ssh_auth.c:516
error_t sshParseUserAuthRequest(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_USERAUTH_REQUEST message.
Definition: ssh_auth.c:717
error_t sshParseUserAuthFailure(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_USERAUTH_FAILURE message.
Definition: ssh_auth.c:980
error_t sshSendUserAuthFailure(SshConnection *connection)
Send SSH_MSG_USERAUTH_FAILURE message.
Definition: ssh_auth.c:219
error_t sshParsePasswordAuthParams(SshConnection *connection, const SshString *userName, const uint8_t *p, size_t length)
Parse "password" method specific fields.
Definition: ssh_auth_password.c:212
error_t sshFormatUserAuthMethods(SshConnection *connection, uint8_t *p, size_t *written)
Format the list of allowed authentication methods.
Definition: ssh_auth.c:563
SSH helper functions.
error_t sshFormatUserAuthRequest(SshConnection *connection, uint8_t *message, size_t *length)
Format SSH_MSG_USERAUTH_REQUEST message.
Definition: ssh_auth.c:376
SSH packet encryption/decryption.
error_t sshFormatString(const char_t *value, uint8_t *p, size_t *written)
Format a string.
Definition: ssh_misc.c:1384
error_t sshFormatUserAuthBanner(SshConnection *connection, const char_t *banner, uint8_t *p, size_t *length)
Format SSH_MSG_USERAUTH_BANNER message.
Definition: ssh_auth.c:327
Secure Shell (SSH)
error_t sshRejectAuthRequest(SshConnection *connection)
Reject client's authentication request.
Definition: ssh_auth.c:293
error_t sshSendUserAuthRequest(SshConnection *connection)
Send SSH_MSG_USERAUTH_REQUEST message.
Definition: ssh_auth.c:109
Debugging facilities.