Initial commit
This commit is contained in:
38
GpgMECWorker.h
Normal file
38
GpgMECWorker.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* File: GpgMECWorker.h
|
||||
* Author: SET - nmset@netcourrier.com
|
||||
* License : LGPL v2.1
|
||||
* Copyright SET - © 2019
|
||||
*
|
||||
* Created on 14 octobre 2019, 15:22
|
||||
*/
|
||||
|
||||
#ifndef GPGMECWORKER_H
|
||||
#define GPGMECWORKER_H
|
||||
|
||||
#include <gpgme.h>
|
||||
#include <gpgme++/error.h>
|
||||
|
||||
class GpgMECWorker {
|
||||
public:
|
||||
GpgMECWorker();
|
||||
virtual ~GpgMECWorker();
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @param secret delete secret key ?
|
||||
* @param e
|
||||
* @return
|
||||
*/
|
||||
bool DeleteKey(const char * fullKeyId, bool secret, GpgME::Error& e);
|
||||
|
||||
private:
|
||||
gpgme_ctx_t c_ctx;
|
||||
};
|
||||
|
||||
#endif /* GPGMECWORKER_H */
|
||||
|
||||
Reference in New Issue
Block a user