Retrieve DER-encoded certificate data.
#include <smartcard/sc_certificate.h>
sc_response_code_t sc_certificate_get_data(const sc_certificate_t *certificate,
unsigned char *data,
size_t *data_length)
BlackBerry 10.2.0
The certificate instance. This value cannot be NULL.
The buffer where the certificate data is written. This parameter can be NULL, and if it is, this function returns only the length of the certificate data.
If data is NULL, then the size of the raw certificate data, in bytes, is written to this parameter when the function returns. If data is not NULL, then this parameter indicates the length of data on input, and is updated to indicate the number of bytes that have been written to data on output. This value cannot be NULL.
SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.