From 25ad3c22d79d06c16a5fc652b0a6e3ffd99ad2b6 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 24 Sep 2020 10:27:19 +0200 Subject: keyboxd: Implement multiple search descriptions. * kbx/kbx-client-util.c (kbx_client_data_simple): New. * kbx/backend-sqlite.c (struct be_sqlite_local_s): Add field descidx. (be_sqlite_search): Use that. * g10/call-keyboxd.c (keydb_search): Implement multi mode. -- With that change the keyboxd is at par with the keybox code. Signed-off-by: Werner Koch --- kbx/kbx-client-util.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'kbx/kbx-client-util.c') diff --git a/kbx/kbx-client-util.c b/kbx/kbx-client-util.c index e301ae025..f7477661f 100644 --- a/kbx/kbx-client-util.c +++ b/kbx/kbx-client-util.c @@ -339,6 +339,16 @@ kbx_client_data_release (kbx_client_data_t kcd) } +/* Send a simple Assuan command to the server. */ +gpg_error_t +kbx_client_data_simple (kbx_client_data_t kcd, const char *command) +{ + /* log_debug ("%s: sending command '%s'\n", __func__, command); */ + return assuan_transact (kcd->ctx, command, + NULL, NULL, NULL, NULL, NULL, NULL); +} + + /* Send the COMMAND down to the keyboxd associated with KCD. * STATUS_CB and STATUS_CB_VALUE are the usual status callback as used * by assuan_transact. After this function has returned success -- cgit v1.2.3