Lines Matching defs:mbedtls_ssl_context
528 typedef struct mbedtls_ssl_context mbedtls_ssl_context; typedef
755 struct mbedtls_ssl_context struct
757 const mbedtls_ssl_config *conf; /*!< configuration information */
762 int state; /*!< SSL handshake: current state */
764 int renego_status; /*!< Initial, in progress, pending? */
765 int renego_records_seen; /*!< Records since renego request, or with DTLS,
770 int major_ver; /*!< equal to MBEDTLS_SSL_MAJOR_VERSION_3 */
771 int minor_ver; /*!< either 0 (SSL3) or 1 (TLS1.0) */
774 unsigned badmac_seen; /*!< records with a bad MAC received */
777 mbedtls_ssl_send_t *f_send; /*!< Callback for network send */
778 mbedtls_ssl_recv_t *f_recv; /*!< Callback for network receive */
779 mbedtls_ssl_recv_timeout_t *f_recv_timeout;
782 void *p_bio; /*!< context for I/O operations */
787 mbedtls_ssl_session *session_in; /*!< current session data (in) */
788 mbedtls_ssl_session *session_out; /*!< current session data (out) */
789 mbedtls_ssl_session *session; /*!< negotiated session data */
790 mbedtls_ssl_session *session_negotiate; /*!< session data in negotiation */
792 mbedtls_ssl_handshake_params *handshake; /*!< params required only during
798 mbedtls_ssl_transform *transform_in; /*!< current transform params (in) */
799 mbedtls_ssl_transform *transform_out; /*!< current transform params (in) */
800 mbedtls_ssl_transform *transform; /*!< negotiated transform params */
801 mbedtls_ssl_transform *transform_negotiate; /*!< transform params in negotiation */
806 void *p_timer; /*!< context for the timer callbacks */
808 mbedtls_ssl_set_timer_t *f_set_timer; /*!< set timer callback */
809 mbedtls_ssl_get_timer_t *f_get_timer; /*!< get timer callback */
814 unsigned char *in_buf; /*!< input buffer */
815 unsigned char *in_ctr; /*!< 64-bit incoming message counter
818 unsigned char *in_hdr; /*!< start of record header */
819 unsigned char *in_len; /*!< two-bytes message length field */
820 unsigned char *in_iv; /*!< ivlen-byte IV */
821 unsigned char *in_msg; /*!< message contents (in_iv+ivlen) */
822 unsigned char *in_offt; /*!< read offset in application data */
824 int in_msgtype; /*!< record header: message type */
825 size_t in_msglen; /*!< record header: message length */
826 size_t in_left; /*!< amount of data read so far */
828 uint16_t in_epoch; /*!< DTLS epoch for incoming records */
829 size_t next_record_offset; /*!< offset of the next record in datagram
833 uint64_t in_window_top; /*!< last validated record seq_num */
834 uint64_t in_window; /*!< bitmask for replay detection */
837 size_t in_hslen; /*!< current handshake message length,
839 int nb_zero; /*!< # of 0-length encrypted messages */
840 int record_read; /*!< record is already present */
845 unsigned char *out_buf; /*!< output buffer */
846 unsigned char *out_ctr; /*!< 64-bit outgoing message counter */
847 unsigned char *out_hdr; /*!< start of record header */
848 unsigned char *out_len; /*!< two-bytes message length field */
849 unsigned char *out_iv; /*!< ivlen-byte IV */
850 unsigned char *out_msg; /*!< message contents (out_iv+ivlen) */
852 int out_msgtype; /*!< record header: message type */
853 size_t out_msglen; /*!< record header: message length */
854 size_t out_left; /*!< amount of data not yet written */
857 unsigned char *compress_buf; /*!< zlib data buffer */
860 signed char split_done; /*!< current record already splitted? */
866 int client_auth; /*!< flag for client auth. */
872 char *hostname; /*!< expected peer CN for verification
877 const char *alpn_chosen; /*!< negotiated protocol */
906 extern int (*mbedtls_ssl_hw_record_init)(mbedtls_ssl_context *ssl, argument