From 6ff3238825f21e0abec37b1d485318648d824cab Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 3 Nov 2018 15:12:27 +0000 Subject: centralise monkey output generation --- frontends/monkey/cert.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'frontends/monkey/cert.c') diff --git a/frontends/monkey/cert.c b/frontends/monkey/cert.c index a19975527..0827ff064 100644 --- a/frontends/monkey/cert.c +++ b/frontends/monkey/cert.c @@ -22,6 +22,7 @@ #include "utils/ring.h" #include "utils/nsurl.h" +#include "monkey/output.h" #include "monkey/cert.h" typedef struct monkey_cert { @@ -36,9 +37,10 @@ static monkey_cert_t *cert_ring = NULL; static uint32_t cert_ctr = 0; nserror -gui_cert_verify(nsurl *url, const struct ssl_cert_info *certs, - unsigned long num, nserror (*cb)(bool proceed, void *pw), - void *cbpw) +gui_cert_verify(nsurl *url, + const struct ssl_cert_info *certs, + unsigned long num, nserror (*cb)(bool proceed, void *pw), + void *cbpw) { monkey_cert_t *m4t = calloc(sizeof(*m4t), 1); if (m4t == NULL) { @@ -47,13 +49,11 @@ gui_cert_verify(nsurl *url, const struct ssl_cert_info *certs, m4t->cb = cb; m4t->pw = cbpw; m4t->num = cert_ctr++; - + RING_INSERT(cert_ring, m4t); - - fprintf(stdout, "SSLCERT VERIFY CERT %u URL %s\n", - m4t->num, nsurl_access(url)); + + moutf(MOUT_SSLCERT, "VERIFY CWIN %u URL %s", + m4t->num, nsurl_access(url)); return NSERROR_OK; } - - -- cgit v1.2.3