forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpgme.h
34 lines (27 loc) · 958 Bytes
/
gpgme.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* @file
*
* @brief filter plugin providing cryptographic operations using GPGME
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#ifndef ELEKTRA_PLUGIN_GPGME_H
#define ELEKTRA_PLUGIN_GPGME_H
#include <kdbplugin.h>
// meta-keys
#define ELEKTRA_GPGME_META_ENCRYPT "crypto/encrypt"
#define ELEKTRA_GPGME_META_BINARY "gpg/binary"
// plugin configuration
#define ELEKTRA_SIGNATURE_KEY "/sign/key"
#define ELEKTRA_RECIPIENT_KEY "/encrypt/key"
#define ELEKTRA_GPGME_CONFIG_TEXTMODE "/gpgme/textmode"
#define ELEKTRA_GPGME_UNIT_TEST "/gpgme/unit_test"
// kdb functions
int elektraGpgmeOpen (Plugin * handle, Key * errorKey);
int elektraGpgmeClose (Plugin * handle, Key * errorKey);
int elektraGpgmeGet (Plugin * handle, KeySet * ks, Key * parentKey);
int elektraGpgmeSet (Plugin * handle, KeySet * ks, Key * parentKey);
int elektraGpgmeCheckconf (Key * errorKey, KeySet * conf);
Plugin * ELEKTRA_PLUGIN_EXPORT;
#endif