pub unsafe extern "C" fn s2n_client_hello_get_legacy_record_version(
    ch: *mut s2n_client_hello,
    out: *mut u8
) -> i32
Expand description

Access the protocol version from the header of the first record that contained the ClientHello message.

@note This field has been deprecated and should not be confused with the client hello version. It is often set very low, usually to TLS1.0 for compatibility reasons, and should never be set higher than TLS1.2. Therefore this method should only be used for logging or fingerprinting.

@param conn A pointer to the client hello struct @param out The protocol version in the record header containing the Client Hello.