Password authentication method. More...
#include "ssh/ssh.h"
Go to the source code of this file.
Functions | |
error_t | sshSendUserAuthPasswdChangeReq (SshConnection *connection, const char_t *prompt) |
Send SSH_MSG_USERAUTH_PASSWD_CHANGEREQ message. More... | |
error_t | sshFormatPasswordAuthParams (SshConnection *connection, uint8_t *p, size_t *written) |
Format "password" method specific fields. More... | |
error_t | sshFormatUserAuthPasswdChangeReq (SshConnection *connection, const char_t *prompt, uint8_t *p, size_t *length) |
Format SSH_MSG_USERAUTH_PASSWD_CHANGEREQ message. More... | |
error_t | sshParsePasswordAuthParams (SshConnection *connection, const SshString *userName, const uint8_t *p, size_t length) |
Parse "password" method specific fields. More... | |
error_t | sshParseUserAuthPasswdChangeReq (SshConnection *connection, const uint8_t *message, size_t length) |
Parse SSH_MSG_USERAUTH_PASSWD_CHANGEREQ message. More... | |
Detailed Description
Password authentication method.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2019-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneSSH Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.4.4
Definition in file ssh_auth_password.h.
Function Documentation
◆ sshFormatPasswordAuthParams()
error_t sshFormatPasswordAuthParams | ( | SshConnection * | connection, |
uint8_t * | p, | ||
size_t * | written | ||
) |
Format "password" method specific fields.
- Parameters
-
[in] connection Pointer to the SSH connection [out] p Output stream where to write the method specific fields [out] written Total number of bytes that have been written
- Returns
- Error code
Definition at line 104 of file ssh_auth_password.c.
◆ sshFormatUserAuthPasswdChangeReq()
error_t sshFormatUserAuthPasswdChangeReq | ( | SshConnection * | connection, |
const char_t * | prompt, | ||
uint8_t * | p, | ||
size_t * | length | ||
) |
Format SSH_MSG_USERAUTH_PASSWD_CHANGEREQ message.
- Parameters
-
[in] connection Pointer to the SSH connection [in] prompt NULL-terminated string containing the prompt message [out] p Buffer where to format the message [out] length Length of the resulting message, in bytes
- Returns
- Error code
Definition at line 158 of file ssh_auth_password.c.
◆ sshParsePasswordAuthParams()
error_t sshParsePasswordAuthParams | ( | SshConnection * | connection, |
const SshString * | userName, | ||
const uint8_t * | p, | ||
size_t | length | ||
) |
Parse "password" method specific fields.
- Parameters
-
[in] connection Pointer to the SSH connection [in] userName Pointer to the user name [in] p Pointer to method specific fields [in] length Length of the method specific fields, in bytes
- Returns
- Error code
Definition at line 212 of file ssh_auth_password.c.
◆ sshParseUserAuthPasswdChangeReq()
error_t sshParseUserAuthPasswdChangeReq | ( | SshConnection * | connection, |
const uint8_t * | message, | ||
size_t | length | ||
) |
Parse SSH_MSG_USERAUTH_PASSWD_CHANGEREQ message.
- Parameters
-
[in] connection Pointer to the SSH connection [in] message Pointer to message [in] length Length of the message, in bytes
- Returns
- Error code
Definition at line 354 of file ssh_auth_password.c.
◆ sshSendUserAuthPasswdChangeReq()
error_t sshSendUserAuthPasswdChangeReq | ( | SshConnection * | connection, |
const char_t * | prompt | ||
) |
Send SSH_MSG_USERAUTH_PASSWD_CHANGEREQ message.
- Parameters
-
[in] connection Pointer to the SSH connection [in] prompt NULL-terminated string containing the prompt message
- Returns
- Error code
Definition at line 54 of file ssh_auth_password.c.