Hi all,
I have a C++ app that reads id data and certificates using the pkcs11 library.
In total I have to read 5 certificates (auth/sign/Ca/Root/Rnn) plus about 15 CKO_DATA objects like
surname,...
Currently I call for each object
- C_FindObjectsInit with the specific filter
- C_FindObjects, C_GetAttributeValue to read the object
- C_FindObjectsFinal
That works fine but take about 7/8 secs after the popup warning.
As an alternative, I also tried reading
- all the CKO_DATA objects in one shot ( C_FindObjectsInit then a loop for each object then C_FindObjectsFinal)
- then all the CKO_CERTIFICATE objects in the same manner
Also works fine but not faster (even a little slower).
Then a last test was to call C_FindObjectsInit(m_vCK_SESSION_HANDLE, NULL,0) to retrieve all the objects, as specified by the
PKCS 11 API.
What is strange is that in that case,
- I have no warning message
- and only 8 objects are returned.
Any idea how to retrieve all the objects with just one C_FindObjectsInit call?