1
2
3
4
5
6
7
8
9
10
11
12
13
extern "C"
{
pub fn br_ssl_client_init_full(cc: *mut br_ssl_client_context, xc: *mut br_x509_minimal_context, trust_anchors: *const br_x509_trust_anchor, trust_anchors_num: usize);
pub fn br_ssl_client_reset(cc: *mut br_ssl_client_context, server_name: *const c_char, resume_session: c_int) -> c_int;
pub fn br_ssl_client_set_default_rsapub(cc: *mut br_ssl_client_context);
pub fn br_ssl_client_set_single_ec(cc: *mut br_ssl_client_context, chain: *const br_x509_certificate, chain_len: usize, sk: *const br_ec_private_key, allowed_usages: c_uint, cert_issuer_key_type: c_uint, iec: *const br_ec_impl, iecdsa: br_ecdsa_sign);
pub fn br_ssl_client_set_single_rsa(cc: *mut br_ssl_client_context, chain: *const br_x509_certificate, chain_len: usize, sk: *const br_rsa_private_key, irsasign: br_rsa_pkcs1_sign);
pub fn br_ssl_client_zero(cc: *mut br_ssl_client_context);
}