Hi Jack

> While i see the processing associated with pInitArgs, i wanted to ask what
> use case the app programmer would want to call C_Initialise(pInitArgs) vs
> C_Initialize(NULL_PTR) ??
>

The documentation for PKCS#11 can be found here:
ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs-11v2-20.pdf

Details on C_Initialize() is found in section 11.4, page 102.

To summarize, using the argument NULL_PTR means that the application will
not access the library using multiple threads. Using a non NULL_PTR for
pInitArgs means that it will/can use multiple threads. The library will use
native OS mutex-handling or functions provided by the calling application,
depending on the contents of the pInitArgs.

// Rickard
_______________________________________________
Opendnssec-user mailing list
[email protected]
https://lists.opendnssec.org/mailman/listinfo/opendnssec-user

Reply via email to