[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFE: prompt_types, as with MIT krb5 1.2.x



Can you add another prompt_type enum value?: KRB5_PROMPT_TYPE_INFO, for
informational prompts, such as the lastlogin or impending password
expiration warning.

And maybe yet another one for error messages (such as password change
result strings).

Also, there's another incompatibility between MIT and Heimdal here: the
prompter_fct type differs amongst the two: MIT's has a name argument,
which I think is never used.

Nico


On Fri, May 11, 2001 at 11:21:13PM +0200, Assar Westerlund wrote:
> Ken Raeburn <raeburn@MIT.EDU> writes:
> > Because we didn't want to introduce incompatible changes in the API at
> > that point in time.  Next time we're doing that anyways, we should
> > update this interface...
> 
> Ok.  See appended header file.  Is that ok with you, Ken?
> 
> /assar
> 
> //
> 
> typedef enum {
>     KRB5_PROMPT_TYPE_PASSWORD		= 0x1,
>     KRB5_PROMPT_TYPE_NEW_PASSWORD	= 0x2,
>     KRB5_PROMPT_TYPE_NEW_PASSWORD_AGAIN = 0x3,
>     KRB5_PROMPT_TYPE_PREAUTH		= 0x4
> } krb5_prompt_type;
> 
> typedef struct _krb5_prompt {
>     char *prompt;
>     int hidden;
>     krb5_data *reply;
>     krb5_prompt_type type;
> } krb5_prompt;
> 
> typedef int (*krb5_prompter_fct)(krb5_context context,
> 				 void *data,
> 				 const char *name,
> 				 const char *banner,
> 				 int num_prompts,
> 				 krb5_prompt prompts[]);
--