summaryrefslogtreecommitdiffstats
path: root/src/handshake.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-20 17:08:04 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-20 17:08:04 +0200
commit78c5d1284c7d8e77fdcb9832a3952b906452046d (patch)
tree9ef1991ac1ebfcd35ff21c8b1bdfcd595465dbfd /src/handshake.c
parentb3c602a025057a306e5083babeabd83f420bceb8 (diff)
downloadfastd-78c5d1284c7d8e77fdcb9832a3952b906452046d.tar
fastd-78c5d1284c7d8e77fdcb9832a3952b906452046d.zip
Don't send chosen method name when it doesn't matter
Diffstat (limited to 'src/handshake.c')
-rw-r--r--src/handshake.c2
1 files changed, 1 insertions, 1 deletions
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) {