tlsAuthenticateAsClientWithConfigurationAndEarlyData
Valid for: CANoe DEFunction Syntax
tlsAuthenticateAsClientWithConfigurationAndEarlyData(dword socket, char configuration[], char buffer[], dword size)
Description
TLS 1.3 allows clients to send encrypted data to the server right after the ClientHello message on the first flight (early data) with the performance-enhancing feature zero round trip time resumption (0-RTT). Early data is only processed by the server if a Pre-Shared Key (PSK) is configured for both, TLS 1.3 client and TLS 1.3 server, and a Max Early Data Size is set > 0 in the TLS 1.3 server configuration.Parameters
- socket: The socket handle.
- configuration: Name of the TLS 1.3 Client configuration.
- Buffer: The buffer, containing the early data to be sent.
- size: The size of the early data to be sent.
Return Values
- 0: The function was successfully executed.
- > 0: Error code