Skip to main content

X509Verifier_VerifyCertificateChain

Valid for: CANoe DE • CANoe4SW DE

Method Syntax

dword X509Verifier_VerifyCertificateChain(qword objectHandle, qword certificateToBeVerified, dword& verificationResult)

Description

Verification function for Certificate chains. The function tries to validate all possible Certificate chains using the Authority Key Identifier / Subject Key Identifier or the Subject / Issuer Distinguished Names. The Function returns true if a certificate chain exists, where the leaf all intermediate certificates are valid and signed by a trusted root certificate. Note: This verifier will ignore unknown CRITICAL extensions to allow verification of certificates with unknown, custom OIDs.

Parameters

  • objectHandle: (in) Handle with type ‘X509Verifier’. The function will be called in context of this handle.

Selectors

Return Values

  • 1: NoError: Operation was completed successfully.
  • -2: Nullpointer: Error, the return value of the function was “NULL”. The value is not available and the output buffer is unchanged.
  • -3: BufferTooSmall: Error, the output buffer is too small. No value has been written.
  • -4: InvalidHandle: Error, the provided objectHandle is invalid or not suitable for this function.
  • -5: InvalidArgument: Error, one or more arguments are invalid for this function.
  • -6: InvalidArgumentHandle: Error, one or more argument handles are invalid or not suitable for this function.

Example