mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: New option --use-keyboxd.
* g10/gpg.c (oUseKeyboxd,oKeyboxdProgram): New consts. (opts): New options --use-keyboxd and --keyboxd-program. (main): Implement them. * g10/keydb.c: Move some defs out to ... * g10/keydb-private.h: new file. * g10/keydb.c: prefix function names with "internal" and move original functions to ... * g10/call-keyboxd.c: new file. Divert to the internal fucntion if --use-keyboxd is used. Add a CTRL arg to most fucntions and change all callers. * g10/Makefile.am (common_source): Add new files. (noinst_PROGRAMS): Do bot build gpgcompose. -- Note that this is just the framework with only a basic implementation of searching via keyboxd. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
5e00c1773d
commit
aba82684fe
26 changed files with 1221 additions and 292 deletions
|
@ -25,6 +25,7 @@ static void
|
|||
do_test (int argc, char *argv[])
|
||||
{
|
||||
int rc;
|
||||
ctrl_t ctrl;
|
||||
KEYDB_HANDLE hd1, hd2;
|
||||
KEYDB_SEARCH_DESC desc1, desc2;
|
||||
KBNODE kb1, kb2, p;
|
||||
|
@ -35,16 +36,17 @@ do_test (int argc, char *argv[])
|
|||
(void) argc;
|
||||
(void) argv;
|
||||
|
||||
ctrl = xcalloc (1, sizeof *ctrl);
|
||||
fname = prepend_srcdir ("t-keydb-keyring.kbx");
|
||||
rc = keydb_add_resource (fname, 0);
|
||||
test_free (fname);
|
||||
if (rc)
|
||||
ABORT ("Failed to open keyring.");
|
||||
|
||||
hd1 = keydb_new ();
|
||||
hd1 = keydb_new (ctrl);
|
||||
if (!hd1)
|
||||
ABORT ("");
|
||||
hd2 = keydb_new ();
|
||||
hd2 = keydb_new (ctrl);
|
||||
if (!hd2)
|
||||
ABORT ("");
|
||||
|
||||
|
@ -101,4 +103,5 @@ do_test (int argc, char *argv[])
|
|||
release_kbnode (kb2);
|
||||
keydb_release (hd1);
|
||||
keydb_release (hd2);
|
||||
xfree (ctrl);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue