Files
herolib/aiprompts/v_core/net/ssl.md
2025-09-02 07:28:13 +02:00

1.2 KiB

module ssl

Contents

new_ssl_conn

fn new_ssl_conn(config SSLConnectConfig) !&SSLConn

new_ssl_conn returns a new SSLConn with the given config.

[Return to contents]

new_ssl_dialer

fn new_ssl_dialer(config SSLConnectConfig) net.Dialer

create_ssl_dialer creates a dialer that will initiate SSL secured connections.

[Return to contents]

SSLConn

struct SSLConn {
	mbedtls.SSLConn
}

[Return to contents]

SSLConnectConfig

struct SSLConnectConfig {
	mbedtls.SSLConnectConfig
}

[Return to contents]

SSLDialer

struct SSLDialer {
	config SSLConnectConfig
}

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

[Return to contents]

dial

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

dial initiates a new SSL connection.

[Return to contents]

Powered by vdoc. Generated on: 2 Sep 2025 07:16:36