Import the X.509 certificate to the smart card for the specified key.
#include <smartcard/sc_smart_card.h>
sc_response_code_t sc_import_certificate(sc_context_t *context,
const unsigned char *certificate,
size_t certificate_length,
sc_key_store_data_t *key_store_data)
BlackBerry 10.3.1
The active smart card context. Must not be NULL.
The certificate to import. The certificate should be DER-encoded in X.509 format. Must not be NULL.
The certificate length.
The instance of the key store data that identifies the key slot where the certificate should be imported. The key store data instance may be modified so it contains the correct key reference. In particular, the certificate data in the key store data instance may be updated. Must not be NULL.
SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.