mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-25 01:41:43 +00:00
wpa_supplicant: sync eap code with upstream
This commit is contained in:
@@ -30,6 +30,8 @@ struct tlsv1_server {
|
||||
u8 alert_level;
|
||||
u8 alert_description;
|
||||
|
||||
int read_alerts, write_alerts;
|
||||
|
||||
struct crypto_public_key *client_rsa_key;
|
||||
|
||||
struct tls_verify_hash verify;
|
||||
@@ -51,13 +53,27 @@ struct tlsv1_server {
|
||||
tlsv1_server_session_ticket_cb session_ticket_cb;
|
||||
void *session_ticket_cb_ctx;
|
||||
|
||||
void (*log_cb)(void *ctx, const char *msg);
|
||||
void *log_cb_ctx;
|
||||
|
||||
int use_session_ticket;
|
||||
unsigned int status_request:1;
|
||||
unsigned int status_request_v2:1;
|
||||
unsigned int status_request_multi:1;
|
||||
|
||||
u8 *dh_secret;
|
||||
size_t dh_secret_len;
|
||||
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
u32 test_flags;
|
||||
int test_failure_reported;
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
};
|
||||
|
||||
|
||||
void tlsv1_server_log(struct tlsv1_server *conn, const char *fmt, ...)
|
||||
PRINTF_FORMAT(2, 3);
|
||||
|
||||
void tlsv1_server_alert(struct tlsv1_server *conn, u8 level, u8 description);
|
||||
int tlsv1_server_derive_keys(struct tlsv1_server *conn,
|
||||
const u8 *pre_master_secret,
|
||||
@@ -67,5 +83,7 @@ u8 * tlsv1_server_send_alert(struct tlsv1_server *conn, u8 level,
|
||||
u8 description, size_t *out_len);
|
||||
int tlsv1_server_process_handshake(struct tlsv1_server *conn, u8 ct,
|
||||
const u8 *buf, size_t *len);
|
||||
void tlsv1_server_get_dh_p(struct tlsv1_server *conn, const u8 **dh_p,
|
||||
size_t *dh_p_len);
|
||||
|
||||
#endif /* TLSV1_SERVER_I_H */
|
||||
|
Reference in New Issue
Block a user