Home GnuPG
Diffusion GnuPG f8fbd9e7346e

keyboxd: Make use of the config table

Description

keyboxd: Make use of the config table

* kbx/backend-sqlite.c (DATABASE_VERSION): New.
(table_definitions): Make column name of table config unique.
(create_or_open_database): Read and set the database version.
(get_config_value, set_config_value): New.

Well, kind of. For now we just store the database version. Note that
for existing databases the config table should first be dropped so
that the UNIQUE constraint can be used.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Sep 25 2020, 11:52 AM
Parents
rG93e3c9788912: scd: For PC/SC, send the ESC command at init for SPR532 reader.
Branches
Unknown
Tags
Unknown