Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:55

0001 /* GIO - GLib Input, Output and Streaming Library
0002  *
0003  * Copyright © 2010 Red Hat, Inc.
0004  * Copyright © 2015 Collabora, Ltd.
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-or-later
0007  *
0008  * This library is free software; you can redistribute it and/or
0009  * modify it under the terms of the GNU Lesser General Public
0010  * License as published by the Free Software Foundation; either
0011  * version 2.1 of the License, or (at your option) any later version.
0012  *
0013  * This library is distributed in the hope that it will be useful,
0014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0016  * Lesser General Public License for more details.
0017  *
0018  * You should have received a copy of the GNU Lesser General
0019  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
0020  */
0021 
0022 #ifndef __G_DTLS_CLIENT_CONNECTION_H__
0023 #define __G_DTLS_CLIENT_CONNECTION_H__
0024 
0025 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0026 #error "Only <gio/gio.h> can be included directly."
0027 #endif
0028 
0029 #include <gio/gdtlsconnection.h>
0030 
0031 G_BEGIN_DECLS
0032 
0033 #define G_TYPE_DTLS_CLIENT_CONNECTION                (g_dtls_client_connection_get_type ())
0034 #define G_DTLS_CLIENT_CONNECTION(inst)               (G_TYPE_CHECK_INSTANCE_CAST ((inst), G_TYPE_DTLS_CLIENT_CONNECTION, GDtlsClientConnection))
0035 #define G_IS_DTLS_CLIENT_CONNECTION(inst)            (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_DTLS_CLIENT_CONNECTION))
0036 #define G_DTLS_CLIENT_CONNECTION_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), G_TYPE_DTLS_CLIENT_CONNECTION, GDtlsClientConnectionInterface))
0037 
0038 typedef struct _GDtlsClientConnectionInterface GDtlsClientConnectionInterface;
0039 
0040 /**
0041  * GDtlsClientConnectionInterface:
0042  * @g_iface: The parent interface.
0043  *
0044  * vtable for a #GDtlsClientConnection implementation.
0045  *
0046  * Since: 2.48
0047  */
0048 struct _GDtlsClientConnectionInterface
0049 {
0050   GTypeInterface g_iface;
0051 };
0052 
0053 GIO_AVAILABLE_IN_2_48
0054 GType                g_dtls_client_connection_get_type             (void) G_GNUC_CONST;
0055 
0056 GIO_AVAILABLE_IN_2_48
0057 GDatagramBased      *g_dtls_client_connection_new                  (GDatagramBased         *base_socket,
0058                                                                     GSocketConnectable     *server_identity,
0059                                                                     GError                **error);
0060 
0061 GIO_AVAILABLE_IN_2_48
0062 GTlsCertificateFlags g_dtls_client_connection_get_validation_flags (GDtlsClientConnection  *conn);
0063 GIO_AVAILABLE_IN_2_48
0064 void                 g_dtls_client_connection_set_validation_flags (GDtlsClientConnection  *conn,
0065                                                                     GTlsCertificateFlags    flags);
0066 GIO_AVAILABLE_IN_2_48
0067 GSocketConnectable  *g_dtls_client_connection_get_server_identity  (GDtlsClientConnection  *conn);
0068 GIO_AVAILABLE_IN_2_48
0069 void                 g_dtls_client_connection_set_server_identity  (GDtlsClientConnection  *conn,
0070                                                                     GSocketConnectable     *identity);
0071 GIO_AVAILABLE_IN_2_48
0072 GList *              g_dtls_client_connection_get_accepted_cas     (GDtlsClientConnection  *conn);
0073 
0074 
0075 G_END_DECLS
0076 
0077 #endif /* __G_DTLS_CLIENT_CONNECTION_H__ */