pub unsafe extern "C" fn s2n_config_add_ticket_crypto_key(
    config: *mut s2n_config,
    name: *const u8,
    name_len: u32,
    key: *mut u8,
    key_len: u32,
    intro_time_in_seconds_from_epoch: u64
) -> i32
Expand description

Adds session ticket key on the server side. It would be ideal to add new keys after every (encrypt_decrypt_key_lifetime_in_nanos/2) nanos because this will allow for gradual and linear transition of a key from encrypt-decrypt state to decrypt-only state.

@param config The configuration object being updated @param name Name of the session ticket key that should be randomly generated to avoid collisions @param name_len Length of session ticket key name @param key Key used to perform encryption/decryption of session ticket @param key_len Length of the session ticket key @param intro_time_in_seconds_from_epoch Time at which the session ticket key is introduced. If this is 0, then intro_time_in_seconds_from_epoch is set to now. @returns S2N_SUCCESS on success. S2N_FAILURE on failure