sc_certificate_set_data()

Set DER-encoded certificate data.

Synopsis:

#include <smartcard/sc_certificate.h>
 
sc_response_code_t sc_certificate_set_data(sc_certificate_t *certificate,                 
                                           const 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 containing the raw DER certificate data to be set. If data is NULL, then the currently stored certificate data is cleared.

data_length

The length of the data buffer. If the length is zero, then the currently stored certificate data is cleared.

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.