diff options
author | Adam Langley <agl@google.com> | 2016-03-01 22:48:00 +0300 |
---|---|---|
committer | David Benjamin <davidben@google.com> | 2016-03-01 22:50:20 +0300 |
commit | 708db16463a21b922aed6d393ef74c3c5a366668 (patch) | |
tree | 56d5ab0912214a0581c9fec488f58846254048d9 /tool/speed.cc | |
parent | f27459e41259bd66179febbd3b89cc183791172c (diff) |
Pass |alice_msg| by reference in the SPAKE2 speed test.
This is an attempt to make MSVC happy. Currently it's saying:
..\tool\speed.cc(508) : error C2536: 'SpeedSPAKE2::<lambda_…>::SpeedSPAKE2::<lambda_…>::alice_msg' : cannot specify explicit initializer for arrays
Change-Id: Ifba1df26b5d734f142668a41834645c1549f9f52
Reviewed-on: https://boringssl-review.googlesource.com/7248
Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'tool/speed.cc')
-rw-r--r-- | tool/speed.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/speed.cc b/tool/speed.cc index a4edfe7d..9f426e21 100644 --- a/tool/speed.cc +++ b/tool/speed.cc @@ -490,7 +490,7 @@ static bool SpeedSPAKE2(const std::string &selected) { return false; } - if (!TimeFunction(&results, [alice_msg, alice_msg_len]() -> bool { + if (!TimeFunction(&results, [&alice_msg, alice_msg_len]() -> bool { ScopedSPAKE2_CTX bob(SPAKE2_CTX_new(spake2_role_bob, kBobName, sizeof(kBobName), kAliceName, sizeof(kAliceName))); |