Hi,

On Tue, Jul 01, 2008 at 09:40:27PM -0700, Steven adonis wrote:
> Why I can't access pkcs11f.h 's function

        What about "#include    <pkcs11.h>" to access system wide
        #include search path. Now you are accessing pkcs11.h in your
        source code directory (this is assumption, since I do not see
        the compiler flags).

        /j.


> 
> CODE:
> #include <stdio.h>
> #include <iostream>
> #include "winplatform.h"
> #include <windef.h>
> #include "pkcs11.h"
> #include "basetsd.h"
> 
> #include "DKP12Api.h"
> 
> #ifdef _DEBUG
> #define new DEBUG_NEW
> #undef THIS_FILE
> static char THIS_FILE[] = __FILE__;
> #endif
> 
> 
> #if _MSC_VER > 1000
> #pragma once
> #endif // _MSC_VER > 1000
> // CLogin.h : header file
> //
> 
> 
> 
> int main(){
>    printf("hello\n");
>    
>    CK_RV rtn;
>       CK_SLOT_ID_PTR pSlotList = 0;  
>       CK_VERSION version;
>       ULONG Count = 20;
>       CK_SLOT_ID slot;
>       
>       pSlotList = new CK_SLOT_ID[20];
>       
> rtn = C_Initialize(0);  // error appear in there
> 
> }
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> security-discuss mailing list
> security-discuss at opensolaris.org


        /Jan Friedel <jf (at) Sun.com>

Reply via email to