gpgme_key_refacquires an additional reference for the key key.
gpgme_key_unrefreleases 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.