Next: Register a smartcard, Previous: Ask for confirmation, Up: Agent’s Assuan Protocol [Contents][Index]
This can be used to see whether a secret key is available. It does not return any information on whether the key is somehow protected.
HAVEKEY keygrips
The agent answers either with OK or No_Secret_Key
(208). The
caller may want to check for other error codes as well. More than one
keygrip may be given. In this case the command returns success if at
least one of the keygrips corresponds to an available secret key.