mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
sm: Remove unused arg SECRET from keydb functions.
* sm/keydb.c (struct resource_item): Remove field 'secret'. (keydb_add_resource): Remove arg 'secret' and change all callers. (keydb_new): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
ee08677d63
commit
c8044c6e33
14 changed files with 31 additions and 42 deletions
|
@ -141,7 +141,7 @@ gpgsm_get_default_cert (ctrl_t ctrl, ksba_cert_t *r_cert)
|
|||
int rc;
|
||||
char *p;
|
||||
|
||||
hd = keydb_new (0);
|
||||
hd = keydb_new ();
|
||||
if (!hd)
|
||||
return gpg_error (GPG_ERR_GENERAL);
|
||||
rc = keydb_search_first (hd);
|
||||
|
@ -218,7 +218,7 @@ get_default_signer (ctrl_t ctrl)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
kh = keydb_new (0);
|
||||
kh = keydb_new ();
|
||||
if (!kh)
|
||||
return NULL;
|
||||
|
||||
|
@ -331,7 +331,7 @@ gpgsm_sign (ctrl_t ctrl, certlist_t signerlist,
|
|||
|
||||
audit_set_type (ctrl->audit, AUDIT_TYPE_SIGN);
|
||||
|
||||
kh = keydb_new (0);
|
||||
kh = keydb_new ();
|
||||
if (!kh)
|
||||
{
|
||||
log_error (_("failed to allocate keyDB handle\n"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue