mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Add g_(d)tls_connection_get_channel_binding_data calls and enums
* Add g_tls_connection_get_channel_binding_data API call * Add g_dtls_connection_get_channel_binding_data API call * Add get_binding_data method to GTlsConnection class * Add get_binding_data method to GDtlsConnection interface * Add GTlsChannelBindingType enum with tls-unique and tls-server-end-point types * Add GTlsChannelBindingError enum and G_TLS_CHANNEL_BINDING_ERROR quark * Add new API calls to documentation reference gio-sections-common
This commit is contained in:
committed by
Philip Withnall
parent
6801e06d83
commit
44524b9daa
@@ -95,6 +95,13 @@ struct _GDtlsConnectionInterface
|
||||
void (*set_advertised_protocols) (GDtlsConnection *conn,
|
||||
const gchar * const *protocols);
|
||||
const gchar *(*get_negotiated_protocol) (GDtlsConnection *conn);
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
gboolean (*get_binding_data) (GDtlsConnection *conn,
|
||||
GTlsChannelBindingType type,
|
||||
GByteArray *data,
|
||||
GError **error);
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
};
|
||||
|
||||
GLIB_AVAILABLE_IN_2_48
|
||||
@@ -201,6 +208,14 @@ void g_dtls_connection_set_advertised_protocols (GDtlsConnec
|
||||
GLIB_AVAILABLE_IN_2_60
|
||||
const gchar * g_dtls_connection_get_negotiated_protocol (GDtlsConnection *conn);
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
GLIB_AVAILABLE_IN_2_66
|
||||
gboolean g_dtls_connection_get_channel_binding_data (GDtlsConnection *conn,
|
||||
GTlsChannelBindingType type,
|
||||
GByteArray *data,
|
||||
GError **error);
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_DTLS_CONNECTION_H__ */
|
||||
|
Reference in New Issue
Block a user