Skip to main content

OnObservedAndDecryptedTlsHandshakeData

Feature availability for your product: CANoe DE • CANoe4SW DE • CANoe:lite DE • CANoe4SW:lite DE

Function Syntax

Description

If the CAPL program implements this callback, it is called when observed TLS handshake data is available. The application channel allows further selection in the CAPL code, in which handshake data one is interested. In the case of an application-channel-based access, OnObservedAndDecryptedTlsHandshakeData with 6 parameters needs to be used. In contrast, with network-based access, OnObservedAndDecryptedTlsHandshakeData with 7 parameters, including the hardware channel, is required. The network access can be set in the CANoe options Bus Systems/Protocols, Ethernet. The data length can be retrieved with elcount(data) in the CAPL code. The record content type allows the user to select further for certain TLS handshake messages like TLS alerts.

Parameters

  • sourceEndpoint: Address and port to which the source socket is connected.
  • destinationEndpoint: Address and port to which the destination socket is connected.
  • data: Observed and decrypted TLS application data.
  • vlanIds: vLAN Ids
  • applicationChannel: Ethernet application channel.
  • hardwareChannel: Ethernet hardware channel.
  • contentType: Record Content Type. Enum containing {eRecordContentHandshake, eRecordContentChangeCipherSpec, eRecordContentHeartbeat, eRecordContentAlert} values.

Return Values

Example