1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

net.ssl: switch to mbedtls over openssl (#15841)

This commit is contained in:
spaceface
2022-09-22 15:50:34 +02:00
committed by GitHub
parent 44c3fcecd9
commit 5c716afb39
250 changed files with 172443 additions and 150 deletions

View File

@@ -0,0 +1,18 @@
module ssl
import net.openssl
pub struct SSLConn {
openssl.SSLConn
}
[params]
pub struct SSLConnectConfig {
openssl.SSLConnectConfig
}
// new_ssl_conn returns a new SSLConn with the given config.
pub fn new_ssl_conn(config SSLConnectConfig) ?&SSLConn {
c := openssl.new_ssl_conn(config.SSLConnectConfig) or { return err }
return &SSLConn{c}
}