X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=modules.c;h=38f1d0fdd1fce7e434543a36c6d49a6f193dfd8d;hb=49b56eafcd147185c28848a7c04e31a32c49a82e;hp=8658106c2691575136ae108ff4906d4a48834795;hpb=7138d0c54cd2212439434d27cb2d6ea775c3039b;p=secnet.git diff --git a/modules.c b/modules.c index 8658106..38f1d0f 100644 --- a/modules.c +++ b/modules.c @@ -1,28 +1,35 @@ -#include "secnet.h" +/* + * This file is part of secnet. + * See README for full list of copyright holders. + * + * secnet is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * secnet is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * version 3 along with secnet; if not, see + * https://www.gnu.org/licenses/gpl.html. + */ -extern init_module resolver_module; -extern init_module random_module; -extern init_module udp_module; -extern init_module util_module; -extern init_module site_module; -extern init_module transform_module; -extern init_module netlink_module; -extern init_module rsa_module; -extern init_module dh_module; -extern init_module md5_module; -extern init_module slip_module; -extern init_module tun_module; -extern init_module sha1_module; -extern init_module log_module; +#include "secnet.h" void init_builtin_modules(dict_t *dict) { + pubkeys_init(dict); resolver_module(dict); random_module(dict); udp_module(dict); + polypath_module(dict); util_module(dict); site_module(dict); - transform_module(dict); + transform_eax_module(dict); + transform_cbcmac_module(dict); netlink_module(dict); rsa_module(dict); dh_module(dict); @@ -31,4 +38,10 @@ void init_builtin_modules(dict_t *dict) tun_module(dict); sha1_module(dict); log_module(dict); + privcache_module(dict); } + +const struct sigscheme_info sigschemes[]={ + { "rsa1", 0x00, rsa1_loadpub, rsa1_loadpriv }, + { 0 } +};