Add support for asking passphrase information from the registered user agent.
Init, setup and exit functions.