[opensc-devel] OpenSC on Windows - pkcs11-global.c
Douglas E. Engert
deengert at anl.gov
Fri Apr 4 17:52:09 CEST 2008
Here is the output of the pkcs11-global.c problem:
cl /D_CRT_SECURE_NO_DEPRECATE /Zi /MD /nologo /DHAVE_CONFIG_H /I..\..\sr
c\include /I..\..\src\include\opensc /I..\..\src\common /I"x:\appl\OpenSSL-0.9.8
d\win32\include" /I"C:\opt\zlib123-dll\include" /I"D:\opt\OpenSC\GnuWin32\includ
e" /D_WIN32_WINNT=0x0400 /DENABLE_OPENSSL /DENABLE_ZLIB /c pkcs11-global.c pkcs1
1-session.c pkcs11-object.c misc.c slot.c mechanism.c openssl.c secretkey.c fram
ework-pkcs15.c framework-pkcs15init.c debug.c hack-enabled.c
pkcs11-global.c
pkcs11-global.c(323) : error C2057: expected constant expression
pkcs11-global.c(323) : error C2466: cannot allocate an array of constant size 0
pkcs11-global.c(323) : error C2133: 'found' : unknown size
Line 323 is:
CK_SLOT_ID found[sc_pkcs11_conf.pkcs11_max_virtual_slots];
Attached is a suggested fix.
--
Douglas E. Engert <DEEngert at anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pkcs11-global.c.diff.txt
Url: http://www.opensc-project.org/pipermail/opensc-devel/attachments/20080404/f3ca10ce/attachment.txt
More information about the opensc-devel
mailing list