summaryrefslogtreecommitdiffstats
path: root/include/libssh/libssh.h
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-07-21 10:34:21 +0200
committerAndreas Schneider <mail@cynapses.org>2009-07-21 10:34:21 +0200
commit41a8fb5810759118d93bee30a254ecf4863437b5 (patch)
tree81c960097719c1d81d5b9dc330908e4c9aa05962 /include/libssh/libssh.h
parent8843d8b68d180dbc3b0edbfb47ded3fadbe86988 (diff)
downloadlibssh-41a8fb5810759118d93bee30a254ecf4863437b5.tar.gz
libssh-41a8fb5810759118d93bee30a254ecf4863437b5.tar.xz
libssh-41a8fb5810759118d93bee30a254ecf4863437b5.zip
Make the ssh_userauth_kbdint functions to get the prompts const.
They shouldn't be modified or free'd by a user.
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r--include/libssh/libssh.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index bc58eeb..2f1d2fc 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -370,9 +370,9 @@ int ssh_userauth_agent_pubkey(SSH_SESSION *session, const char *username,
int ssh_userauth_autopubkey(SSH_SESSION *session, const char *passphrase);
int ssh_userauth_kbdint(SSH_SESSION *session, const char *user, const char *submethods);
int ssh_userauth_kbdint_getnprompts(SSH_SESSION *session);
-char *ssh_userauth_kbdint_getname(SSH_SESSION *session);
-char *ssh_userauth_kbdint_getinstruction(SSH_SESSION *session);
-char *ssh_userauth_kbdint_getprompt(SSH_SESSION *session, unsigned int i, char *echo);
+const char *ssh_userauth_kbdint_getname(SSH_SESSION *session);
+const char *ssh_userauth_kbdint_getinstruction(SSH_SESSION *session);
+const char *ssh_userauth_kbdint_getprompt(SSH_SESSION *session, unsigned int i, char *echo);
int ssh_userauth_kbdint_setanswer(SSH_SESSION *session, unsigned int i,
const char *answer);