diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-04-15 14:14:47 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-04-15 14:14:47 +0300 |
commit | 41d3b80e83861e01e26468ed6fc3590c7991f37e (patch) | |
tree | f189ec58d465104bcbf2b271c4b30347ad89e459 /src/wydawca.h | |
parent | 33b081ce1754ea931971997b03eb085f5fa126de (diff) | |
download | wydawca-41d3b80e83861e01e26468ed6fc3590c7991f37e.tar.gz wydawca-41d3b80e83861e01e26468ed6fc3590c7991f37e.tar.bz2 |
Rewrite GPGME support
* src/Makefile.am: Remove pushd.c
* src/gpg.c: Rewrite.
* src/pushd.c: Remove.
* src/triplet.c (remove_triplet): Release the gpgme context.
* src/wydawca.h: Include gpgme.h
(struct wy_triplet): New member: gpgme_ctx;
(triplet_gpgme_ctx_release): New proto.
* tests/pushck.c: Remove.
* tests/pushdir.at: Remove.
* tests/Makefile.am: Remove pushck
* tests/.gitignore: Likewise.
* tests/testsuite.at: Remove pushdir test.
Diffstat (limited to 'src/wydawca.h')
-rw-r--r-- | src/wydawca.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wydawca.h b/src/wydawca.h index dde101c..1f64623 100644 --- a/src/wydawca.h +++ b/src/wydawca.h @@ -43,6 +43,7 @@ #include <sysexits.h> #include <fnmatch.h> #include <regex.h> +#include <gpgme.h> #include <mailutils/types.h> #include <mailutils/errno.h> @@ -196,6 +197,8 @@ struct wy_triplet { char *project; /* Triplet project name (if known) */ int check_result; /* Result of external check */ char *check_diag; /* External check diagnostics */ + /* GPGME context */ + gpgme_ctx_t gpgme_ctx; }; /* Macros to access owner UID and GID. */ @@ -398,6 +401,7 @@ time_t triplet_sweep(void); int remove_triplet(struct wy_triplet *trp, int check); void triplet_enqueue(struct wy_triplet *trp); void triplet_commit(struct wy_triplet *trp); +void triplet_gpgme_ctx_release(struct wy_triplet *trp); /* General-purpose dictionary support */ struct dictionary *dictionary_new(enum dictionary_id id, |