gboolean g_dtls_connection_get_channel_binding_data ( GDtlsConnection* conn, GTlsChannelBindingType type, GByteArray* data, GError** error )
Query the TLS backend for TLS channel binding data of
This call retrieves TLS channel binding data as specified in RFC
5929, and related RFCs. The
binding data is returned in
data is resized by the callee
GByteArray buffer management and will be freed when the
is destroyed by g_byte_array_unref(). If
NULL, it will only
check whether TLS backend is able to fetch the data (e.g. whether
is supported by the TLS backend). It does not guarantee that the data
will be available though. That could happen if TLS connection does not
type or the binding data is not available yet due to additional
negotiation or input required.
Available since: 2.66
GTlsChannelBindingTypetype of data to fetch.
Type: An array of
GByteArrayis filled with the binding data, or
The argument will be set by the function. The argument can be
The returned data is owned by the instance.
The return location for a recoverable error.
The argument can be
If the return location is not
NULL, then you must initialize it to a
The argument will be left initialized to
NULLby the method if there are no errors.
In case of error, the argument will be set to a newly allocated
GError; the caller will take ownership of the data, and be responsible for freeing it.