Function bearssl::br_ssl_server_init_full_ec [] [src]

pub unsafe extern "C" fn br_ssl_server_init_full_ec(
    cc: *mut br_ssl_server_context,
    chain: *const br_x509_certificate,
    chain_len: usize,
    cert_issuer_key_type: c_uint,
    sk: *const br_ec_private_key
)

\brief SSL server profile: full_ec.

This function initialises the provided SSL server context with all supported algorithms and cipher suites that rely on an EC key pair.

The key type of the CA that issued the server's certificate must be provided, since it matters for ECDH cipher suites (ECDH_RSA suites require a RSA-powered CA). The key type is either BR_KEYTYPE_RSA or BR_KEYTYPE_EC.

\param cc server context to initialise. \param chain server certificate chain. \param chain_len chain length (number of certificates). \param cert_issuer_key_type certificate issuer's key type. \param sk EC private key.