diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-01-02 19:18:28 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-01-02 19:18:28 +0000 |
commit | 3b1ef784fd53095213fa8b89806982567359dca4 (patch) | |
tree | ba63814479453a3618afb6b51aafd19aa3506ca1 /frontends/amiga/sslcert.h | |
parent | eb63c1cc50847b88e598cdf0f775814a43a2799e (diff) | |
parent | 2bd8eb8c0b468799109191e63e939ea7bd69f8a1 (diff) | |
download | netsurf-3b1ef784fd53095213fa8b89806982567359dca4.tar.gz netsurf-3b1ef784fd53095213fa8b89806982567359dca4.tar.bz2 |
Partially implement Amiga core window
Migrate SSL cert window to use core window
Core window implementation has some features missing but is good enough for SSL cert
I will improve it as I migrate the other windows.
Diffstat (limited to 'frontends/amiga/sslcert.h')
-rw-r--r-- | frontends/amiga/sslcert.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/frontends/amiga/sslcert.h b/frontends/amiga/sslcert.h index 86ce9c476..392989f02 100644 --- a/frontends/amiga/sslcert.h +++ b/frontends/amiga/sslcert.h @@ -1,5 +1,5 @@ /* - * Copyright 2009 Chris Young <chris@unsatisfactorysoftware.co.uk> + * Copyright 2017 Chris Young <chris@unsatisfactorysoftware.co.uk> * * This file is part of NetSurf, http://www.netsurf-browser.org/ * @@ -18,11 +18,21 @@ #ifndef AMIGA_SSLCERT_H #define AMIGA_SSLCERT_H +struct nsurl; +struct ssl_cert_info; -nserror gui_cert_verify(nsurl *url, +/** + * Prompt the user to verify a certificate with issues. + * + * \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 + * \return NSERROR_OK or error code if prompt creation failed. + */ +nserror ami_cert_verify(struct nsurl *url, const struct ssl_cert_info *certs, unsigned long num, - nserror (*cb)(bool proceed, void *pw), void *cbpw); - -void ami_ssl_free(struct treeview_window *twin); - + nserror (*cb)(bool proceed, void *pw), void *cbpw); #endif + |