(hx509_prompt_hidden): return if the prompt should be hidden or not
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17550 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -178,7 +178,7 @@ hx509_lock_reset_promper(hx509_lock lock) | ||||
| static int  | ||||
| default_prompter(void *data, const hx509_prompt *prompter) | ||||
| { | ||||
|     if (prompter->hidden) { | ||||
|     if (hx509_prompt_hidden(prompter->type)) { | ||||
| 	if(UI_UTIL_read_pw_string(prompter->reply.data, | ||||
| 				  prompter->reply.length, | ||||
| 				  prompter->prompt, | ||||
| @@ -215,6 +215,17 @@ hx509_lock_free(hx509_lock lock) | ||||
|     free(lock); | ||||
| } | ||||
|  | ||||
| int | ||||
| hx509_prompt_hidden(hx509_prompt_type type) | ||||
| { | ||||
|     switch (type) { | ||||
|     case HX509_PROMPT_TYPE_QUESTION: | ||||
|     case HX509_PROMPT_TYPE_INFO: | ||||
| 	return 0; | ||||
|     } | ||||
|     return 1; | ||||
| } | ||||
|  | ||||
| int | ||||
| hx509_lock_command_string(hx509_lock lock, const char *string) | ||||
| { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand