mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: define missing C fn args & check C & JS args (#8770)
This commit is contained in:
@ -34,49 +34,52 @@ pub struct SSL {
|
||||
pub struct SSL_METHOD {
|
||||
}
|
||||
|
||||
fn C.BIO_new_ssl_connect() voidptr
|
||||
fn C.BIO_new_ssl_connect(ctx &C.SSL_CTX) &C.BIO
|
||||
|
||||
fn C.BIO_set_conn_hostname() int
|
||||
fn C.BIO_set_conn_hostname(b &C.BIO, name charptr) int
|
||||
|
||||
fn C.BIO_get_ssl()
|
||||
// there are actually 2 macros for BIO_get_ssl
|
||||
// fn C.BIO_get_ssl(bp &C.BIO, ssl charptr, c int)
|
||||
// fn C.BIO_get_ssl(bp &C.BIO, sslp charptr)
|
||||
fn C.BIO_get_ssl(bp &C.BIO, vargs ...voidptr)
|
||||
|
||||
fn C.BIO_do_connect() int
|
||||
fn C.BIO_do_connect(b &C.BIO) int
|
||||
|
||||
fn C.BIO_do_handshake() int
|
||||
fn C.BIO_do_handshake(b &C.BIO) int
|
||||
|
||||
fn C.BIO_puts()
|
||||
fn C.BIO_puts(b &C.BIO, buf charptr)
|
||||
|
||||
fn C.BIO_read() int
|
||||
fn C.BIO_read(b &C.BIO, buf voidptr, len int) int
|
||||
|
||||
fn C.BIO_free_all()
|
||||
fn C.BIO_free_all(a &C.BIO)
|
||||
|
||||
fn C.SSL_CTX_new() &C.SSL_CTX
|
||||
fn C.SSL_CTX_new(method &C.SSL_METHOD) &C.SSL_CTX
|
||||
|
||||
fn C.SSL_CTX_set_options()
|
||||
fn C.SSL_CTX_set_options(ctx &C.SSL_CTX, options int)
|
||||
|
||||
fn C.SSL_CTX_set_verify_depth()
|
||||
fn C.SSL_CTX_set_verify_depth(s &C.SSL_CTX, depth int)
|
||||
|
||||
fn C.SSL_CTX_load_verify_locations() int
|
||||
fn C.SSL_CTX_load_verify_locations(ctx &C.SSL_CTX, ca_file charptr, ca_path charptr) int
|
||||
|
||||
fn C.SSL_CTX_free()
|
||||
fn C.SSL_CTX_free(ctx &C.SSL_CTX)
|
||||
|
||||
fn C.SSL_new(&C.SSL_CTX) &C.SSL
|
||||
|
||||
fn C.SSL_set_fd(&C.SSL) int
|
||||
fn C.SSL_set_fd(ssl &C.SSL, fd int) int
|
||||
|
||||
fn C.SSL_connect(&C.SSL) int
|
||||
|
||||
fn C.SSL_set_cipher_list() int
|
||||
fn C.SSL_set_cipher_list(ctx &SSL, str charptr) int
|
||||
|
||||
fn C.SSL_get_peer_certificate() int
|
||||
fn C.SSL_get_peer_certificate(ssl &SSL) &C.X509
|
||||
|
||||
fn C.ERR_clear_error()
|
||||
|
||||
fn C.SSL_get_error() int
|
||||
fn C.SSL_get_error(ssl &C.SSL, ret int) int
|
||||
|
||||
fn C.SSL_get_verify_result() int
|
||||
fn C.SSL_get_verify_result(ssl &SSL) int
|
||||
|
||||
fn C.SSL_set_tlsext_host_name() int
|
||||
fn C.SSL_set_tlsext_host_name(s &SSL, name charptr) int
|
||||
|
||||
fn C.SSL_shutdown(&C.SSL) int
|
||||
|
||||
|
Reference in New Issue
Block a user