aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_tls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/unit_tls.cpp')
-rw-r--r--src/tests/unit_tls.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp
index 35effc5a2..b910e3e0b 100644
--- a/src/tests/unit_tls.cpp
+++ b/src/tests/unit_tls.cpp
@@ -248,7 +248,7 @@ Test::Result test_tls_handshake(Botan::TLS::Protocol_Version offer_version,
return false;
};
- auto next_protocol_chooser = [&](std::vector<std::string> protos) {
+ auto next_protocol_chooser = [&](std::vector<std::string> protos) -> std::string {
if(r <= 2)
{
result.test_eq("protocol count", protos.size(), 2);
@@ -559,7 +559,7 @@ Test::Result test_dtls_handshake(Botan::TLS::Protocol_Version offer_version,
return true;
};
- auto next_protocol_chooser = [&](std::vector<std::string> protos) {
+ auto next_protocol_chooser = [&](std::vector<std::string> protos) -> std::string {
if(r <= 2)
{
result.test_eq("protocol count", protos.size(), 2);