Anthony Scarpino wrote: > 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"
Given the number of includes with "" rather than <> it is impossible to answer this without also seeing the compiler arguments. Though as Tony said you need to: #include <security/cryptoki.h> #include <security/pkcs11.h> Note the <> rather than "" which means look in the system location. PKCS#11 unfortunately did not specify a standard location for those, so Solaris choose to put them in the above locations. -- Darren J Moffat