From eee99c8a14e7e2f6b1e0d55153db0403856c3252 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Sun, 7 Sep 2003 17:14:57 +0000 Subject: [PATCH] Fix API. --- lib/as.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/as.c b/lib/as.c index d17993fb..757addd6 100644 --- a/lib/as.c +++ b/lib/as.c @@ -265,12 +265,10 @@ shishi_as_rep_process (Shishi_as * as, Shishi_key * key, const char *password) if (key == NULL && password == NULL) { - char password[BUFSIZ]; + char *password; - res = shishi_prompt_password (as->handle, - stdin, password, BUFSIZ, - stdout, "Enter password for `%s': ", - user); + res = shishi_prompt_password (as->handle, &password, + "Enter password for `%s': ", user); if (res != SHISHI_OK) { shishi_error_printf (as->handle, "Reading password failed: %s\n", @@ -280,6 +278,7 @@ shishi_as_rep_process (Shishi_as * as, Shishi_key * key, const char *password) res = shishi_as_process (as->handle, as->asreq, as->asrep, password, &kdcreppart); + free (password); } else if (key == NULL) res = shishi_as_process (as->handle, as->asreq, as->asrep, -- 2.11.4.GIT