Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Tapuska <dtapuska@chromium.org>2014-12-11 03:09:52 +0300
committerAdam Langley <agl@google.com>2014-12-11 21:47:21 +0300
commitb8a824d70dadbdead58759e3d25113dc9b5ec750 (patch)
tree43fbaca4b1cebd765c7b080320716a5ea0e936aa /tool/tool.cc
parente3594df7f100443933325a9b7c5923c6c10b83de (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.cc5
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);