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