Function bearssl::br_ssl_server_set_single_rsa [] [src]

pub unsafe extern "C" fn br_ssl_server_set_single_rsa(
    cc: *mut br_ssl_server_context,
    chain: *const br_x509_certificate,
    chain_len: usize,
    sk: *const br_rsa_private_key,
    allowed_usages: c_uint,
    irsacore: br_rsa_private,
    irsasign: br_rsa_pkcs1_sign
)

\brief Set the server certificate chain and key (single RSA case).

This function uses a policy context included in the server context. It configures use of a single server certificate chain with a RSA private key. The allowed_usages is a combination of usages, namely BR_KEYTYPE_KEYX and/or BR_KEYTYPE_SIGN; this enables or disables the corresponding cipher suites (i.e. TLS_RSA_* use the RSA key for key exchange, while TLS_ECDHE_RSA_* use the RSA key for signatures).

\param cc server context. \param chain server certificate chain to send to the client. \param chain_len chain length (number of certificates). \param sk server private key (RSA). \param allowed_usages allowed private key usages. \param irsacore RSA core implementation. \param irsasign RSA signature implementation (PKCS#1 v1.5).