summaryrefslogtreecommitdiffstats
path: root/src/auth1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth1.c')
-rw-r--r--src/auth1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/auth1.c b/src/auth1.c
index a65c4475..e8087639 100644
--- a/src/auth1.c
+++ b/src/auth1.c
@@ -103,11 +103,11 @@ static int send_username(ssh_session session, const char *username) {
return SSH_AUTH_ERROR;
}
- if (buffer_add_u8(session->out_buffer, SSH_CMSG_USER) < 0) {
+ if (ssh_buffer_add_u8(session->out_buffer, SSH_CMSG_USER) < 0) {
ssh_string_free(user);
return SSH_AUTH_ERROR;
}
- if (buffer_add_ssh_string(session->out_buffer, user) < 0) {
+ if (ssh_buffer_add_ssh_string(session->out_buffer, user) < 0) {
ssh_string_free(user);
return SSH_AUTH_ERROR;
}
@@ -197,13 +197,13 @@ int ssh_userauth1_password(ssh_session session, const char *username,
ssh_string_fill(pwd, buf, sizeof(buf));
}
- if (buffer_add_u8(session->out_buffer, SSH_CMSG_AUTH_PASSWORD) < 0) {
+ if (ssh_buffer_add_u8(session->out_buffer, SSH_CMSG_AUTH_PASSWORD) < 0) {
ssh_string_burn(pwd);
ssh_string_free(pwd);
return SSH_AUTH_ERROR;
}
- if (buffer_add_ssh_string(session->out_buffer, pwd) < 0) {
+ if (ssh_buffer_add_ssh_string(session->out_buffer, pwd) < 0) {
ssh_string_burn(pwd);
ssh_string_free(pwd);