Next: Ask for confirmation, Previous: Remove a cached passphrase, Up: Agent’s Assuan Protocol [Contents][Index]
This command adds a passphrase to the cache for the specified keygrip.
PRESET_PASSPHRASE [--inquire] <string_or_keygrip> <timeout> [<hexstring>]
The passphrase is a hexadecimal string when specified. When not specified, the passphrase will be retrieved from the pinentry module unless the --inquire option was specified in which case the passphrase will be retrieved from the client.
The timeout parameter keeps the passphrase cached for the specified
number of seconds. A value of -1
means infinite while 0
means
the default (currently only a timeout of -1 is allowed, which means to never
expire it).