aboutsummaryrefslogtreecommitdiff
path: root/tool/tool.cc
diff options
context:
space:
mode:
authorAdam Langley <agl@imperialviolet.org>2014-06-20 12:00:00 -0700
committerAdam Langley <agl@chromium.org>2014-06-20 13:17:37 -0700
commitaacec17a630eacfb8023a4a3075f0ea51629eb98 (patch)
treee60c9f4fbb08be92bdc4a69801732a06c0e575a2 /tool/tool.cc
parentc5c0c7e85325820eafe78d6d5793a441ce40ec78 (diff)
downloadboringssl-aacec17a630eacfb8023a4a3075f0ea51629eb98.zip
boringssl-aacec17a630eacfb8023a4a3075f0ea51629eb98.tar.gz
boringssl-aacec17a630eacfb8023a4a3075f0ea51629eb98.tar.bz2
Add client functionality to helper tool.
Diffstat (limited to 'tool/tool.cc')
-rw-r--r--tool/tool.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/tool/tool.cc b/tool/tool.cc
index 4bcfdb3..b8aa911 100644
--- a/tool/tool.cc
+++ b/tool/tool.cc
@@ -16,12 +16,14 @@
#include <vector>
#include <openssl/err.h>
+#include <openssl/ssl.h>
bool Speed(const std::vector<std::string> &args);
+bool Client(const std::vector<std::string> &args);
static void usage(const char *name) {
- printf("Usage: %s [speed]\n", name);
+ printf("Usage: %s [speed|client]\n", name);
}
int main(int argc, char **argv) {
@@ -30,7 +32,7 @@ int main(int argc, char **argv) {
tool = argv[1];
}
- ERR_load_crypto_strings();
+ SSL_library_init();
std::vector<std::string> args;
for (int i = 2; i < argc; i++) {
@@ -39,6 +41,8 @@ int main(int argc, char **argv) {
if (tool == "speed") {
return !Speed(args);
+ } else if (tool == "s_client" || tool == "client") {
+ return !Client(args);
} else {
usage(argv[0]);
return 1;