diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-11-03 15:12:27 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2018-11-03 15:12:50 +0000 |
commit | 6ff3238825f21e0abec37b1d485318648d824cab (patch) | |
tree | 489406862f83738f0304d364666096fccc5cf610 /frontends/monkey/cert.c | |
parent | 4fcb6eb3016de68b4a742cd6b4d2248550529deb (diff) | |
download | netsurf-6ff3238825f21e0abec37b1d485318648d824cab.tar.gz netsurf-6ff3238825f21e0abec37b1d485318648d824cab.tar.bz2 |
centralise monkey output generation
Diffstat (limited to 'frontends/monkey/cert.c')
-rw-r--r-- | frontends/monkey/cert.c | 18 |
1 files changed, 9 insertions, 9 deletions
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; } - - |