Use fingerprint instead of keyid when importing and deleting keys.

This commit is contained in:
SET
2020-11-11 21:09:43 +01:00
parent 9cce0febdb
commit 4f8ea18a66
5 changed files with 17 additions and 16 deletions

View File

@@ -22,13 +22,13 @@ public:
* Deleting keys must be done with the C API because
* gpgmepp does not provide a way to use GPGME_DELETE_FORCE,
* resulting in a confirmation dialog triggered by GPG.
* This does not fit use on a web werver.
* @param fullKeyId
* This does not fit use on a web server.
* @param fpr
* @param secret delete secret key ?
* @param e
* @return
*/
bool DeleteKey(const char * fullKeyId, bool secret, GpgME::Error& e);
bool DeleteKey(const char * fpr, bool secret, GpgME::Error& e);
private:
gpgme_ctx_t c_ctx;