#include "sendsync.h"
static struct dbfuncs *loaded_backend = NULL;
-static char *backendsoname;
static void *backend_handle;
static bool close_backend(void)
static bool dynamic_starttrans()
{
- struct dynamic_backend *backend;
-
if (loaded_backend == NULL) {
load_backend();
}
static void dynamic_endtrans()
{
- struct dynamic_backend *backend;
-
if (loaded_backend == NULL) {
load_backend();
}
static int dynamic_fetch_key(uint64_t keyid,
struct openpgp_publickey **publickey, bool intrans)
{
- struct dynamic_backend *backend;
-
if (loaded_backend == NULL) {
load_backend();
}
static int dynamic_store_key(struct openpgp_publickey *publickey, bool intrans,
bool update)
{
- struct dynamic_backend *backend;
-
if (loaded_backend == NULL) {
load_backend();
}
static int dynamic_delete_key(uint64_t keyid, bool intrans)
{
- struct dynamic_backend *backend;
-
if (loaded_backend == NULL) {
load_backend();
}
static int dynamic_fetch_key_text(const char *search,
struct openpgp_publickey **publickey)
{
- struct dynamic_backend *backend;
-
if (loaded_backend == NULL) {
load_backend();
}
static int dynamic_iterate_keys(void (*iterfunc)(void *ctx,
struct openpgp_publickey *key), void *ctx)
{
- struct dynamic_backend *backend;
-
if (loaded_backend == NULL) {
load_backend();
}
struct openpgp_signedpacket_list *curuid = NULL;
char buf[1024];
- struct dynamic_backend *backend;
if (loaded_backend == NULL) {
load_backend();
}
struct openpgp_signedpacket_list *uids = NULL;
struct openpgp_publickey *publickey = NULL;
- struct dynamic_backend *backend;
if ( loaded_backend == NULL ) {
load_backend();
}
struct stats_key *signedkey = NULL;
struct ll *cursig = NULL;
bool revoked = false;
-
- struct dynamic_backend *backend;
if (keyid == 0) {
return NULL;
static uint64_t dynamic_getfullkeyid(uint64_t keyid)
{
struct openpgp_publickey *publickey = NULL;
- struct dynamic_backend *backend;
-
+
if (loaded_backend == NULL) {
load_backend();
}
struct openpgp_publickey *curkey = NULL;
struct openpgp_publickey *oldkey = NULL;
struct openpgp_publickey *prev = NULL;
- struct dynamic_backend *backend;
int newkeys = 0;
bool intrans;
static void dynamic_initdb(bool readonly)
{
- struct dynamic_backend *backend;
-
if (loaded_backend == NULL) {
load_backend();
}
static void dynamic_cleanupdb(void)
{
- struct dynamic_backend *backend;
-
if (loaded_backend != NULL) {
if (loaded_backend->cleanupdb != NULL) {
loaded_backend->cleanupdb();