From e89cfb2f0b8159f602ecae6b53c0ee59b112601d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 26 Mar 2012 06:05:36 +0200 Subject: Implement encrypted send/receive --- src/protocol_null.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/protocol_null.c') diff --git a/src/protocol_null.c b/src/protocol_null.c index ffe6ad1..9bbe667 100644 --- a/src/protocol_null.c +++ b/src/protocol_null.c @@ -43,6 +43,10 @@ static size_t protocol_max_packet_size(fastd_context *ctx) { return fastd_max_packet_size(ctx); } +static size_t protocol_min_head_space(fastd_context *ctx) { + return 0; +} + static char* protocol_peer_str(const fastd_context *ctx, const fastd_peer *peer) { char addr_buf[INET6_ADDRSTRLEN] = ""; char *ret; @@ -124,6 +128,8 @@ const fastd_protocol fastd_protocol_null = { .init = protocol_init, .max_packet_size = protocol_max_packet_size, + .min_encrypt_head_space = protocol_min_head_space, + .min_decrypt_head_space = protocol_min_head_space, .peer_str = protocol_peer_str, -- cgit v1.2.3