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

@@ -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