From 8ef45e00c7dbb5d35f26cb23676d7988e8f833df Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 17 Jul 2012 17:57:49 +0200 Subject: [PATCH] auth: Improve ssh_userauth_kbdint_setanswer() documentation. Thanks to Arto Karppinen. --- src/auth.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/auth.c b/src/auth.c index 04543e0d..e699f60a 100644 --- a/src/auth.c +++ b/src/auth.c @@ -2065,7 +2065,11 @@ const char *ssh_userauth_kbdint_getanswer(ssh_session session, unsigned int i) { * * @param[in] i index The number of the ith prompt. * - * @param[in] answer The answer to give to the server. + * @param[in] answer The answer to give to the server. The answer MUST be + * encoded UTF-8. It is up to the server how to interpret + * the value and validate it. However, if you read the + * answer in some other encoding, you MUST convert it to + * UTF-8. * * @return 0 on success, < 0 on error. */