diff options
author | Dave Tapuska <dtapuska@chromium.org> | 2014-12-11 03:09:52 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-12-11 21:47:21 +0300 |
commit | b8a824d70dadbdead58759e3d25113dc9b5ec750 (patch) | |
tree | 43fbaca4b1cebd765c7b080320716a5ea0e936aa /tool/tool.cc | |
parent | e3594df7f100443933325a9b7c5923c6c10b83de (diff) |
Add the ability to run a server from the command line tool.
Change-Id: Ia8588aeaad8b44a6a306d7d5bfecc895adde1910
Diffstat (limited to 'tool/tool.cc')
-rw-r--r-- | tool/tool.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tool/tool.cc b/tool/tool.cc index f35cc7cd..a57cd166 100644 --- a/tool/tool.cc +++ b/tool/tool.cc @@ -21,12 +21,13 @@ #if !defined(OPENSSL_WINDOWS) bool Client(const std::vector<std::string> &args); +bool Server(const std::vector<std::string> &args); #endif bool DoPKCS12(const std::vector<std::string> &args); bool Speed(const std::vector<std::string> &args); static void usage(const char *name) { - printf("Usage: %s [speed|client|pkcs12]\n", name); + printf("Usage: %s [speed|client|server|pkcs12]\n", name); } int main(int argc, char **argv) { @@ -47,6 +48,8 @@ int main(int argc, char **argv) { #if !defined(OPENSSL_WINDOWS) } else if (tool == "s_client" || tool == "client") { return !Client(args); + } else if (tool == "s_server" || tool == "server") { + return !Server(args); #endif } else if (tool == "pkcs12") { return !DoPKCS12(args); |