summaryrefslogtreecommitdiffstats
path: root/kbx/backend-kbx.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-09-10 16:41:49 +0200
committerWerner Koch <wk@gnupg.org>2020-09-11 12:10:05 +0200
commit616c60d93dfab27dde00e1489c6c51340ec93b6c (patch)
treef11192f5947c856acb4256979821d688a918a9c3 /kbx/backend-kbx.c
parentdoc: Update and extend module overview (diff)
downloadgnupg2-616c60d93dfab27dde00e1489c6c51340ec93b6c.tar.xz
gnupg2-616c60d93dfab27dde00e1489c6c51340ec93b6c.zip
keyboxd: Add ephemeral and revoked flag to the sqlite backend.
* kbx/backend-support.c (be_return_pubkey): Add args is_ephemeral and is_revoked. Adjust callers. * kbx/backend-sqlite.c: Alter table pubkey to add new columns. (run_select_statement): Add new column to all selects. (be_sqlite_search): Return the new flags. -- For existing test databases the new column can be added with: alter table pubkey add ephemeral integer not null default 0; alter table pubkey add revoked integer not null default 0; Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'kbx/backend-kbx.c')
-rw-r--r--kbx/backend-kbx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kbx/backend-kbx.c b/kbx/backend-kbx.c
index d70b76097..b48795296 100644
--- a/kbx/backend-kbx.c
+++ b/kbx/backend-kbx.c
@@ -277,7 +277,8 @@ be_kbx_search (ctrl_t ctrl, backend_handle_t backend_hd, db_request_t request,
&pubkey_type, ubid);
if (err)
goto leave;
- err = be_return_pubkey (ctrl, buffer, buflen, pubkey_type, ubid);
+ /* FIXME: Return the ephemeral flag. */
+ err = be_return_pubkey (ctrl, buffer, buflen, pubkey_type, ubid, 0, 0);
if (!err)
be_cache_pubkey (ctrl, ubid, buffer, buflen, pubkey_type);
xfree (buffer);