Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-06-04 22:26:04 +0300
committerAdam Langley <agl@google.com>2015-06-05 21:40:18 +0300
commit1043ac0fac8b6a7b0c82c5e7cca5afffc98d5b87 (patch)
tree227efdc21518accbc21104ac4dbafe5d13240a99 /tool
parent839b881c612c698d7331191beac7d565649f5351 (diff)
Add a flag to bssl client to enable False Start.
One more flag we'd need for bssl client to mimic Chromium. Change-Id: I66bb43f0d6789c8ab922679747b7e9bc28c1d849 Reviewed-on: https://boringssl-review.googlesource.com/5010 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'tool')
-rw-r--r--tool/client.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/client.cc b/tool/client.cc
index 1de0df27..9f25eeaf 100644
--- a/tool/client.cc
+++ b/tool/client.cc
@@ -70,6 +70,10 @@ static const struct argument kArguments[] = {
"The key to use for signing a channel ID",
},
{
+ "-false-start", kBooleanArgument,
+ "Enable False Start",
+ },
+ {
"", kOptionalArgument, "",
},
};
@@ -214,6 +218,10 @@ bool Client(const std::vector<std::string> &args) {
ctx->tlsext_channel_id_enabled_new = 1;
}
+ if (args_map.count("-false-start") != 0) {
+ SSL_CTX_set_mode(ctx.get(), SSL_MODE_ENABLE_FALSE_START);
+ }
+
int sock = -1;
if (!Connect(&sock, args_map["-connect"])) {
return false;