[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFE: prompt_types, as with MIT krb5 1.2.x
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[]);