summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-29 17:00:38 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-29 17:00:38 +0100
commit72e3f6532a46b6435b3143ed4d25c825a5fbd477 (patch)
tree68ad64a1e03639a6de723f9f37c3111ec4e4ec64
parent43567141422b99efed48a529fdef384be607fd78 (diff)
downloadfastd-72e3f6532a46b6435b3143ed4d25c825a5fbd477.tar
fastd-72e3f6532a46b6435b3143ed4d25c825a5fbd477.zip
Drop compatiblity code for fastd 0.4
-rw-r--r--src/handshake.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/handshake.c b/src/handshake.c
index 5f25646..3d10d6b 100644
--- a/src/handshake.c
+++ b/src/handshake.c
@@ -152,10 +152,7 @@ static fastd_buffer_t new_handshake(fastd_context_t *ctx, uint8_t type, const ch
}
fastd_buffer_t fastd_handshake_new_init(fastd_context_t *ctx, size_t tail_space) {
- if (ctx->conf->secure_handshakes)
- return new_handshake(ctx, 1, NULL, false, tail_space);
- else
- return new_handshake(ctx, 1, "xsalsa20-poly1305" /* for backwards compatiblity with fastd 0.4 */, true, tail_space);
+ return new_handshake(ctx, 1, NULL, !ctx->conf->secure_handshakes, tail_space);
}
fastd_buffer_t fastd_handshake_new_reply(fastd_context_t *ctx, const fastd_handshake_t *handshake, const char *method, bool with_method_list, size_t tail_space) {