Next: , Previous: Key Signatures, Up: Key Management

7.4.4 Manipulating Keys

— Function: void gpgme_key_ref (gpgme_key_t key)

The function gpgme_key_ref acquires an additional reference for the key key.

— Function: void gpgme_key_unref (gpgme_key_t key)

The function gpgme_key_unref releases a reference for the key key. If this was the last reference, the key will be destroyed and all resources associated to it will be released.

The following interface is deprecated and only provided for backward compatibility. Don't use it. It will be removed in a future version of GPGME.

— Function: void gpgme_key_release (gpgme_key_t key)

The function gpgme_key_release is equivalent to gpgme_key_unref.