diff options
Diffstat (limited to 'kbx/keybox-update.c')
-rw-r--r-- | kbx/keybox-update.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/kbx/keybox-update.c b/kbx/keybox-update.c index 03009618b..c29e31666 100644 --- a/kbx/keybox-update.c +++ b/kbx/keybox-update.c @@ -209,7 +209,7 @@ rename_tmp_file (const char *bakfname, const char *tmpfname, */ static int blob_filecopy (int mode, const char *fname, KEYBOXBLOB blob, - int secret, off_t start_offset, unsigned int n_packets ) + int secret, off_t start_offset) { FILE *fp, *newfp; int rc=0; @@ -392,7 +392,7 @@ keybox_insert_cert (KEYBOX_HANDLE hd, ksba_cert_t cert, rc = _keybox_create_x509_blob (&blob, cert, sha1_digest, hd->ephemeral); if (!rc) { - rc = blob_filecopy (1, fname, blob, hd->secret, 0, 0 ); + rc = blob_filecopy (1, fname, blob, hd->secret, 0); _keybox_release_blob (blob); /* if (!rc && !hd->secret && kb_offtbl) */ /* { */ @@ -406,6 +406,9 @@ int keybox_update_cert (KEYBOX_HANDLE hd, ksba_cert_t cert, unsigned char *sha1_digest) { + (void)hd; + (void)cert; + (void)sha1_digest; return -1; } @@ -426,6 +429,8 @@ keybox_set_flags (KEYBOX_HANDLE hd, int what, int idx, unsigned int value) const unsigned char *buffer; size_t length; + (void)idx; /* Not yet used. */ + if (!hd) return gpg_error (GPG_ERR_INV_VALUE); if (!hd->found.blob) |