22#ifndef __G_DTLS_CONNECTION_H__
23#define __G_DTLS_CONNECTION_H__
25#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
26#error "Only <gio/gio.h> can be included directly."
33#define G_TYPE_DTLS_CONNECTION (g_dtls_connection_get_type ())
34#define G_DTLS_CONNECTION(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), G_TYPE_DTLS_CONNECTION, GDtlsConnection))
35#define G_IS_DTLS_CONNECTION(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_DTLS_CONNECTION))
36#define G_DTLS_CONNECTION_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), G_TYPE_DTLS_CONNECTION, GDtlsConnectionInterface))
99 const gchar *
const *protocols);
209 const gchar *
const *protocols);
G_GNUC_END_IGNORE_DEPRECATIONS GIO_AVAILABLE_IN_2_70 GTlsProtocolVersion g_dtls_connection_get_protocol_version(GDtlsConnection *conn)
GIO_AVAILABLE_IN_2_48 void g_dtls_connection_shutdown_async(GDtlsConnection *conn, gboolean shutdown_read, gboolean shutdown_write, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_DEPRECATED_IN_2_60 GTlsRehandshakeMode g_dtls_connection_get_rehandshake_mode(GDtlsConnection *conn)
GIO_AVAILABLE_IN_2_48 GType g_dtls_connection_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_2_48 gboolean g_dtls_connection_get_require_close_notify(GDtlsConnection *conn)
GIO_AVAILABLE_IN_2_48 gboolean g_dtls_connection_handshake_finish(GDtlsConnection *conn, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_2_48 void g_dtls_connection_handshake_async(GDtlsConnection *conn, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_2_48 void g_dtls_connection_set_interaction(GDtlsConnection *conn, GTlsInteraction *interaction)
G_GNUC_BEGIN_IGNORE_DEPRECATIONS GIO_DEPRECATED_IN_2_60 void g_dtls_connection_set_rehandshake_mode(GDtlsConnection *conn, GTlsRehandshakeMode mode)
G_GNUC_BEGIN_IGNORE_DEPRECATIONS GIO_AVAILABLE_IN_2_66 gboolean g_dtls_connection_get_channel_binding_data(GDtlsConnection *conn, GTlsChannelBindingType type, GByteArray *data, GError **error)
GIO_AVAILABLE_IN_2_48 gboolean g_dtls_connection_emit_accept_certificate(GDtlsConnection *conn, GTlsCertificate *peer_cert, GTlsCertificateFlags errors)
GIO_AVAILABLE_IN_2_48 gboolean g_dtls_connection_shutdown_finish(GDtlsConnection *conn, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_2_48 GTlsDatabase * g_dtls_connection_get_database(GDtlsConnection *conn)
G_GNUC_END_IGNORE_DEPRECATIONS GIO_AVAILABLE_IN_2_48 gboolean g_dtls_connection_handshake(GDtlsConnection *conn, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_2_48 GTlsCertificate * g_dtls_connection_get_certificate(GDtlsConnection *conn)
GIO_AVAILABLE_IN_2_48 GTlsInteraction * g_dtls_connection_get_interaction(GDtlsConnection *conn)
GIO_AVAILABLE_IN_2_48 gboolean g_dtls_connection_close_finish(GDtlsConnection *conn, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_2_48 GTlsCertificate * g_dtls_connection_get_peer_certificate(GDtlsConnection *conn)
GIO_AVAILABLE_IN_2_48 gboolean g_dtls_connection_close(GDtlsConnection *conn, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_2_48 GTlsCertificateFlags g_dtls_connection_get_peer_certificate_errors(GDtlsConnection *conn)
GIO_AVAILABLE_IN_2_48 void g_dtls_connection_set_database(GDtlsConnection *conn, GTlsDatabase *database)
GIO_AVAILABLE_IN_2_48 void g_dtls_connection_set_certificate(GDtlsConnection *conn, GTlsCertificate *certificate)
GIO_AVAILABLE_IN_2_70 gchar * g_dtls_connection_get_ciphersuite_name(GDtlsConnection *conn)
GIO_AVAILABLE_IN_2_48 gboolean g_dtls_connection_shutdown(GDtlsConnection *conn, gboolean shutdown_read, gboolean shutdown_write, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_2_60 const gchar * g_dtls_connection_get_negotiated_protocol(GDtlsConnection *conn)
GIO_AVAILABLE_IN_2_48 void g_dtls_connection_set_require_close_notify(GDtlsConnection *conn, gboolean require_close_notify)
GIO_AVAILABLE_IN_2_48 void g_dtls_connection_close_async(GDtlsConnection *conn, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_2_60 void g_dtls_connection_set_advertised_protocols(GDtlsConnection *conn, const gchar *const *protocols)
#define GIO_DEPRECATED_IN_2_60
#define GIO_AVAILABLE_IN_2_60
#define GIO_AVAILABLE_IN_2_48
#define GIO_AVAILABLE_IN_2_70
#define GIO_AVAILABLE_IN_2_66
struct _GDtlsConnection GDtlsConnection
struct _GAsyncResult GAsyncResult
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
#define G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define G_GNUC_END_IGNORE_DEPRECATIONS
G_BEGIN_DECLS typedef char gchar
static void error(LoadState *S, const char *why)
void(* shutdown_async)(GDtlsConnection *conn, gboolean shutdown_read, gboolean shutdown_write, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean(* handshake_finish)(GDtlsConnection *conn, GAsyncResult *result, GError **error)
void(* set_advertised_protocols)(GDtlsConnection *conn, const gchar *const *protocols)
gboolean(* handshake)(GDtlsConnection *conn, GCancellable *cancellable, GError **error)
void(* handshake_async)(GDtlsConnection *conn, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean(* shutdown)(GDtlsConnection *conn, gboolean shutdown_read, gboolean shutdown_write, GCancellable *cancellable, GError **error)
G_GNUC_BEGIN_IGNORE_DEPRECATIONS gboolean(* get_binding_data)(GDtlsConnection *conn, GTlsChannelBindingType type, GByteArray *data, GError **error)
gboolean(* shutdown_finish)(GDtlsConnection *conn, GAsyncResult *result, GError **error)
gboolean(* accept_certificate)(GDtlsConnection *connection, GTlsCertificate *peer_cert, GTlsCertificateFlags errors)