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

net.http: support passing client certificates in http.fetch (#11356)

This commit is contained in:
Delyan Angelov
2021-09-01 01:43:35 +03:00
committed by GitHub
parent d1974f500f
commit 56993b9e2d
5 changed files with 64 additions and 12 deletions

View File

@ -63,10 +63,14 @@ fn C.SSL_CTX_set_options(ctx &C.SSL_CTX, options int)
fn C.SSL_CTX_set_verify_depth(s &C.SSL_CTX, depth int)
fn C.SSL_CTX_load_verify_locations(ctx &C.SSL_CTX, ca_file &char, ca_path &char) int
fn C.SSL_CTX_load_verify_locations(ctx &C.SSL_CTX, const_file &char, ca_path &char) int
fn C.SSL_CTX_free(ctx &C.SSL_CTX)
fn C.SSL_CTX_use_certificate_file(ctx &C.SSL_CTX, const_file &char, file_type int) int
fn C.SSL_CTX_use_PrivateKey_file(ctx &C.SSL_CTX, const_file &char, file_type int) int
fn C.SSL_new(&C.SSL_CTX) &C.SSL
fn C.SSL_set_fd(ssl &C.SSL, fd int) int
@ -77,6 +81,8 @@ fn C.SSL_set_cipher_list(ctx &SSL, str &char) int
fn C.SSL_get_peer_certificate(ssl &SSL) &C.X509
fn C.X509_free(const_cert &C.X509)
fn C.ERR_clear_error()
fn C.SSL_get_error(ssl &C.SSL, ret int) int