Function bearssl::br_ssl_client_set_single_rsa [] [src]

pub unsafe extern "C" 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
)

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

This function sets a client certificate chain, that the client will send to the server whenever a client certificate is requested. This certificate uses an RSA public key; the corresponding private key is invoked for authentication. Trust anchor names sent by the server are ignored.

The provided chain and private key are linked in the client context; they must remain valid as long as they may be used, i.e. normally for the duration of the connection, since they might be invoked again upon renegotiations.

\param cc SSL client context. \param chain client certificate chain (SSL order: EE comes first). \param chain_len client chain length (number of certificates). \param sk client private key. \param irsasign RSA signature implementation (PKCS#1 v1.5).