Home GnuPG
Diffusion GnuPG 616c60d93dfa

keyboxd: Add ephemeral and revoked flag to the sqlite backend.

Description

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>

Details

Provenance
wernerAuthored on Sep 10 2020, 4:41 PM
Parents
rGd62797ebcc15: doc: Update and extend module overview
Branches
Unknown
Tags
Unknown