summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c8
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;