From 14a44b4016d3350c85c419e1e1b683c1574cd86e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 28 Mar 2012 20:47:06 +0200 Subject: Add keygen function --- src/protocol_null.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/protocol_null.c') diff --git a/src/protocol_null.c b/src/protocol_null.c index cdf6694..77839d9 100644 --- a/src/protocol_null.c +++ b/src/protocol_null.c @@ -89,6 +89,9 @@ static void protocol_send(fastd_context *ctx, fastd_peer *peer, fastd_buffer buf static void protocol_free_peer_state(fastd_context *ctx, fastd_peer *peer) { } +static void protocol_generate_key(fastd_context *ctx) { + exit_error(ctx, "trying to generate key for `null' protocol"); +} const fastd_protocol fastd_protocol_null = { .name = "null", @@ -104,4 +107,6 @@ const fastd_protocol fastd_protocol_null = { .send = protocol_send, .free_peer_state = protocol_free_peer_state, + + .generate_key = protocol_generate_key, }; -- cgit v1.2.3