v / vlib / net / ssl / ssl_notd_use_openssl.v
15 lines · 11 sloc · 329 bytes · fd27d45f81ff06e60ab6d86e9a8159b6f64b16ce
Raw
1module ssl
2
3import net.mbedtls
4
5pub type SSLConn = mbedtls.SSLConn
6
7@[params]
8pub struct SSLConnectConfig {
9 mbedtls.SSLConnectConfig
10}
11
12// new_ssl_conn returns a new SSLConn with the given config.
13pub fn new_ssl_conn(config SSLConnectConfig) !&SSLConn {
14 return mbedtls.new_ssl_conn(config.SSLConnectConfig) or { return err }
15}
16