Deal with that hx509_prompt.reply is no longer a pointer.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17416 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-05-03 16:39:11 +00:00
parent 775dc15b9b
commit 12349fd46a

View File

@@ -179,18 +179,18 @@ static int
default_prompter(void *data, const hx509_prompt *prompter)
{
if (prompter->hidden) {
if(UI_UTIL_read_pw_string(prompter->reply->data,
prompter->reply->length,
if(UI_UTIL_read_pw_string(prompter->reply.data,
prompter->reply.length,
prompter->prompt,
0))
return 1;
} else {
char *s = prompter->reply->data;
char *s = prompter->reply.data;
fputs (prompter->prompt, stdout);
fflush (stdout);
if(fgets(prompter->reply->data,
prompter->reply->length,
if(fgets(prompter->reply.data,
prompter->reply.length,
stdin) == NULL)
return 1;
s[strcspn(s, "\n")] = '\0';