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:
@@ -32,19 +32,7 @@ $if $pkgconfig('openssl') {
|
||||
#include <openssl/err.h>
|
||||
|
||||
[typedef]
|
||||
pub struct C.SSL {
|
||||
}
|
||||
|
||||
pub struct SSL_CTX {
|
||||
}
|
||||
|
||||
pub struct SSL {
|
||||
}
|
||||
|
||||
pub struct SSL_METHOD {
|
||||
}
|
||||
|
||||
pub struct OPENSSL_INIT_SETTINGS {
|
||||
struct C.SSL {
|
||||
}
|
||||
|
||||
fn C.BIO_new_ssl_connect(ctx &C.SSL_CTX) &C.BIO
|
||||
@@ -86,6 +74,8 @@ fn C.SSL_set_fd(ssl &C.SSL, fd int) int
|
||||
|
||||
fn C.SSL_connect(&C.SSL) int
|
||||
|
||||
fn C.SSL_do_handshake(&C.SSL) int
|
||||
|
||||
fn C.SSL_set_cipher_list(ctx &SSL, str &char) int
|
||||
|
||||
fn C.SSL_get_peer_certificate(ssl &SSL) &C.X509
|
||||
|
||||
Reference in New Issue
Block a user