PKCS#11 new USER problem
Anthony Scarpino
anthony.scarpino at sun.com
Tue Jul 1 23:16:22 PDT 2008
crypto-discuss is the best place to ask questions about PKCS#11
interfaces for the crypto framework...
My guess for your problem is you need to use "security/pkcs11.h". Also
there is "security/cryptoki.h" which contains the pkcs11 header file
along with some solaris-specific functions that were put together to
make some of the more complicated pkcs11 tasks a bit more manageable..
Tony
Steven adonis wrote:
> Why I can't access pkcs11f.h 's function
>
> 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
More information about the crypto-discuss
mailing list