2 * Copyright © 2003 Robert Marcano
3 * Copyright © 2005 Crispin Flowerday
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This program 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.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 * $Id: ephy-certificate-manager.h 6952 2007-03-11 19:42:02Z chpe $
22 #ifndef EPHY_CERTIFICATE_MANAGER_H
23 #define EPHY_CERTIFICATE_MANAGER_H
25 #include <glib-object.h>
27 #include "ephy-x509-cert.h"
31 #define EPHY_TYPE_CERTIFICATE_MANAGER (ephy_certificate_manager_get_type ())
32 #define EPHY_CERTIFICATE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EPHY_TYPE_CERTIFICATE_MANAGER, EphyCertificateManager))
33 #define EPHY_CERTIFICATE_MANAGER_IFACE(klass) (G_TYPE_CHECK_IFACE_CAST ((klass), EPHY_TYPE_CERTIFICATE_MANAGER, EphyCertificateManagerIface))
34 #define EPHY_IS_CERTIFICATE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EPHY_TYPE_CERTIFICATE_MANAGER))
35 #define EPHY_IS_CERTIFICATE_MANAGER_IFACE(klass) (G_TYPE_CHECK_IFACE_TYPE ((klass), EPHY_TYPE_CERTIFICATE_MANAGER))
36 #define EPHY_CERTIFICATE_MANAGER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EPHY_TYPE_CERTIFICATE_MANAGER, EphyCertificateManagerIface))
38 typedef struct _EphyCertificateManager EphyCertificateManager
;
39 typedef struct _EphyCertificateManagerIface EphyCertificateManagerIface
;
41 struct _EphyCertificateManagerIface
43 GTypeInterface base_iface
;
46 GList
* (* get_certificates
) (EphyCertificateManager
*manager
,
47 EphyX509CertType type
);
48 gboolean (* remove_certificate
) (EphyCertificateManager
*manager
,
50 gboolean (* import
) (EphyCertificateManager
*manager
,
54 GType
ephy_certificate_manager_get_type (void);
57 GList
* ephy_certificate_manager_get_certificates (EphyCertificateManager
*manager
,
58 EphyX509CertType type
);
60 gboolean
ephy_certificate_manager_remove_certificate (EphyCertificateManager
*manager
,
63 gboolean
ephy_certificate_manager_import (EphyCertificateManager
*manager
,