mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +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
|
@ -319,7 +319,7 @@ gpgsm_add_to_certlist (ctrl_t ctrl, const char *name, int secret,
|
|||
rc = classify_user_id (name, &desc, 0);
|
||||
if (!rc)
|
||||
{
|
||||
kh = keydb_new (0);
|
||||
kh = keydb_new ();
|
||||
if (!kh)
|
||||
rc = gpg_error (GPG_ERR_ENOMEM);
|
||||
else
|
||||
|
@ -498,7 +498,7 @@ gpgsm_find_cert (const char *name, ksba_sexp_t keyid, ksba_cert_t *r_cert)
|
|||
rc = classify_user_id (name, &desc, 0);
|
||||
if (!rc)
|
||||
{
|
||||
kh = keydb_new (0);
|
||||
kh = keydb_new ();
|
||||
if (!kh)
|
||||
rc = gpg_error (GPG_ERR_ENOMEM);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue