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:
@@ -179,18 +179,18 @@ static int
|
|||||||
default_prompter(void *data, const hx509_prompt *prompter)
|
default_prompter(void *data, const hx509_prompt *prompter)
|
||||||
{
|
{
|
||||||
if (prompter->hidden) {
|
if (prompter->hidden) {
|
||||||
if(UI_UTIL_read_pw_string(prompter->reply->data,
|
if(UI_UTIL_read_pw_string(prompter->reply.data,
|
||||||
prompter->reply->length,
|
prompter->reply.length,
|
||||||
prompter->prompt,
|
prompter->prompt,
|
||||||
0))
|
0))
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
char *s = prompter->reply->data;
|
char *s = prompter->reply.data;
|
||||||
|
|
||||||
fputs (prompter->prompt, stdout);
|
fputs (prompter->prompt, stdout);
|
||||||
fflush (stdout);
|
fflush (stdout);
|
||||||
if(fgets(prompter->reply->data,
|
if(fgets(prompter->reply.data,
|
||||||
prompter->reply->length,
|
prompter->reply.length,
|
||||||
stdin) == NULL)
|
stdin) == NULL)
|
||||||
return 1;
|
return 1;
|
||||||
s[strcspn(s, "\n")] = '\0';
|
s[strcspn(s, "\n")] = '\0';
|
||||||
|
Reference in New Issue
Block a user