mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
sm: New options to prepare the use of keyboxd.
* sm/Makefile.am (AM_CFLAGS): Add npth flags. (common_libs): Use npth version of the lib. (gpgsm_LDADD): Add npth libs. * sm/gpgsm.c (oUseKeyboxd, oKeyboxdProgram): New. (opts): New options --use-keyboxd and --keyboxd-program. (main): Set them. (gpgsm_deinit_default_ctrl): New. (main): Call it. * sm/server.c (gpgsm_server): Ditto. * sm/gpgsm.h (opt): Add fields use_keyboxd and keyboxd_program. (keydb_local_s): New type. (struct server_control_s): Add field keybd_local. * sm/keydb.c: Include assuan.h, asshelp.h, and kbx-client-util.h. (struct keydb_local_s): New. (struct keydb_handle): Add fields for keyboxd use. (gpgsm_keydb_deinit_session_data): New. (warn_version_mismatch): New. (create_new_context): New. (open_context): New. (keydb_new): Implement keyboxd mode. (keydb_release): Ditto. (keydb_get_resource_name): Ditto. * sm/keydb.c: Add stub support for all other functions. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
a7d006293e
commit
046f419f80
6 changed files with 427 additions and 85 deletions
|
@ -31,6 +31,7 @@ typedef struct keydb_handle *KEYDB_HANDLE;
|
|||
|
||||
|
||||
/*-- keydb.c --*/
|
||||
void gpgsm_keydb_deinit_session_data (ctrl_t ctrl);
|
||||
gpg_error_t keydb_add_resource (ctrl_t ctrl, const char *url,
|
||||
int force, int *auto_created);
|
||||
KEYDB_HANDLE keydb_new (ctrl_t ctrl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue