mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
d62797ebcc
commit
616c60d93d
6 changed files with 70 additions and 23 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue