The major version number of the Gck library.
The micro version number of the Gck library.
The minor version number of the Gck library.
The URI will match specific version of modules. To be used as a GckUriFlags argument.
The URI will match objects on a specific token. To be used as a GckUriFlags argument.
The token inserted into a device with a specific module.
Custom PKCS#11 errors that originate from the gck library, are based at this error code.
Unreferences a builder. If this was the last reference then the builder is freed.
It is an error to use this function on builders that were allocated on the stack.
the builder
Get a message for a PKCS#11 return value or error code. Do not
pass CKR_OK
or other non-errors to this function.
The PKCS#11 return value to get a message for.
Setup an enumerator for listing matching objects on the modules.
This call will not block but will return an enumerator immediately.
If the attrs
[structAttributes]
is floating, it is consumed.
The modules
attributes that the objects must have, or empty for all objects
Options from GckSessionOptions
Enumerate objects that match a URI.
This call will not block. Use the [classEnumerator]
functions in order to
get at the actual objects that match.
The modules
The URI that the enumerator will match
Options from GckSessionOptions
Load and initialize all the registered modules.
optional cancellation object
Load and initialize all the registered modules asynchronously.
optional cancellation object
a callback which will be called when the operation completes
Finishes the asynchronous operation to initialize the registered PKCS#11 modules.
the asynchronous result
Find an object that matches a URI.
This call can block. Use [funcmodules_enumerate_uri]
for a non-blocking
version.
The modules
The URI the objects must match
Options from GckSessionOptions
Find objects that match a URI.
This call can block. Use [funcmodules_enumerate_uri]
for a non-blocking
version.
The modules
The URI the objects must match
Options from GckSessionOptions
Setup an enumerator for listing matching objects on the slots.
If the match
#GckAttributes is floating, it is consumed.
This call will not block but will return an enumerator immediately.
a list of #GckSlot to enumerate objects on.
attributes that the objects must match, or empty for all objects
options for opening a session
Parse a PKCS#11 URI for use in a given context.
The result will contain the fields that are relevant for the given context. See #GckUriData for more info. Other fields will be set to %NULL.
Convert CK_BBOOL
type memory to a boolean.
memory to convert
Convert CK_ULONG
type memory to a boolean.
memory to convert
Used as a terminator at the end of variable argument lists.