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.
21 #include "pubkeys.yy.h"
23 void keyset_dispose(struct peer_keyset **ks_io)
25 struct peer_keyset *ks=*ks_io;
29 assert(ks->refcount>=0);
30 if (ks->refcount) return;
31 for (int ki=0; ki<ks->nkeys; ki++) {
32 struct sigpubkey_if *pk=ks->keys[ki].pubkey;
38 const struct sigscheme_info *sigscheme_lookup(const char *name)
40 const struct sigscheme_info *scheme;
41 for (scheme=sigschemes; scheme->name; scheme++)
42 if (!strcmp(name,scheme->name))