pub unsafe extern "C" fn s2n_connection_get_server_protocol_version(
    conn: *mut s2n_connection
) -> c_int
Expand description

Access the protocol version supported by the server.

@note The return value corresponds to the macros defined as S2N_SSLv2, S2N_SSLv3, S2N_TLS10, S2N_TLS11, S2N_TLS12, and S2N_TLS13.

@param conn A pointer to the connection @returns Returns the highest protocol version supported by the server