SmartCardHolderVerifier::changeCode()

Change the smart card PIN.

Synopsis:

#include <smartcard_spi/SmartCardHolderVerifier.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardHolderVerifier::changeCode(const unsigned char *oldCode, unsigned int oldCodeLength, const unsigned char *newCode, unsigned int newCodeLength, unsigned int flags, unsigned int ref)

Since:

BlackBerry 10.3.0

Arguments:

oldCode

The current PIN.

oldCodeLength

The current PIN length.

newCode

The new PIN.

newCodeLength

The new PIN length.

flags

Indicates whether the CHV is to be made against a local (SC_FL_IHV_LOCAL) or global (SC_FL_IHV_GLOBAL) code. If the SC_FL_IHV_CHECKONLY flag is specified, a pop-up dialog box requesting input of CHV information should not be presented; instead, only the CHV state should be returned.

ref

A vendor-specific reference value.

Library:

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

Description:

This function changes the smart card PIN.

Returns:

If successful, SCARD_S_SUCCESS is returned. Otherwise, an error code is returned.

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus