2017-01-10 06:08:33 +01:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_HSM_CONTROL_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_HSM_CONTROL_H
|
|
|
|
#include "config.h"
|
2017-06-24 08:50:23 +02:00
|
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
#include <ccan/tal/tal.h>
|
2018-07-09 13:17:59 +02:00
|
|
|
#include <hsmd/capabilities.h>
|
2017-01-10 06:08:33 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
struct lightningd;
|
2018-07-09 13:17:59 +02:00
|
|
|
struct pubkey;
|
|
|
|
|
|
|
|
/* Ask HSM for a new fd for a subdaemon to use. */
|
|
|
|
int hsm_get_client_fd(struct lightningd *ld,
|
|
|
|
const struct pubkey *id,
|
|
|
|
u64 dbid,
|
|
|
|
int capabilities);
|
2017-01-10 06:08:33 +01:00
|
|
|
|
2018-05-03 14:20:28 +02:00
|
|
|
void hsm_init(struct lightningd *ld);
|
2017-01-10 06:08:33 +01:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_HSM_CONTROL_H */
|