Type Alias GTlsConnectionClass

Source
pub type GTlsConnectionClass = _GTlsConnectionClass;
Expand description

GTlsConnectionClass: @parent_class: The parent class. @accept_certificate: Check whether to accept a certificate. @handshake: Perform a handshake operation. @handshake_async: Start an asynchronous handshake operation. @handshake_finish: Finish an asynchronous handshake operation. @get_binding_data: Retrieve TLS channel binding data (Since: 2.66) @get_negotiated_protocol: Get ALPN-negotiated protocol (Since: 2.70)

The class structure for the #GTlsConnection type.

Since: 2.28

Aliased Type§

struct GTlsConnectionClass {
    pub parent_class: _GIOStreamClass,
    pub accept_certificate: Option<unsafe extern "C" fn(*mut _GTlsConnection, *mut _GTlsCertificate, u32) -> i32>,
    pub handshake: Option<unsafe extern "C" fn(*mut _GTlsConnection, *mut _GCancellable, *mut *mut _GError) -> i32>,
    pub handshake_async: Option<unsafe extern "C" fn(*mut _GTlsConnection, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
    pub handshake_finish: Option<unsafe extern "C" fn(*mut _GTlsConnection, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
    pub get_binding_data: Option<unsafe extern "C" fn(*mut _GTlsConnection, u32, *mut _GByteArray, *mut *mut _GError) -> i32>,
    pub get_negotiated_protocol: Option<unsafe extern "C" fn(*mut _GTlsConnection) -> *const i8>,
    pub padding: [*mut c_void; 6],
}

Fields§

§parent_class: _GIOStreamClass§accept_certificate: Option<unsafe extern "C" fn(*mut _GTlsConnection, *mut _GTlsCertificate, u32) -> i32>§handshake: Option<unsafe extern "C" fn(*mut _GTlsConnection, *mut _GCancellable, *mut *mut _GError) -> i32>§handshake_async: Option<unsafe extern "C" fn(*mut _GTlsConnection, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§handshake_finish: Option<unsafe extern "C" fn(*mut _GTlsConnection, *mut _GAsyncResult, *mut *mut _GError) -> i32>§get_binding_data: Option<unsafe extern "C" fn(*mut _GTlsConnection, u32, *mut _GByteArray, *mut *mut _GError) -> i32>§get_negotiated_protocol: Option<unsafe extern "C" fn(*mut _GTlsConnection) -> *const i8>§padding: [*mut c_void; 6]