Extract the Subject name of the certificate in ASN.1 DER encoding.
Note, that the pWritten parameter can be set to NULL if the caller is not interested in the number of bytes written into the buffer. However, this parameter is also used to return the bytes required to copy the key into when pBuffer is set to NULL.
- Parameters
-
pBuffer | [ in ] Block of memory to write the certificate into, when NULL the required size of this buffer is returned in pcWritten |
cBuffer | [ in ] Number of entries in the buffer pointed to by pBuffer. |
pcWritten | [ out ] Optional can be NULL, returns the number of characters written into pBuffer. This parameter cannot be NULL when pBuffer is also NULL. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | pBuffer and pcBytesWritten cannot both be NULL. |
P6R::eTooSmall | pBuffer is too small to copy the key into. |
P6R::eFail | An error occurred trying to write the certificate into the pBuffer. |
P6R::eNoMemoryr | Insufficient available memory to copy the subject into pBuffer. |