Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICert::getPublicKey ( P6UCHAR pBuffer,
P6SIZE  cBuffer,
P6SIZE pcWritten 
)
pure virtual

This method is used to get a copy of the public key stored in the certificate (in DER format).

Parameters
pBuffer[ out ] The address of a buffer in which will be placed the public key contained in the certificate on success. If set to NULL then pcWritten contains the size of buffer required.
cBuffer[ in ] The size in characters of pBuffer.
pcWritten[ out ] (optional) The address of a P6SIZE in which will be placed the number of characters written to pBuffer on success. If pBuffer is NULL then this parameter is required.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgpBuffer and pcWritten was NULL.
P6R::eNotInitializedThe certificate interface has not been initialized.
P6R::eInvalidStateThe certificate interface has been initialized, but no certificate hash been loaded yet.
P6R::eNotFoundCannot find the public key in the certificate.