aboutsummaryrefslogtreecommitdiffstats
path: root/sm/keydb.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-09-02 15:27:30 +0000
committerWerner Koch <[email protected]>2020-09-03 11:49:20 +0000
commita7d006293ec84532cc1972cd2f990198eadf1a1a (patch)
treee24545df6161f24cde5cbe4ca1e1153a5785b221 /sm/keydb.c
parentscd: Add handling of "Algorithm Information" DO. (diff)
downloadgnupg-a7d006293ec84532cc1972cd2f990198eadf1a1a.tar.gz
gnupg-a7d006293ec84532cc1972cd2f990198eadf1a1a.zip
sm: Add arg ctrl to keydb_new.
* sm/keydb.c (keydb_new): Add arg and change all callers. -- This will be used later.
Diffstat (limited to 'sm/keydb.c')
-rw-r--r--sm/keydb.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sm/keydb.c b/sm/keydb.c
index 5c7ff6fce..ede65f458 100644
--- a/sm/keydb.c
+++ b/sm/keydb.c
@@ -398,11 +398,13 @@ keydb_add_resource (ctrl_t ctrl, const char *url, int force, int *auto_created)
KEYDB_HANDLE
-keydb_new (void)
+keydb_new (ctrl_t ctrl)
{
KEYDB_HANDLE hd;
int i, j;
+ (void)ctrl;
+
if (DBG_CLOCK)
log_clock ("%s: enter\n", __func__);
@@ -1305,7 +1307,7 @@ keydb_store_cert (ctrl_t ctrl, ksba_cert_t cert, int ephemeral, int *existed)
return gpg_error (GPG_ERR_GENERAL);
}
- kh = keydb_new ();
+ kh = keydb_new (ctrl);
if (!kh)
{
log_error (_("failed to allocate keyDB handle\n"));
@@ -1391,7 +1393,7 @@ keydb_set_cert_flags (ctrl_t ctrl, ksba_cert_t cert, int ephemeral,
return gpg_error (GPG_ERR_GENERAL);
}
- kh = keydb_new ();
+ kh = keydb_new (ctrl);
if (!kh)
{
log_error (_("failed to allocate keyDB handle\n"));
@@ -1462,7 +1464,7 @@ keydb_clear_some_cert_flags (ctrl_t ctrl, strlist_t names)
(void)ctrl;
- hd = keydb_new ();
+ hd = keydb_new (ctrl);
if (!hd)
{
log_error ("keydb_new failed\n");