From 5971d37400a9b99bd49bf9c64dadd4f938edbbb1 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 29 Jun 2000 16:17:28 +0000 Subject: [PATCH] Use the new control to add a log stream. --- apps/s_client.c | 5 +++++ apps/s_server.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/apps/s_client.c b/apps/s_client.c index 77df3d596e..45d627a60a 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -367,6 +367,11 @@ bad: ERR_print_errors(bio_err); goto end; } + if (c_debug) + { + ENGINE_ctrl(e, ENGINE_CTRL_SET_LOGSTREAM, + 0, bio_err, 0); + } if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { BIO_printf(bio_err,"can't use that engine\n"); diff --git a/apps/s_server.c b/apps/s_server.c index 17c16665ed..61a77dff11 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -627,6 +627,11 @@ bad: ERR_print_errors(bio_err); goto end; } + if (s_debug) + { + ENGINE_ctrl(e, ENGINE_CTRL_SET_LOGSTREAM, + 0, bio_err, 0); + } if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { BIO_printf(bio_err,"can't use that engine\n"); -- 2.25.1