From 78c5d1284c7d8e77fdcb9832a3952b906452046d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 20 Oct 2013 17:08:04 +0200 Subject: Don't send chosen method name when it doesn't matter --- src/handshake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/handshake.c b/src/handshake.c index 604e5f4..dedb482 100644 --- a/src/handshake.c +++ b/src/handshake.c @@ -150,7 +150,7 @@ static fastd_buffer_t new_handshake(fastd_context_t *ctx, uint8_t type, const fa fastd_handshake_add(ctx, &buffer, RECORD_VERSION_NAME, version_len, FASTD_VERSION); fastd_handshake_add(ctx, &buffer, RECORD_PROTOCOL_NAME, protocol_len, ctx->conf->protocol->name); - if (method) + if (method && (!with_method_list || !ctx->conf->secure_handshakes)) fastd_handshake_add(ctx, &buffer, RECORD_METHOD_NAME, method_len, method->name); if (with_method_list) { -- cgit v1.2.3