diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-28 20:47:06 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-28 20:47:06 +0200 |
commit | 14a44b4016d3350c85c419e1e1b683c1574cd86e (patch) | |
tree | 3804218093a4ea3f56396efbc2c1e92b4a416dc3 /src/protocol_null.c | |
parent | c8ea4868b37f53e138548b7adee756834ad7ea66 (diff) | |
download | fastd-14a44b4016d3350c85c419e1e1b683c1574cd86e.tar fastd-14a44b4016d3350c85c419e1e1b683c1574cd86e.zip |
Add keygen function
Diffstat (limited to 'src/protocol_null.c')
-rw-r--r-- | src/protocol_null.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, }; |