#include <sys/un.h>
#include <unistd.h>
+#include "build-config.h"
#include "charfuncs.h"
#include "keyd.h"
#include "keydb.h"
* operations on the database to help speed it all up, or if we want
* something to only succeed if all relevant operations are successful.
*/
-static bool keyd_starttrans(struct onak_dbctx *dbctx)
+static bool keyd_starttrans(__unused struct onak_dbctx *dbctx)
{
return true;
}
*
* Ends a transaction.
*/
-static void keyd_endtrans(struct onak_dbctx *dbctx)
+static void keyd_endtrans(__unused struct onak_dbctx *dbctx)
{
return;
}
static int keyd_fetch_key(struct onak_dbctx *dbctx,
struct openpgp_fingerprint *fingerprint,
struct openpgp_publickey **publickey,
- bool intrans)
+ __unused bool intrans)
{
int keyd_fd = (intptr_t) dbctx->priv;
struct buffer_ctx keybuf;
static int keyd_fetch_key_fp(struct onak_dbctx *dbctx,
struct openpgp_fingerprint *fingerprint,
struct openpgp_publickey **publickey,
- bool intrans)
+ __unused bool intrans)
{
int keyd_fd = (intptr_t) dbctx->priv;
struct buffer_ctx keybuf;
static int keyd_fetch_key_id(struct onak_dbctx *dbctx,
uint64_t keyid,
struct openpgp_publickey **publickey,
- bool intrans)
+ __unused bool intrans)
{
int keyd_fd = (intptr_t) dbctx->priv;
struct buffer_ctx keybuf;
* are using. Returns 0 if the key existed.
*/
static int keyd_delete_key(struct onak_dbctx *dbctx,
- struct openpgp_fingerprint *fp, bool intrans)
+ struct openpgp_fingerprint *fp,
+ __unused bool intrans)
{
int keyd_fd = (intptr_t) dbctx->priv;
* it?
*/
static int keyd_store_key(struct onak_dbctx *dbctx,
- struct openpgp_publickey *publickey, bool intrans,
+ struct openpgp_publickey *publickey,
+ __unused bool intrans,
bool update)
{
int keyd_fd = (intptr_t) dbctx->priv;
* this file are called in order to allow the DB to be initialized ready
* for access.
*/
-struct onak_dbctx *keydb_keyd_init(struct onak_db_config *dbcfg, bool readonly)
+struct onak_dbctx *keydb_keyd_init(struct onak_db_config *dbcfg,
+ __unused bool readonly)
{
struct sockaddr_un sock;
uint32_t cmd = KEYD_CMD_UNKNOWN;