Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtlscertificate.h
Go to the documentation of this file.
1/* GIO - GLib Input, Output and Streaming Library
2 *
3 * Copyright (C) 2010 Red Hat, Inc.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef __G_TLS_CERTIFICATE_H__
22#define __G_TLS_CERTIFICATE_H__
23
24#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
25#error "Only <gio/gio.h> can be included directly."
26#endif
27
28#include <gio/giotypes.h>
29
31
32#define G_TYPE_TLS_CERTIFICATE (g_tls_certificate_get_type ())
33#define G_TLS_CERTIFICATE(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), G_TYPE_TLS_CERTIFICATE, GTlsCertificate))
34#define G_TLS_CERTIFICATE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_TLS_CERTIFICATE, GTlsCertificateClass))
35#define G_IS_TLS_CERTIFICATE(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_TLS_CERTIFICATE))
36#define G_IS_TLS_CERTIFICATE_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_TLS_CERTIFICATE))
37#define G_TLS_CERTIFICATE_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), G_TYPE_TLS_CERTIFICATE, GTlsCertificateClass))
38
40typedef struct _GTlsCertificatePrivate GTlsCertificatePrivate;
41
47
49{
51
53 GSocketConnectable *identity,
54 GTlsCertificate *trusted_ca);
55
56 /*< private >*/
57 /* Padding for future expansion */
59};
60
63
66 gssize length,
67 GError **error);
70 gsize length,
71 const gchar *password,
72 GError **error);
75 const gchar *password,
76 GError **error);
79 GError **error);
82 const gchar *key_file,
83 GError **error);
86 const gchar *private_key_pkcs11_uri,
87 GError **error);
88
91 GError **error);
92
95
98 GSocketConnectable *identity,
99 GTlsCertificate *trusted_ca);
100
103 GTlsCertificate *cert_two);
104
107
110
113
116
119
122
124
125#endif /* __G_TLS_CERTIFICATE_H__ */
struct _GDateTime GDateTime
Definition gdatetime.h:122
#define GIO_AVAILABLE_IN_ALL
#define GIO_AVAILABLE_IN_2_72
#define GIO_AVAILABLE_IN_2_68
#define GIO_AVAILABLE_IN_2_70
#define GIO_AVAILABLE_IN_2_34
GTlsCertificateFlags
Definition gioenums.h:1633
struct _GSocketConnectable GSocketConnectable
Definition giotypes.h:143
signed long gssize
Definition glibconfig.h:82
unsigned char guint8
Definition glibconfig.h:46
unsigned long gsize
Definition glibconfig.h:83
typedefG_BEGIN_DECLS struct _GList GList
Definition glist.h:39
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
GIO_AVAILABLE_IN_2_70 GPtrArray * g_tls_certificate_get_dns_names(GTlsCertificate *cert)
GIO_AVAILABLE_IN_2_70 gchar * g_tls_certificate_get_issuer_name(GTlsCertificate *cert)
GIO_AVAILABLE_IN_2_72 GTlsCertificate * g_tls_certificate_new_from_pkcs12(const guint8 *data, gsize length, const gchar *password, GError **error)
GIO_AVAILABLE_IN_ALL GTlsCertificate * g_tls_certificate_new_from_file(const gchar *file, GError **error)
GIO_AVAILABLE_IN_ALL GType g_tls_certificate_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_2_70 GDateTime * g_tls_certificate_get_not_valid_after(GTlsCertificate *cert)
GIO_AVAILABLE_IN_2_34 gboolean g_tls_certificate_is_same(GTlsCertificate *cert_one, GTlsCertificate *cert_two)
GIO_AVAILABLE_IN_ALL GList * g_tls_certificate_list_new_from_file(const gchar *file, GError **error)
GIO_AVAILABLE_IN_ALL GTlsCertificate * g_tls_certificate_get_issuer(GTlsCertificate *cert)
GIO_AVAILABLE_IN_2_72 GTlsCertificate * g_tls_certificate_new_from_file_with_password(const gchar *file, const gchar *password, GError **error)
GIO_AVAILABLE_IN_2_70 GPtrArray * g_tls_certificate_get_ip_addresses(GTlsCertificate *cert)
GIO_AVAILABLE_IN_2_70 gchar * g_tls_certificate_get_subject_name(GTlsCertificate *cert)
GIO_AVAILABLE_IN_ALL GTlsCertificateFlags g_tls_certificate_verify(GTlsCertificate *cert, GSocketConnectable *identity, GTlsCertificate *trusted_ca)
GIO_AVAILABLE_IN_2_68 GTlsCertificate * g_tls_certificate_new_from_pkcs11_uris(const gchar *pkcs11_uri, const gchar *private_key_pkcs11_uri, GError **error)
GIO_AVAILABLE_IN_2_70 GDateTime * g_tls_certificate_get_not_valid_before(GTlsCertificate *cert)
GIO_AVAILABLE_IN_ALL GTlsCertificate * g_tls_certificate_new_from_pem(const gchar *data, gssize length, GError **error)
struct _GTlsCertificatePrivate GTlsCertificatePrivate
GIO_AVAILABLE_IN_ALL GTlsCertificate * g_tls_certificate_new_from_files(const gchar *cert_file, const gchar *key_file, GError **error)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
G_BEGIN_DECLS typedef char gchar
Definition gtypes.h:52
void * gpointer
Definition gtypes.h:109
static void error(LoadState *S, const char *why)
GTlsCertificateFlags(* verify)(GTlsCertificate *cert, GSocketConnectable *identity, GTlsCertificate *trusted_ca)
GTlsCertificatePrivate * priv