Lines Matching refs:SSL
17 * This file implements the SSL/TLS/DTLS state machines.
29 * The Handshake state machine keeps track of the current SSL/TLS handshake
60 static int state_machine(SSL *s, int server);
61 static void init_read_state_machine(SSL *s);
62 static SUB_STATE_RETURN read_state_machine(SSL *s);
63 static void init_write_state_machine(SSL *s);
64 static SUB_STATE_RETURN write_state_machine(SSL *s);
66 OSSL_HANDSHAKE_STATE SSL_get_state(const SSL *ssl)
68 return ssl->statem.hand_state;
71 int SSL_in_init(const SSL *s)
76 int SSL_is_init_finished(const SSL *s)
81 int SSL_in_before(const SSL *s)
97 void ossl_statem_clear(SSL *s)
108 void ossl_statem_set_renegotiate(SSL *s)
118 void ossl_statem_fatal(SSL *s, int al, int func, int reason, const char *file,
152 int ossl_statem_in_error(const SSL *s)
160 void ossl_statem_set_in_init(SSL *s, int init)
165 int ossl_statem_get_in_handshake(SSL *s)
170 void ossl_statem_set_in_handshake(SSL *s, int inhand)
179 int ossl_statem_skip_early_data(SSL *s)
200 void ossl_statem_check_finish_init(SSL *s, int sending)
234 void ossl_statem_set_hello_verify_done(SSL *s)
248 int ossl_statem_connect(SSL *s)
253 int ossl_statem_accept(SSL *s)
258 typedef void (*info_cb) (const SSL *, int, int);
260 static info_cb get_callback(SSL *s)
298 static int state_machine(SSL *s, int server)
301 void (*cb) (const SSL *ssl, int type, int val) = NULL;
490 static void init_read_state_machine(SSL *s)
497 static int grow_init_buf(SSL *s, size_t size) {
538 static SUB_STATE_RETURN read_state_machine(SSL *s)
543 int (*transition) (SSL *s, int mt);
545 MSG_PROCESS_RETURN(*process_message) (SSL *s, PACKET *pkt);
546 WORK_STATE(*post_process_message) (SSL *s, WORK_STATE wst);
547 size_t (*max_message_size) (SSL *s);
548 void (*cb) (const SSL *ssl, int type, int val) = NULL;
698 static int statem_do_write(SSL *s)
716 static void init_write_state_machine(SSL *s)
754 static SUB_STATE_RETURN write_state_machine(SSL *s)
758 WRITE_TRAN(*transition) (SSL *s);
759 WORK_STATE(*pre_work) (SSL *s, WORK_STATE wst);
760 WORK_STATE(*post_work) (SSL *s, WORK_STATE wst);
761 int (*get_construct_message_f) (SSL *s, WPACKET *pkt,
762 int (**confunc) (SSL *s, WPACKET *pkt),
764 void (*cb) (const SSL *ssl, int type, int val) = NULL;
765 int (*confunc) (SSL *s, WPACKET *pkt);
900 int statem_flush(SSL *s)
919 int ossl_statem_app_data_allowed(SSL *s)
953 int ossl_statem_export_allowed(SSL *s)
963 int ossl_statem_export_early_allowed(SSL *s)