Correct.
Try the attached patch.

On 8/14/08, Horst, Kerstin <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi all,
>
>
>
> I hope this is the right list to post my problem to…
>
> I downloaded all newly released versions a few days ago and tried to compile
> them on my windows xp system with nmake/ Visual Studio.net 2003.
>
> Opensc 0.11.5 works fine, but I got a syntaxerror when trying to compile
> libp11 0.2.4.
>
>
>
> I am using openssl_098g (headers and libs)
>
> This is the ouput I get:
>
>
>
> p11_load.c
>
> p11_load.c(58) : error C2059: Syntaxfehler: '.'
>
>
>
> NMAKE : fatal error U1077: 'cl': R³ckgabe-Code '0x2'
>
> Stop.
>
>
>
> The problem seems to be the . pReserved in:
>
>
>
> int PKCS11_CTX_load(PKCS11_CTX * ctx, const char *name)
>
> {
>
> ….
>
> CK_C_INITIALIZE_ARGS args = { .pReserved = priv->init_args, };
>
> …
>
> }
>
>
>
> Did I make something wrong? Can you please help me?
>
>
>
> Thanks in advance…
>
>
>
> Greetings
>
> Kerstin
> _______________________________________________
>  opensc-devel mailing list
>  [email protected]
> http://www.opensc-project.org/mailman/listinfo/opensc-devel
>
Index: src/p11_load.c
===================================================================
--- src/p11_load.c	(revision 169)
+++ src/p11_load.c	(working copy)
@@ -55,7 +55,7 @@
 int PKCS11_CTX_load(PKCS11_CTX * ctx, const char *name)
 {
 	PKCS11_CTX_private *priv = PRIVCTX(ctx);
-	CK_C_INITIALIZE_ARGS args = { .pReserved = priv->init_args, };
+	CK_C_INITIALIZE_ARGS args;
 	CK_INFO ck_info;
 	int rv;
 
@@ -70,6 +70,8 @@
 	}
 
 	/* Tell the PKCS11 to initialize itself */
+	memset(&args, 0, sizeof(args));
+	args.pReserved = priv->init_args;
 	rv = priv->method->C_Initialize(&args);
 	CRYPTOKI_checkerr(PKCS11_F_PKCS11_CTX_LOAD, rv);
 
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to