Skip to main content

X509Extensions_SetElement

Valid for: CANoe DE • CANoe4SW DE

Method Syntax

dword X509Extensions_SetElement(qword objectHandle, qword pos, qword newValue)

Description

Setter function to update an existing element in the Extensions list at specific position. Will fail in case the position is not in valid range of the list. Since the list is ordered, the element index is stable. Updating an element will cause deletion of the prior element and all handles to this ‘old’ element will be invalidated. If you need to re-use an element after overwriting, make sure to copy it before calling this function. Valid indices will start at zero and end with ‘size - 1’.

Parameters

  • objectHandle: (in) Handle with type ‘X509Extensions’. 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