NetSurf
sslcert.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 Chris Young <chris@unsatisfactorysoftware.co.uk>
3  *
4  * This file is part of NetSurf, http://www.netsurf-browser.org/
5  *
6  * NetSurf is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 2 of the License.
9  *
10  * NetSurf is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef AMIGA_SSLCERT_H
20 #define AMIGA_SSLCERT_H
21 struct nsurl;
22 struct cert_chain;
23 
24 /**
25  * Prompt the user to verify a certificate with issues.
26  *
27  * \param url The URL being verified.
28  * \param certs The certificate to be verified
29  * \param num The number of certificates to be verified.
30  * \param cb Callback upon user decision.
31  * \param cbpw Context pointer passed to cb
32  * \return NSERROR_OK or error code if prompt creation failed.
33  */
34 nserror ami_cert_verify(struct nsurl *url,
35  const struct cert_chain *chain,
36  nserror (*cb)(bool proceed, void *pw), void *cbpw);
37 #endif
38 
nserror ami_cert_verify(struct nsurl *url, const struct cert_chain *chain, nserror(*cb)(bool proceed, void *pw), void *cbpw)
Prompt the user to verify a certificate with issues.
Definition: sslcert.c:300
nserror
Enumeration of error codes.
Definition: errors.h:29
X509 certificate chain.
Definition: ssl_certs.h:59
struct nsurl nsurl
NetSurf URL object.
Definition: nsurl.h:31