From 78fe2cda0572433e40889bcd7d64dd22707bfdd0 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 16 Mar 2012 08:08:16 +0100 Subject: Move command line parsing to a new file --- src/method_ec25519_fhmqvc_xsalsa20_poly1305.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/method_ec25519_fhmqvc_xsalsa20_poly1305.c') diff --git a/src/method_ec25519_fhmqvc_xsalsa20_poly1305.c b/src/method_ec25519_fhmqvc_xsalsa20_poly1305.c index 2a01ccd..b57531f 100644 --- a/src/method_ec25519_fhmqvc_xsalsa20_poly1305.c +++ b/src/method_ec25519_fhmqvc_xsalsa20_poly1305.c @@ -36,13 +36,23 @@ #include +typedef struct _method_config { + ecc_secret_key_256 secret_key; +} method_config; + typedef struct _method_peer_config { + ecc_public_key_256 public_key; } method_peer_config; typedef struct _method_peer_state { } method_peer_state; +static bool method_handle_config(fastd_context *ctx, const fastd_config *conf, const char *option) { + printf("Unknown option: %s\n", option); + return false; +} + static bool method_check_config(fastd_context *ctx, const fastd_config *conf) { return true; } @@ -103,6 +113,7 @@ static void method_free_peer_private(fastd_context *ctx, fastd_peer *peer) { const fastd_method fastd_method_ec25519_fhmqvc_xsalsa20_poly1305 = { .name = "ec25519-fhmqvc-xsalsa20-poly1305", + .handle_config = method_handle_config, .check_config = method_check_config, .max_packet_size = method_max_packet_size, -- cgit v1.2.3