C2xSecPacketGetStatus
Valid for: CANoe DEFunction Syntax
Description
Gets validity status of a packet. This is interesting for received packets only and indicates if the signature of the security header of the packet is valid. In case the signature is not valid, an appropriate error code is returned.Parameters
- packetHandle: Handle of the packet.
Return Values
The validity status consists of 3 bit fields which are combined using a binary OR operation. The overall status is masked with 0xf000 and has the meaning:0x0000: Internal error.0x1000: At least one signer in trust chain is unknown.0x2000: At least one signature in trust chain is invalid.0x3000: All signatures in the chain are valid and end in a certificate which is marked as trusted in the Certificate Manager.
0x0100: Root CA certificate0x0200: Pseudonym CA certificate0x0300: Longterm CA certificate0x0400: Pseudonym certificate0x0500: Longterm certificate0x0600: Certificate Revocation List certificate0x0700: Message
0x0001: Invalid signature.0x0002: Wrong certificate type.0x0003: Root known but not trusted.0x0004: CANoe simulation time not in permitted period.
0x1400means the status is unknown, because the Pseudonym certificate signer is unknown0x2702means the status is invalid, because the message signer is not a Pseudonym certificate0x3100means the status is valid, because the Root CA certificate is trusted