NetSurf
frontends
gtk
ssl_cert.h
Go to the documentation of this file.
1
/*
2
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>
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 NETSURF_GTK_SSL_CERT_H
20
#define NETSURF_GTK_SSL_CERT_H 1
21
22
struct
nsurl
;
23
struct
ssl_cert_info
;
24
25
/**
26
* Prompt the user to verify a certificate with issuse.
27
*
28
* \param url The URL being verified.
29
* \param certs The certificate to be verified
30
* \param num The number of certificates to be verified.
31
* \param cb Callback upon user decision.
32
* \param cbpw Context pointer passed to cb
33
* \return NSERROR_OK or error code if prompt creation failed.
34
*/
35
nserror
gtk_cert_verify
(
struct
nsurl
*url,
const
struct
ssl_cert_info
*certs,
unsigned
long
num,
nserror
(*cb)(
bool
proceed,
void
*pw),
void
*cbpw);
36
37
#endif
nserror
nserror
Enumeration of error codes.
Definition:
errors.h:29
gtk_cert_verify
nserror gtk_cert_verify(struct nsurl *url, const struct ssl_cert_info *certs, unsigned long num, nserror(*cb)(bool proceed, void *pw), void *cbpw)
Prompt the user to verify a certificate with issuse.
Definition:
ssl_cert.c:170
ssl_cert_info
ssl certificate information for certificate error message
Definition:
ssl_certs.h:53
nsurl
struct nsurl nsurl
NetSurf URL object.
Definition:
nsurl.h:31
Generated on Sun Dec 1 2019 16:18:34 for NetSurf by
1.8.13