DtlsConnectionT.getChannelBindingData

Query the TLS backend for TLS channel binding data of type for conn.

This call retrieves TLS channel binding data as specified in RFC 5056, RFC 5929, and related RFCs. The binding data is returned in data. The data is resized by the callee using #GByteArray buffer management and will be freed when the data is destroyed by glib.byte_array.ByteArray.unref. If data is null, it will only check whether TLS backend is able to fetch the data (e.g. whether type 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 support type or the binding data is not available yet due to additional negotiation or input required.

template DtlsConnectionT()
override
bool
getChannelBindingData

Parameters

type gio.types.TlsChannelBindingType

#GTlsChannelBindingType type of data to fetch

data ubyte[]

#GByteArray is filled with the binding data, or null

Return Value

Type: bool

true on success, false otherwise

Throws