summaryrefslogtreecommitdiffstats
path: root/src/method_ec25519_fhmqvc_xsalsa20_poly1305.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-16 08:08:16 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-16 08:08:16 +0100
commit78fe2cda0572433e40889bcd7d64dd22707bfdd0 (patch)
treecd4afdcba440e81ebd18992bdb21fa549aacdab4 /src/method_ec25519_fhmqvc_xsalsa20_poly1305.c
parentd9ed50094da3890b10872a4955dceb2817931f1f (diff)
downloadfastd-78fe2cda0572433e40889bcd7d64dd22707bfdd0.tar
fastd-78fe2cda0572433e40889bcd7d64dd22707bfdd0.zip
Move command line parsing to a new file
Diffstat (limited to 'src/method_ec25519_fhmqvc_xsalsa20_poly1305.c')
-rw-r--r--src/method_ec25519_fhmqvc_xsalsa20_poly1305.c11
1 files changed, 11 insertions, 0 deletions
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 <crypto_secretbox_xsalsa20poly1305.h>
+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,