diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-10-29 17:00:38 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-10-29 17:00:38 +0100 |
commit | 72e3f6532a46b6435b3143ed4d25c825a5fbd477 (patch) | |
tree | 68ad64a1e03639a6de723f9f37c3111ec4e4ec64 /src | |
parent | 43567141422b99efed48a529fdef384be607fd78 (diff) | |
download | fastd-72e3f6532a46b6435b3143ed4d25c825a5fbd477.tar fastd-72e3f6532a46b6435b3143ed4d25c825a5fbd477.zip |
Drop compatiblity code for fastd 0.4
Diffstat (limited to 'src')
-rw-r--r-- | src/handshake.c | 5 |
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) { |