RE: C_Initialize frozen into the called CardAcquireContext function
- From: lelteto <lelteto@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 15 Apr 2008 11:04:03 -0700
First of all please noet that this is a MS CAPI forum, not dedicated to
PKCS#11 problems. Cryptoki has its own mailing list, you should post PKCS#11
questions there.
But to try to help you:
Are you sure you are passing valid parameter to C_Initialize? Please note
that most implementations need a valid (non-NULL) CK_C_INITIALIZE_ARGS
struct. Within the struct you can se the mutex functions to NULL, but then
you need to set the flag to CKF_OS_LOCKING_OK. (This is despite that the spec
say the pInitArgs parameter can be NULL.)
Please review the function and struct definition and notes in the PKCS#11
standard.
Laszlo Elteto
SafeNet, Inc.
"Mongri" wrote:
.
I'm implementing a smart card minidriver. I develop Windows 2k with Visual
Studio. In the part of CardAcquireContext, I load the module opensc-pkcs11
and I initializes with CK_RV CK_FUNC (C_Initialize). C_Initialize initializes
the Cryptoki library
I have also developed a test program that loads correctly the minidriver and
properly execute the function CardAcquireContext.
However, during the Certificate enrolment phase on the smartcard from the
Web Certsrv service (activex), the 'Base CSP' executes the CardAcquireContext
from my cardmodule. With the Softice tools, I notice that the function
'C_Initialze' remains frozen. The smartcard removed of reader allows to
unlock the function.
I tried to use other modules pkcs11/ smart cards. I have the same problem.
Do you know of this problem ?
- References:
- Prev by Date: Re: Smartcard authentication in a multi-tier application
- Next by Date: Re: SHFileOperation Problem
- Previous by thread: C_Initialize frozen into the called CardAcquireContext function
- Index(es):