summaryrefslogtreecommitdiff
path: root/frontends/riscos/sslcert.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-12-28 15:23:34 +0000
committerVincent Sanders <vince@kyllikki.org>2016-12-28 15:26:02 +0000
commit337f9948d51d48f8b2a01694e07ea1bf4fa337af (patch)
tree4a301592d4b81875dbd70963e4ca6da76ee3a055 /frontends/riscos/sslcert.h
parent72d3bec792c614783d6333267852675f14f7bf94 (diff)
downloadnetsurf-337f9948d51d48f8b2a01694e07ea1bf4fa337af.tar.gz
netsurf-337f9948d51d48f8b2a01694e07ea1bf4fa337af.tar.bz2
Update RISC OS ssl certificate viewer to core window interface
Diffstat (limited to 'frontends/riscos/sslcert.h')
-rw-r--r--frontends/riscos/sslcert.h27
1 files changed, 20 insertions, 7 deletions
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 <http://www.gnu.org/licenses/>.
*/
-/** \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