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

net: ipv6 support, merge unix+ip;[pack:x] attribute (#9904)

This commit is contained in:
Emily Hudson
2021-06-13 21:53:38 +01:00
committed by GitHub
parent fa9fa77a5f
commit 535dcac8fa
52 changed files with 1277 additions and 524 deletions

View File

@ -37,7 +37,7 @@ pub struct SSL_METHOD {
fn C.BIO_new_ssl_connect(ctx &C.SSL_CTX) &C.BIO
fn C.BIO_set_conn_hostname(b &C.BIO, name charptr) int
fn C.BIO_set_conn_hostname(b &C.BIO, name &char) int
// there are actually 2 macros for BIO_get_ssl
// fn C.BIO_get_ssl(bp &C.BIO, ssl charptr, c int)
@ -48,7 +48,7 @@ fn C.BIO_do_connect(b &C.BIO) int
fn C.BIO_do_handshake(b &C.BIO) int
fn C.BIO_puts(b &C.BIO, buf charptr)
fn C.BIO_puts(b &C.BIO, buf &char)
fn C.BIO_read(b &C.BIO, buf voidptr, len int) int
@ -60,7 +60,7 @@ 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 charptr, ca_path charptr) int
fn C.SSL_CTX_load_verify_locations(ctx &C.SSL_CTX, ca_file &char, ca_path &char) int
fn C.SSL_CTX_free(ctx &C.SSL_CTX)
@ -70,7 +70,7 @@ fn C.SSL_set_fd(ssl &C.SSL, fd int) int
fn C.SSL_connect(&C.SSL) int
fn C.SSL_set_cipher_list(ctx &SSL, str charptr) int
fn C.SSL_set_cipher_list(ctx &SSL, str &char) int
fn C.SSL_get_peer_certificate(ssl &SSL) &C.X509
@ -80,7 +80,7 @@ fn C.SSL_get_error(ssl &C.SSL, ret int) int
fn C.SSL_get_verify_result(ssl &SSL) int
fn C.SSL_set_tlsext_host_name(s &SSL, name charptr) int
fn C.SSL_set_tlsext_host_name(s &SSL, name &char) int
fn C.SSL_shutdown(&C.SSL) int