From 72e3f6532a46b6435b3143ed4d25c825a5fbd477 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 29 Oct 2013 17:00:38 +0100 Subject: Drop compatiblity code for fastd 0.4 --- src/handshake.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/handshake.c') 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) { -- cgit v1.2.3