Skip to main content

X509DN_GetValueForAttribute

Valid for: CANoe DE • CANoe4SW DE

Method Syntax

Description

Getter function to extract the value field (content) for an DN Attribute that is identified by its OID in textual representation. The OID has point notation 0.1.2.3.4.5. If no element with the OID exists, the function will fail. If more than one element exists, the function will return the value of the first element.

Parameters

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

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