[Opendnssec-user] Why C_Initialize calling differences?
Rickard Bellgrim
rickard at opendnssec.org
Tue Jan 14 10:47:07 UTC 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendnssec.org/pipermail/opendnssec-user/attachments/20140114/3390a527/attachment.htm>
More information about the Opendnssec-user
mailing list