aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/tls_client.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-16 16:27:32 -0500
committerJack Lloyd <[email protected]>2016-11-16 16:27:32 -0500
commitcaf5c2f79a063fb6b11450fbf6c98a5a35f251ff (patch)
treef374dcf022f0cdae9fed48b99759212a1dedd3e7 /src/cli/tls_client.cpp
parent10c2f3f984c6c74d6a94270ee6e9e1be00f68500 (diff)
Fix TLS client next protocol handling
[ci skip]
Diffstat (limited to 'src/cli/tls_client.cpp')
-rw-r--r--src/cli/tls_client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli/tls_client.cpp b/src/cli/tls_client.cpp
index de7e08086..0d96f3348 100644
--- a/src/cli/tls_client.cpp
+++ b/src/cli/tls_client.cpp
@@ -91,13 +91,14 @@ class TLS_Client final : public Command, public Botan::TLS::Callbacks
const std::string host = get_arg("host");
const uint16_t port = get_arg_sz("port");
const std::string transport = get_arg("type");
+ const std::string next_protos = get_arg("next-protocols");
if(transport != "tcp" && transport != "udp")
throw CLI_Usage_Error("Invalid transport type '" + transport + "' for TLS");
const bool use_tcp = (transport == "tcp");
- const std::vector<std::string> protocols_to_offer = Botan::split_on("next-protocols", ',');
+ const std::vector<std::string> protocols_to_offer = Botan::split_on(next_protos, ',');
m_sockfd = connect_to_host(host, port, use_tcp);