From 337f9948d51d48f8b2a01694e07ea1bf4fa337af Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 28 Dec 2016 15:23:34 +0000 Subject: Update RISC OS ssl certificate viewer to core window interface --- frontends/riscos/sslcert.h | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'frontends/riscos/sslcert.h') diff --git a/frontends/riscos/sslcert.h b/frontends/riscos/sslcert.h index 17fce5552..09607f04c 100644 --- a/frontends/riscos/sslcert.h +++ b/frontends/riscos/sslcert.h @@ -17,18 +17,31 @@ * along with this program. If not, see . */ -/** \file - * SSL certificate viewer (interface). +/** + * \file + * RISC OS SSL certificate viewer interface. */ -#ifndef _NETSURF_RISCOS_SSLCERT_H_ -#define _NETSURF_RISCOS_SSLCERT_H_ +#ifndef NETSURF_RISCOS_SSLCERT_H +#define NETSURF_RISCOS_SSLCERT_H struct node; -void ro_gui_cert_preinitialise(void); -void ro_gui_cert_postinitialise(void); -void ro_gui_cert_open(struct tree *tree, struct node *node); +/** + * Load and initialise the certificate window template. + */ +void ro_gui_cert_initialise(void); + +/** + * Prompt the user to verify a certificate with issuse. + * + * \param url The URL being verified. + * \param certs The certificate to be verified + * \param num The number of certificates to be verified. + * \param cb Callback upon user decision. + * \param cbpw Context pointer passed to cb + */ +nserror gui_cert_verify(struct nsurl *url, const struct ssl_cert_info *certs, unsigned long num, nserror (*cb)(bool proceed, void *pw), void *cbpw); #endif -- cgit v1.2.3