]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Write OCSP status request debug information to logfile, if set
authorFiona Klute <fiona.klute@gmx.de>
Sun, 1 Dec 2019 18:20:17 +0000 (19:20 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 1 Dec 2019 21:34:54 +0000 (22:34 +0100)
The status information not part of the payload data and should be
separate when using --logfile.

Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
src/cli.c

index 0eaa34a4273e4c8bdcc2156e192c39c59281b286..4f4a26c89fa9d2965bad1f5e2caee16c108e85f7 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -1171,7 +1171,7 @@ print_other_info(gnutls_session_t session)
                    gnutls_ocsp_resp_print(r, flag, &p);
                gnutls_ocsp_resp_deinit(r);
                if (ret>=0) {
-                       fputs((char*)p.data, stdout);
+                       log_msg(stdout, "%s", (char*) p.data);
                        gnutls_free(p.data);
                }
        }