Use the new control to add a log stream.
authorRichard Levitte <levitte@openssl.org>
Thu, 29 Jun 2000 16:17:28 +0000 (16:17 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 29 Jun 2000 16:17:28 +0000 (16:17 +0000)
apps/s_client.c
apps/s_server.c

index 77df3d596e2d9a3d07a9efe0394cbe11ef4816ed..45d627a60a786163859307bc374dcfaa9a3883e3 100644 (file)
@@ -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");
index 17c16665ed0150eec29adf3ddc12bd9b82fcf3c0..61a77dff1159c3bd3275f001921780c0e847eefe 100644 (file)
@@ -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");