4 * Copyright (C) 2010 Collabora Ltd
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation; either version 2.1 of
9 * the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * Author: Stef Walter <stefw@collabora.co.uk>
24 #if !defined (__GCR_H_INSIDE__) && !defined (GCR_COMPILATION)
25 #error "Only <gcr/gcr.h> can be included directly."
28 #ifndef __GCR_PKCS11_CERTIFICATE_H__
29 #define __GCR_PKCS11_CERTIFICATE_H__
31 #include "gcr-types.h"
32 #include "gcr-certificate.h"
34 #include <glib-object.h>
38 #define GCR_TYPE_PKCS11_CERTIFICATE (gcr_pkcs11_certificate_get_type ())
39 #define GCR_PKCS11_CERTIFICATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_CERTIFICATE, GcrPkcs11Certificate))
40 #define GCR_PKCS11_CERTIFICATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_CERTIFICATE, GcrPkcs11CertificateClass))
41 #define GCR_IS_PKCS11_CERTIFICATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_CERTIFICATE))
42 #define GCR_IS_PKCS11_CERTIFICATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_CERTIFICATE))
43 #define GCR_PKCS11_CERTIFICATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_CERTIFICATE, GcrPkcs11CertificateClass))
45 typedef struct _GcrPkcs11Certificate GcrPkcs11Certificate;
46 typedef struct _GcrPkcs11CertificateClass GcrPkcs11CertificateClass;
47 typedef struct _GcrPkcs11CertificatePrivate GcrPkcs11CertificatePrivate;
49 struct _GcrPkcs11Certificate {
51 GcrPkcs11CertificatePrivate *pv;
54 struct _GcrPkcs11CertificateClass {
55 GckObjectClass parent_class;
58 GType gcr_pkcs11_certificate_get_type (void);
60 GckAttributes* gcr_pkcs11_certificate_get_attributes (GcrPkcs11Certificate *self);
62 GcrCertificate* gcr_pkcs11_certificate_lookup_issuer (GcrCertificate *certificate,
63 GCancellable *cancellable,
66 void gcr_pkcs11_certificate_lookup_issuer_async (GcrCertificate *certificate,
67 GCancellable *cancellable,
68 GAsyncReadyCallback callback,
71 GcrCertificate* gcr_pkcs11_certificate_lookup_issuer_finish (GAsyncResult *result,
76 #endif /* __GCR_PKCS11_CERTIFICATE_H__ */