Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Mon, 14 Apr 2008 15:58:01 -0700,    group: microsoft.public.platformsdk.security        back       


C_Initialize frozen into the called CardAcquireContext function   
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 ?
date: Mon, 14 Apr 2008 15:58:01 -0700   author:   Mongri

RE: C_Initialize frozen into the called CardAcquireContext function   
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 ?
> 
>
date: Tue, 15 Apr 2008 11:04:03 -0700   author:   lelteto

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us