2 * This file is part of secnet.
3 * See README for full list of copyright holders.
5 * secnet is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
10 * secnet is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * version 3 along with secnet; if not, see
17 * https://www.gnu.org/licenses/gpl.html.
25 /*----- shared with site.c -----*/
29 struct sigpubkey_if *pubkey; /* does not need ->sethash calling */
36 struct peer_pubkey keys[MAX_SIG_KEYS];
39 extern struct peer_keyset *
40 keyset_load(const char *path, struct buffer_if *data_buf,
41 struct log_if *log, int logcl_enoent,
42 struct hash_if *defhash);
44 extern void keyset_dispose(struct peer_keyset **ks);
46 static inline struct peer_keyset *keyset_dup(struct peer_keyset *in) {
52 pubkey_want(struct peer_keyset *building /* refcount and serial undef */,
53 struct sigkeyid *id, const struct sigscheme_info *scheme);
55 #endif /* pubkeys_h */