Hi,
we have followin code detecting the private key on a card=
BOOL isCardInReader(PCCERT_CONTEXT certContext) {
DWORD flags = CRYPT_ACQUIRE_CACHE_FLAG | CRYPT_ACQUIRE_COMPARE_KEY_FLAG | CRYPT_ACQUIRE_SILENT_FLAG;
NCRYPT_KEY_HANDLE key = 0;
DWORD spec = 0;
BOOL ncrypt = FALSE;
CryptAcquireCertificatePrivateKey(certContext, flags, 0, &key, &spec, &ncrypt);
if (!key) {
return FALSE;
}
...
With 'older' eID cards (root CA4) the Cert is detected but with the 'newest' eid cards (root CA5(?), CA6) not.
Anyone any idea what needs to be done to make this code function with tha 'newest' cards ?
Thx
Stefan