Skip to content

net.ssl #

fn new_ssl_conn #

fn new_ssl_conn(config SSLConnectConfig) !&SSLConn

new_ssl_conn returns a new SSLConn with the given config.

fn new_ssl_dialer #

fn new_ssl_dialer(config SSLConnectConfig) net.Dialer

create_ssl_dialer creates a dialer that will initiate SSL secured connections.

struct SSLConn #

struct SSLConn {
	mbedtls.SSLConn
}

struct SSLConnectConfig #

@[params]
struct SSLConnectConfig {
	mbedtls.SSLConnectConfig
}

struct SSLDialer #

struct SSLDialer {
	config SSLConnectConfig
}

SSLDialer is a concrete instance of the Dialer interface, for creating SSL socket connections.

fn (SSLDialer) dial #

fn (d SSLDialer) dial(address string) !net.Connection

dial initiates a new SSL connection.