TlsClientConnection.new_

Creates a new #GTlsClientConnection wrapping base_io_stream (which must have pollable input and output streams) which is assumed to communicate with the server identified by server_identity.

See the documentation for #GTlsConnection:base-io-stream for restrictions on when application code can run operations on the base_io_stream after this function has returned.

Parameters

baseIoStream gio.iostream.IOStream

the #GIOStream to wrap

serverIdentity gio.socket_connectable.SocketConnectable

the expected identity of the server

Return Value

Type: gio.tls_client_connection.TlsClientConnection

the new #GTlsClientConnection, or null on error