/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * GIO - GLib Certificate, Output and Gnutlsing Library * * Copyright © 2011 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General * Public License along with this library; if not, see * . * * In addition, when the library is used with OpenSSL, a special * exception applies. Refer to the LICENSE_EXCEPTION file for details. * * Author: Stef Walter */ #ifndef __G_TLS_CERTIFICATE_GNUTLS_PKCS11_H__ #define __G_TLS_CERTIFICATE_GNUTLS_PKCS11_H__ #include #include #include "gtlscertificate-gnutls.h" G_BEGIN_DECLS #define G_TYPE_TLS_CERTIFICATE_GNUTLS_PKCS11 (g_tls_certificate_gnutls_pkcs11_get_type ()) G_DECLARE_FINAL_TYPE (GTlsCertificateGnutlsPkcs11, g_tls_certificate_gnutls_pkcs11, G, TLS_CERTIFICATE_GNUTLS_PKCS11, GTlsCertificateGnutls) GTlsCertificate * g_tls_certificate_gnutls_pkcs11_new (gpointer certificate_der, gsize certificate_der_length, const gchar *certificate_uri, const gchar *private_key_uri, GTlsCertificate *issuer); gchar * g_tls_certificate_gnutls_pkcs11_build_certificate_uri (GTlsCertificateGnutlsPkcs11 *self, const gchar *interaction_id); gchar * g_tls_certificate_gnutls_pkcs11_build_private_key_uri (GTlsCertificateGnutlsPkcs11 *self, const gchar *interaction_id); G_END_DECLS #endif /* __G_TLS_CERTIFICATE_GNUTLS_PKCS11_H___ */