summaryrefslogtreecommitdiffstats
path: root/src/protocol_null.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-26 06:05:36 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-26 06:05:36 +0200
commite89cfb2f0b8159f602ecae6b53c0ee59b112601d (patch)
tree886aa6782bd795683c1ad214543e48b4af4a190b /src/protocol_null.c
parenta02fb0711ba496877c111b118b78d404151a8b8d (diff)
downloadfastd-e89cfb2f0b8159f602ecae6b53c0ee59b112601d.tar
fastd-e89cfb2f0b8159f602ecae6b53c0ee59b112601d.zip
Implement encrypted send/receive
Diffstat (limited to 'src/protocol_null.c')
-rw-r--r--src/protocol_null.c6
1 files changed, 6 insertions, 0 deletions
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,