From a66f3991715861e1ea6bf5d80df410dc4140fd32 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 28 Jul 2019 23:12:26 -0400 Subject: s_client: Stub --- (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index f5618fb..51323f3 100644 --- a/src/main.c +++ b/src/main.c @@ -19,8 +19,24 @@ * along with wolfssl-util. If not, see . */ +#include +#include + +#include "commands.h" + +static void +usage(FILE *stream, const char *program_name) +{ + fprintf(stream, "Usage: %s s_client [options]\n", program_name); +} + int main(int argc, char **argv) { - return 0; + if (argc < 2 || strcmp(argv[1], "s_client") != 0) { + usage(stderr, argv[0]); + return 1; + } + + return s_client(argc - 2, argv + 2); } -- cgit v0.9.1