15 const uint8_t *ed25519_id_key,
16 const int replace_existing_entry);
18 const uint8_t *ed25519_id_key);
21 #ifdef HAVE_MODULE_DIRAUTH
41 #define KEYPIN_FOUND 0
42 #define KEYPIN_ADDED 1
43 #define KEYPIN_MISMATCH -1
44 #define KEYPIN_NOT_FOUND -2
53 typedef struct keypin_ent_st {
54 HT_ENTRY(keypin_ent_st) rsamap_node;
55 HT_ENTRY(keypin_ent_st) edmap_node;
STATIC void keypin_add_entry_to_map(keypin_ent_t *ent)
int keypin_load_journal(const char *fname)
STATIC keypin_ent_t * keypin_parse_journal_line(const char *cp)
STATIC int keypin_load_journal_impl(const char *data, size_t size)
int keypin_open_journal(const char *fname)
int keypin_check_lone_rsa(const uint8_t *rsa_id_digest)
int keypin_check(const uint8_t *rsa_id_digest, const uint8_t *ed25519_id_key)
int keypin_check_and_add(const uint8_t *rsa_id_digest, const uint8_t *ed25519_id_key, const int replace_existing_entry)
int keypin_close_journal(void)
Macros to implement mocking and selective exposure for the test code.
#define MOCK_DECL(rv, funcname, arglist)