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

Access the Client Hello protocol version

@note This field is a legacy field in TLS1.3 and is no longer used to negotiate the protocol version of the connection. It will be set to TLS1.2 even if TLS1.3 is negotiated. Therefore this method should only be used for logging or fingerprinting.

@param ch A pointer to the client hello struct @param out The protocol version in the client hello.