Agent HAVEKEY - Using the GNU Privacy Guard
Description: Using the GNU Privacy Guard

Next: Agent LEARN, Previous: Agent GET_CONFIRMATION, Up: Agent Protocol

#### 2.6.9 Check whether a key is available

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.