Files
k7/GpgMECWorker.h

40 lines
830 B
C
Raw Permalink Normal View History

2019-10-25 20:16:43 +02:00
/*
* File: GpgMECWorker.h
2022-11-19 15:56:56 +01:00
* Author: Saleem Edah-Tally - nmset@yandex.com
2019-10-25 20:16:43 +02:00
* License : LGPL v2.1
2022-11-19 15:56:56 +01:00
* Copyright Saleem Edah-Tally - © 2019
2019-10-25 20:16:43 +02:00
*
* Created on 14 octobre 2019, 15:22
*/
#ifndef GPGMECWORKER_H
#define GPGMECWORKER_H
#include <gpgme.h>
#include <gpgme++/error.h>
2020-11-14 14:46:28 +01:00
class GpgMECWorker
{
2019-10-25 20:16:43 +02:00
public:
GpgMECWorker();
virtual ~GpgMECWorker();
2020-11-14 14:46:28 +01:00
2019-10-25 20:16:43 +02:00
/**
* 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 server.
* @param fpr
2019-10-25 20:16:43 +02:00
* @param secret delete secret key ?
* @param e
* @return
*/
bool DeleteKey(const char * fpr, bool secret, GpgME::Error& e);
2020-11-14 14:46:28 +01:00
2019-10-25 20:16:43 +02:00
private:
gpgme_ctx_t c_ctx;
};
#endif /* GPGMECWORKER_H */