#include <ssl.h>
Definition at line 1612 of file ssl.h.
◆ private_alert_reason
| int mbedtls_ssl_context::private_alert_reason |
The error code to be returned to the user once the fatal alert has been sent.
Definition at line 1776 of file ssl.h.
◆ private_alert_type
| unsigned char mbedtls_ssl_context::private_alert_type |
Type of alert if send_alert != 0
Definition at line 1774 of file ssl.h.
◆ private_alpn_chosen
| const char* mbedtls_ssl_context::private_alpn_chosen |
negotiated protocol
Definition at line 1834 of file ssl.h.
◆ private_badmac_seen
| unsigned mbedtls_ssl_context::private_badmac_seen |
records with a bad MAC received
Definition at line 1660 of file ssl.h.
◆ private_cli_id
| unsigned char* mbedtls_ssl_context::private_cli_id |
transport-level ID of the client
Definition at line 1848 of file ssl.h.
◆ private_cli_id_len
| size_t mbedtls_ssl_context::private_cli_id_len |
length of cli_id
Definition at line 1849 of file ssl.h.
◆ private_conf
configuration information
Definition at line 1613 of file ssl.h.
◆ private_cur_out_ctr
Outgoing record sequence number.
Definition at line 1819 of file ssl.h.
◆ private_disable_datagram_packing
| uint8_t mbedtls_ssl_context::private_disable_datagram_packing |
Disable packing multiple records within a single datagram.
Definition at line 1781 of file ssl.h.
◆ private_f_export_keys
Callback to export key block and master secret
Definition at line 1880 of file ssl.h.
◆ private_f_get_timer
get timer callback
Definition at line 1716 of file ssl.h.
◆ private_f_recv
Callback for network receive
Definition at line 1669 of file ssl.h.
◆ private_f_recv_timeout
Callback for network receive with timeout
Definition at line 1670 of file ssl.h.
◆ private_f_send
Callback for network send
Definition at line 1668 of file ssl.h.
◆ private_f_set_timer
set timer callback
Definition at line 1715 of file ssl.h.
◆ private_f_vrfy
| int(* mbedtls_ssl_context::private_f_vrfy) (void *, mbedtls_x509_crt *, int, uint32_t *) |
Callback to customize X.509 certificate chain verification
Definition at line 1664 of file ssl.h.
◆ private_flags
| uint32_t mbedtls_ssl_context::private_flags |
Mask of MBEDTLS_SSL_CONTEXT_FLAG_XXX. See mbedtls_ssl_context_flags_t in ssl_misc.h.
This field is not saved by mbedtls_ssl_session_save().
Definition at line 1625 of file ssl.h.
◆ private_handshake
params required only during the handshake process
Definition at line 1683 of file ssl.h.
◆ private_hostname
| char* mbedtls_ssl_context::private_hostname |
expected peer CN for verification (and SNI if available)
Definition at line 1829 of file ssl.h.
◆ private_in_buf
| unsigned char* mbedtls_ssl_context::private_in_buf |
input buffer
Definition at line 1721 of file ssl.h.
◆ private_in_cid
| unsigned char* mbedtls_ssl_context::private_in_cid |
The start of the CID; (the end is marked by in_len).
Definition at line 1727 of file ssl.h.
◆ private_in_ctr
| unsigned char* mbedtls_ssl_context::private_in_ctr |
64-bit incoming message counter TLS: maintained by us DTLS: read from peer
Definition at line 1722 of file ssl.h.
◆ private_in_epoch
| uint16_t mbedtls_ssl_context::private_in_epoch |
DTLS epoch for incoming records
Definition at line 1742 of file ssl.h.
◆ private_in_fatal_alert_recv
| unsigned char mbedtls_ssl_context::private_in_fatal_alert_recv |
Determines if a fatal alert has been received. Values:
0 , no fatal alert received.
1 , a fatal alert has been received
Definition at line 1760 of file ssl.h.
◆ private_in_fatal_alert_type
| unsigned char mbedtls_ssl_context::private_in_fatal_alert_type |
Type of fatal alert if in_alert_recv != 0
Definition at line 1764 of file ssl.h.
◆ private_in_hdr
| unsigned char* mbedtls_ssl_context::private_in_hdr |
start of record header
Definition at line 1725 of file ssl.h.
◆ private_in_hsfraglen
| size_t mbedtls_ssl_context::private_in_hsfraglen |
accumulated length of hs fragments (up to in_hslen)
Definition at line 1753 of file ssl.h.
◆ private_in_hslen
| size_t mbedtls_ssl_context::private_in_hslen |
current handshake message length, including the handshake header
Definition at line 1751 of file ssl.h.
◆ private_in_iv
| unsigned char* mbedtls_ssl_context::private_in_iv |
ivlen-byte IV
Definition at line 1731 of file ssl.h.
◆ private_in_left
| size_t mbedtls_ssl_context::private_in_left |
amount of data read so far
Definition at line 1737 of file ssl.h.
◆ private_in_len
| unsigned char* mbedtls_ssl_context::private_in_len |
two-bytes message length field
Definition at line 1730 of file ssl.h.
◆ private_in_msg
| unsigned char* mbedtls_ssl_context::private_in_msg |
message contents (in_iv+ivlen)
Definition at line 1732 of file ssl.h.
◆ private_in_msglen
| size_t mbedtls_ssl_context::private_in_msglen |
record header: message length
Definition at line 1736 of file ssl.h.
◆ private_in_msgtype
| int mbedtls_ssl_context::private_in_msgtype |
record header: message type
Definition at line 1735 of file ssl.h.
◆ private_in_offt
| unsigned char* mbedtls_ssl_context::private_in_offt |
read offset in application data
Definition at line 1733 of file ssl.h.
◆ private_in_window
| uint64_t mbedtls_ssl_context::private_in_window |
bitmask for replay detection
Definition at line 1748 of file ssl.h.
◆ private_in_window_top
| uint64_t mbedtls_ssl_context::private_in_window_top |
last validated record seq_num
Definition at line 1747 of file ssl.h.
◆ private_keep_current_message
| int mbedtls_ssl_context::private_keep_current_message |
drop or reuse current message on next call to record layer?
Definition at line 1757 of file ssl.h.
◆ private_mtu
| uint16_t mbedtls_ssl_context::private_mtu |
path mtu, used to fragment outgoing messages
Definition at line 1822 of file ssl.h.
◆ private_nb_zero
| int mbedtls_ssl_context::private_nb_zero |
of 0-length encrypted messages
Definition at line 1755 of file ssl.h.
◆ private_negotiate_cid
| uint8_t mbedtls_ssl_context::private_negotiate_cid |
◆ private_next_record_offset
| size_t mbedtls_ssl_context::private_next_record_offset |
offset of the next record in datagram (equal to in_left if none)
Definition at line 1743 of file ssl.h.
◆ private_out_buf
| unsigned char* mbedtls_ssl_context::private_out_buf |
output buffer
Definition at line 1801 of file ssl.h.
◆ private_out_cid
| unsigned char* mbedtls_ssl_context::private_out_cid |
The start of the CID; (the end is marked by in_len).
Definition at line 1805 of file ssl.h.
◆ private_out_ctr
| unsigned char* mbedtls_ssl_context::private_out_ctr |
64-bit outgoing message counter
Definition at line 1802 of file ssl.h.
◆ private_out_hdr
| unsigned char* mbedtls_ssl_context::private_out_hdr |
start of record header
Definition at line 1803 of file ssl.h.
◆ private_out_iv
| unsigned char* mbedtls_ssl_context::private_out_iv |
ivlen-byte IV
Definition at line 1809 of file ssl.h.
◆ private_out_left
| size_t mbedtls_ssl_context::private_out_left |
amount of data not yet written
Definition at line 1814 of file ssl.h.
◆ private_out_len
| unsigned char* mbedtls_ssl_context::private_out_len |
two-bytes message length field
Definition at line 1808 of file ssl.h.
◆ private_out_msg
| unsigned char* mbedtls_ssl_context::private_out_msg |
message contents (out_iv+ivlen)
Definition at line 1810 of file ssl.h.
◆ private_out_msglen
| size_t mbedtls_ssl_context::private_out_msglen |
record header: message length
Definition at line 1813 of file ssl.h.
◆ private_out_msgtype
| int mbedtls_ssl_context::private_out_msgtype |
record header: message type
Definition at line 1812 of file ssl.h.
◆ private_own_cid
The next incoming CID, chosen by the user and applying to all subsequent handshakes. This may be different from the CID currently used in case the user has re-configured the CID after an initial handshake.
Definition at line 1871 of file ssl.h.
◆ private_own_cid_len
| uint8_t mbedtls_ssl_context::private_own_cid_len |
The length of own_cid.
Definition at line 1872 of file ssl.h.
◆ private_own_verify_data
previous handshake verify data
Definition at line 1860 of file ssl.h.
◆ private_p_bio
| void* mbedtls_ssl_context::private_p_bio |
context for I/O operations
Definition at line 1673 of file ssl.h.
◆ private_p_export_keys
| void* mbedtls_ssl_context::private_p_export_keys |
context for key export callback
Definition at line 1881 of file ssl.h.
◆ private_p_timer
| void* mbedtls_ssl_context::private_p_timer |
context for the timer callbacks
Definition at line 1713 of file ssl.h.
◆ private_p_vrfy
| void* mbedtls_ssl_context::private_p_vrfy |
context for X.509 verify callback
Definition at line 1665 of file ssl.h.
◆ private_peer_verify_data
previous handshake verify data
Definition at line 1861 of file ssl.h.
◆ private_renego_records_seen
| int mbedtls_ssl_context::private_renego_records_seen |
Records since renego request, or with DTLS, number of retransmissions of request if renego_max_records is < 0
Definition at line 1629 of file ssl.h.
◆ private_renego_status
| int mbedtls_ssl_context::private_renego_status |
Initial, in progress, pending?
Definition at line 1628 of file ssl.h.
◆ private_secure_renegotiation
| int mbedtls_ssl_context::private_secure_renegotiation |
does peer support legacy or secure renegotiation
Definition at line 1856 of file ssl.h.
◆ private_send_alert
| unsigned char mbedtls_ssl_context::private_send_alert |
Determines if a fatal alert should be sent. Values:
0 , no alert is to be sent.
1 , alert is to be sent.
Definition at line 1770 of file ssl.h.
◆ private_session
negotiated session data
Definition at line 1680 of file ssl.h.
◆ private_session_in
current session data (in)
Definition at line 1678 of file ssl.h.
◆ private_session_negotiate
session data in negotiation
Definition at line 1681 of file ssl.h.
◆ private_session_out
current session data (out)
Definition at line 1679 of file ssl.h.
◆ private_state
| int mbedtls_ssl_context::private_state |
SSL handshake: current state
Definition at line 1618 of file ssl.h.
◆ private_tls_version
Maximum TLS version to be negotiated, then negotiated TLS version.
It is initialized as the configured maximum TLS version to be negotiated by mbedtls_ssl_setup().
When renegotiating or resuming a session, it is overwritten in the ClientHello writing preparation stage with the previously negotiated TLS version.
On client side, it is updated to the TLS version selected by the server for the handshake when the ServerHello is received.
On server side, it is updated to the TLS version the server selects for the handshake when the ClientHello is received.
Definition at line 1650 of file ssl.h.
◆ private_transform
negotiated transform params This pointer owns the transform it references.
Definition at line 1695 of file ssl.h.
◆ private_transform_application
The application data transform in TLS 1.3. This pointer owns the transform it references.
Definition at line 1707 of file ssl.h.
◆ private_transform_in
current transform params (in) This is always a reference, never an owning pointer.
Definition at line 1689 of file ssl.h.
◆ private_transform_negotiate
transform params in negotiation This pointer owns the transform it references.
Definition at line 1699 of file ssl.h.
◆ private_transform_out
current transform params (out) This is always a reference, never an owning pointer.
Definition at line 1692 of file ssl.h.
◆ private_unused
◆ private_user_data
User data pointer or handle.
The library sets this to 0 when creating a context and does not access it afterwards.
- Warning
- Serializing and restoring an SSL context with mbedtls_ssl_context_save() and mbedtls_ssl_context_load() does not currently restore the user data.
Definition at line 1892 of file ssl.h.
◆ private_verify_data_len
| size_t mbedtls_ssl_context::private_verify_data_len |
length of verify data stored
Definition at line 1859 of file ssl.h.
The documentation for this struct was generated from the following file: