sc_certificate_get_data()

Retrieve DER-encoded certificate data.

Synopsis:

#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)

Since:

BlackBerry 10.2.0

Arguments:

certificate

The certificate instance. This value cannot be NULL.

data

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.

data_length

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.

Library:

libscs (For the qcc command, use the -l scs option to link against this library)

Description:

Returns:

SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.