PasswordRequestFunc


Description:

[ CCode ( has_target = false ) ]
public delegate bool PasswordRequestFunc (CryptoContext ctx, string user_id, string prompt, bool reprompt, Stream response) throws Error

A password request callback allowing a CryptoContext to prompt the user for a password for a given key.

Parameters:

ctx

the CryptoContext making the request

user_id

the user_id of the password being requested

prompt

a string containing some helpful context for the prompt

reprompt

true if this password request is a reprompt due to a previously bad password response

response

a stream for the application to write the password to (followed by a newline '\n' character)

Returns:

true on success or false on error.


Namespace: GMime
Package: gmime-3.0