v / vlib / net / ssl / ssl_d_use_openssl.v
15 lines · 11 sloc · 329 bytes · a9baf7e2585c54f1f31d5bf47c6b8c388ecdaa60
Raw
1module ssl
2
3import net.openssl
4
5pub type SSLConn = openssl.SSLConn
6
7@[params]
8pub struct SSLConnectConfig {
9 openssl.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 openssl.new_ssl_conn(config.SSLConnectConfig) or { return err }
15}
16