summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s_client.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/s_client.c b/src/s_client.c
index 4ada587..8da7401 100644
--- a/src/s_client.c
+++ b/src/s_client.c
@@ -184,6 +184,7 @@ poll_fds(int sfd, WOLFSSL *ssl)
int
s_client(int argc, char **argv)
{
+ _Bool quiet = false;
char *host = NULL;
char *port = NULL;
const char *servername = NULL;
@@ -197,7 +198,7 @@ s_client(int argc, char **argv)
for (; argc > 0; --argc, ++argv) {
if (strcmp(*argv, "-quiet") == 0) {
- /* No-op */
+ quiet = true;
} else if (strcmp(*argv, "-connect") == 0) {
--argc, ++argv;
if (parse_host_port(*argv, &host, &port) == false) {
@@ -213,6 +214,10 @@ s_client(int argc, char **argv)
wolfSSL_Init();
+ if (quiet == false) {
+ wolfSSL_Debugging_ON();
+ }
+
if (
(method = wolfTLSv1_2_client_method()) == NULL ||
(ctx = wolfSSL_CTX_new(method)) == NULL ||