aboutsummaryrefslogtreecommitdiff
path: root/src/server.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-25 16:26:12 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-25 16:26:12 +0200
commit892cb92f573813121ba6820c382ef8794a9c9c4a (patch)
treed713d0682ec397fcbadf7fdfbac4352113966527 /src/server.c
parentc59939d4a2b5673869ad0b72d5cf030edb680635 (diff)
downloadlibssh-892cb92f573813121ba6820c382ef8794a9c9c4a.tar.gz
libssh-892cb92f573813121ba6820c382ef8794a9c9c4a.tar.xz
libssh-892cb92f573813121ba6820c382ef8794a9c9c4a.zip
auth: Prefix kbdint functions.
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server.c b/src/server.c
index 6c454f7f..e17132f8 100644
--- a/src/server.c
+++ b/src/server.c
@@ -845,27 +845,27 @@ int ssh_message_auth_interactive_request(ssh_message msg, const char *name,
"keyboard-interactive response but it "
"seems we didn't send the request.");
- msg->session->kbdint = kbdint_new();
+ msg->session->kbdint = ssh_kbdint_new();
if (msg->session->kbdint == NULL) {
ssh_set_error_oom(msg->session);
return SSH_ERROR;
}
} else {
- kbdint_clean(msg->session->kbdint);
+ ssh_kbdint_clean(msg->session->kbdint);
}
msg->session->kbdint->name = strdup(name);
if(msg->session->kbdint->name == NULL) {
ssh_set_error_oom(msg->session);
- kbdint_free(msg->session->kbdint);
+ ssh_kbdint_free(msg->session->kbdint);
msg->session->kbdint = NULL;
return SSH_PACKET_USED;
}
msg->session->kbdint->instruction = strdup(instruction);
if(msg->session->kbdint->instruction == NULL) {
ssh_set_error_oom(msg->session);
- kbdint_free(msg->session->kbdint);
+ ssh_kbdint_free(msg->session->kbdint);
msg->session->kbdint = NULL;
return SSH_PACKET_USED;
}
@@ -876,14 +876,14 @@ int ssh_message_auth_interactive_request(ssh_message msg, const char *name,
if (msg->session->kbdint->prompts == NULL) {
msg->session->kbdint->nprompts = 0;
ssh_set_error_oom(msg->session);
- kbdint_free(msg->session->kbdint);
+ ssh_kbdint_free(msg->session->kbdint);
msg->session->kbdint = NULL;
return SSH_ERROR;
}
msg->session->kbdint->echo = malloc(num_prompts * sizeof(char));
if (msg->session->kbdint->echo == NULL) {
ssh_set_error_oom(msg->session);
- kbdint_free(msg->session->kbdint);
+ ssh_kbdint_free(msg->session->kbdint);
msg->session->kbdint = NULL;
return SSH_ERROR;
}
@@ -893,7 +893,7 @@ int ssh_message_auth_interactive_request(ssh_message msg, const char *name,
if (msg->session->kbdint->prompts[i] == NULL) {
ssh_set_error_oom(msg->session);
msg->session->kbdint->nprompts = i;
- kbdint_free(msg->session->kbdint);
+ ssh_kbdint_free(msg->session->kbdint);
msg->session->kbdint = NULL;
return SSH_PACKET_USED;
}