diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-07-31 01:24:57 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-07-31 13:25:20 +0100 |
commit | b939afe3fc70be446d9ffd6e6071a4af5cf98a8a (patch) | |
tree | 65c10f7b9d363f20621e2b4429f4eb3c958fa986 /frontends/monkey/cert.c | |
parent | 51725592c96b3cb94aa70761b10960c738815534 (diff) | |
download | netsurf-b939afe3fc70be446d9ffd6e6071a4af5cf98a8a.tar.gz netsurf-b939afe3fc70be446d9ffd6e6071a4af5cf98a8a.tar.bz2 |
Allow certificate verification user prompt creation to return errors
Diffstat (limited to 'frontends/monkey/cert.c')
-rw-r--r-- | frontends/monkey/cert.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/frontends/monkey/cert.c b/frontends/monkey/cert.c index ec1b1ce43..710e71098 100644 --- a/frontends/monkey/cert.c +++ b/frontends/monkey/cert.c @@ -35,15 +35,14 @@ typedef struct monkey_cert { static monkey_cert_t *cert_ring = NULL; static uint32_t cert_ctr = 0; -void +nserror 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) { - cb(false, cbpw); - return; + return NSERROR_NOMEM; } m4t->cb = cb; m4t->pw = cbpw; @@ -53,6 +52,8 @@ gui_cert_verify(nsurl *url, const struct ssl_cert_info *certs, fprintf(stdout, "SSLCERT VERIFY CERT %u URL %s\n", m4t->num, nsurl_access(url)); + + return NSERROR_OK; } |