diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-14 17:16:28 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-14 17:16:28 +0100 |
commit | d9ed50094da3890b10872a4955dceb2817931f1f (patch) | |
tree | 15f83f511489e46bbb1df5ff2443a784b0a43815 /src/fastd.c | |
parent | 4cdee0ee4745a5bb44b9f2c95812cb4f1aea0a31 (diff) | |
download | fastd-d9ed50094da3890b10872a4955dceb2817931f1f.tar fastd-d9ed50094da3890b10872a4955dceb2817931f1f.zip |
Require libuecc; rename cfxp to ecfxp; add some basic infrastructure for crypto implementation
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fastd.c b/src/fastd.c index 5dcec14..496df97 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -47,8 +47,8 @@ extern fastd_method fastd_method_null; -#ifdef WITH_CFXP -extern fastd_method fastd_method_curve25519_fhmqvc_xsalsa20_poly1305; +#ifdef WITH_METHOD_ECFXP +extern fastd_method fastd_method_ec25519_fhmqvc_xsalsa20_poly1305; #endif @@ -255,6 +255,10 @@ static void configure(fastd_context *ctx, fastd_config *conf, int argc, char *ar case 'm': if (!strcmp(optarg, "null")) conf->method = &fastd_method_null; +#ifdef WITH_METHOD_ECFXP + if (!strcmp(optarg, "ecfxp")) + conf->method = &fastd_method_ec25519_fhmqvc_xsalsa20_poly1305; +#endif else exit_error(ctx, "invalid method `%s'", optarg); break; |