skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_principal_compare  Compare two principals krb5_principal_compare Compare two principals
go to next page: krb5_rd_cred  Read a KRB_CRED messagekrb5_rd_cred Read a KRB_CRED message
end of book navigation links

krb5_prompter_posix -- Prompt the user for the Kerberos password 



C Prototype 

krb5_error_code krb5_prompter_posix (
        krb5_context            context,
        void                    *data,
        const char              *name,
        const char              *banner,
        int                     num_prompts,
        krb5_prompt             prompts[] );

Arguments 

context
(input/output)
 The context structure.
data (input) [Not used].
name (input) Name to output during prompt.
banner (input) Banner to output during prompt.
num_prompts (input) The number of prompts passed in prompts.
prompts (input/output) A structure containing output prompts and replies.

Description 

This routine prompts the user for the Kerberos password associated with the given principal name, and sets the reply field of the prompts argument to the password input. The hidden flag in the prompts structure controls whether the password input is echoed back to the terminal.

Return Values 

This routine returns one of the following KRB5 status code:

0
Successful completion.


go to previous page: krb5_principal_compare  Compare two principals krb5_principal_compare Compare two principals
go to next page: krb5_rd_cred  Read a KRB_CRED messagekrb5_rd_cred Read a KRB_CRED message