← Prev in month ← Prev in thread

A question about C_Finalize

From
Mark Joseph <>
Date
2015-05-15T15:35:33+00:00
ID
Thread
A question about C_Finalize
From the Base Specification Version 2.40

In Section 5.4 General-purpose functions, C_Finalize() the following text appears:

"If several applications are using Cryptoki, each one should call C_Finalize. Each application’s call to

C_Finalize should be preceded by a single call to C_Initialize;"

I interpret this to mean: each successful call to C_Initialize should have a matching call to C_Finalize.  What if

the call to C_Initialize returns CKR_ARGUMENTS_BAD or CKR_CRYPTOKI_ALREADY_INITIALIZED, does the application

still call C_Finalize ??

I looked in the User Guide and found nothing to clarify this point.

Thanks,

Mark Joseph
← Prev in month ← Prev in thread