pub unsafe extern "C" fn s2n_config_set_serialization_version(
    config: *mut s2n_config,
    version: u32
) -> i32
Expand description

Set what version to use when serializing connections

A version is required to serialize connections. Versioning ensures that all features negotiated during the handshake will be available wherever the connection is deserialized. Applications may need to update this version to pick up new features, since versioning may disable newer TLS features to ensure compatibility.

@param config A pointer to the config object. @param version The requested version. @returns S2N_SUCCESS on success, S2N_FAILURE on error.