Skip to main content

X509Encoder_EncodeSigningRequest

Valid for: CANoe DE • CANoe4SW DE

Method Syntax

dword X509Encoder_EncodeSigningRequest(qword objectHandle, qword csrHandle, byte[] outBuffer, dword outBufferLength)

Description

Encoding function for a PKCS#10 Certificate Signing Request (CSR) into binary, DER encoded data. This function will encode any PKCS#10 CSR structure, even if the content of the certificate is invalid in terms of PKCS#10 specification (can be used for error testing with invalid data structure). Note that invalid structures - even ones generated with this API - cannot be parsed with this API.

Parameters

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