Skip to main content

C2xSecCertificateGetName

Open topic with navigation CAPL Functions » Car2x » C2xSecCertificateGetName

Function Syntax

long C2xSecCertificateGetName( long certificateHandle, long length, char name[] );

Description

Gets a certificate name from Car2x Certificate Manager.

Parameters

  • certificateHandle: Handle of the certificate.
  • length: Maximum number of bytes to be copied; make sure size of destination is equal or larger than length of name[].
  • name: Buffer in which the name is copied.

Return Values

Example

// assumes a certificate with this certificateHandle is available in the Car2x Certificate Manager
long certificateHandle;
char certName[100];
long errCode;

errCode = C2xSecCertificateGetName( certificateHandle, elCount(certName), certName );