Typedefs¶
-
group
group_cy_tls_typedefs
Typedefs
-
typedef void *
cy_tls_context_t
¶ TLS context type.
-
typedef cy_rslt_t (*
cy_network_send_t
)(void *context, const unsigned char *buffer, uint32_t length, uint32_t *bytes_sent)¶ Callback function used by the underlying TLS stack for sending the TLS handshake messages and encrypted data over the network.
- Parameters
context – [in] User context provided at the time of callback registration.
buffer – [in] Buffer of the data to send.
length – [in] Length of the buffer.
bytes_sent – [out] Number of bytes successfully sent over the network.
- Returns
CY_RSLT_SUCCESS on success; an error code on failure. On success, it also returns the number of bytes sent.
-
typedef cy_rslt_t (*
cy_network_recv_t
)(void *context, unsigned char *buffer, uint32_t length, uint32_t *bytes_received)¶ Callback function used by the underlying TLS stack for reading TLS handshake messages or the encrypted data from the network.
- Parameters
context – [in] User context provided at the time of callback registration.
buffer – [out] Buffer into which the received data will be placed.
length – [in] Size of the buffer.
bytes_received – [out] Number of bytes received.
- Returns
CY_RSLT_SUCCESS on success; an error code on failure. On success, it also returns the number of bytes received.
-
typedef void *