Function s2n_tls_sys::s2n_config_set_extension_data

source ·
pub unsafe extern "C" fn s2n_config_set_extension_data(
    config: *mut s2n_config,
    type_: Type,
    data: *const u8,
    length: u32
) -> c_int
Expand description

Sets the extension data in the s2n_config object for the specified extension. This method will clear any existing data that is set. If the data and length parameters are set to NULL, no new data is set in the s2n_config object, effectively clearing existing data.

@deprecated Use s2n_cert_chain_and_key_set_ocsp_data and s2n_cert_chain_and_key_set_sct_list instead.

@param config The configuration object being updated @param type The extension type @param data Data for the extension @param length Length of the data buffer