| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
#pragma once |
| 17 |
|
| 18 |
#include "api/s2n.h" |
| 19 |
#include "tls/s2n_crypto.h" |
| 20 |
#include "utils/s2n_compiler.h" |
| 21 |
|
| 22 |
#ifdef __cplusplus |
| 23 |
extern "C" { |
| 24 |
#endif |
| 25 |
|
| 26 |
#if S2N_GCC_VERSION_AT_LEAST(4, 5, 0) |
| 27 |
S2N_API __attribute__((deprecated("The use of TLS1.3 is configured through security policies"))) int s2n_enable_tls13(); |
| 28 |
#else |
| 29 |
S2N_API __attribute__((deprecated)) int s2n_enable_tls13(); |
| 30 |
#endif |
| 31 |
|
| 32 |
#ifdef __cplusplus |
| 33 |
} |
| 34 |
#endif |
| 35 |
|
| 36 |
|
| 37 |
extern uint8_t hello_retry_req_random[S2N_TLS_RANDOM_DATA_LEN]; |
| 38 |
|
| 39 |
bool s2n_use_default_tls13_config(); |
| 40 |
bool s2n_is_tls13_fully_supported(); |
| 41 |
int s2n_get_highest_fully_supported_tls_version(); |
| 42 |
int s2n_enable_tls13_in_test(); |
| 43 |
int s2n_disable_tls13_in_test(); |
| 44 |
int s2n_reset_tls13_in_test(); |
| 45 |
bool s2n_is_valid_tls13_cipher(const uint8_t version[2]); |
| 46 |
S2N_RESULT s2n_connection_validate_tls13_support(struct s2n_connection *conn); |
| 47 |
bool s2n_connection_supports_tls13(struct s2n_connection *conn); |
| 48 |
|
| 49 |
bool s2n_is_middlebox_compat_enabled(struct s2n_connection *conn); |
| 50 |
|
| 51 |
bool s2n_is_hello_retry_handshake(struct s2n_connection *conn); |
| 52 |
bool s2n_is_hello_retry_message(struct s2n_connection *conn); |
| 53 |
int s2n_set_hello_retry_required(struct s2n_connection *conn); |