Create a new empty GckAttributes
array.
The returned set of attributes is floating, and should either be passed to another gck library function which consumes this floating reference, or if you wish to keep these attributes around you should ref them with gck_attributes_ref_sink() and unref them later with gck_attributes_unref().
Should be set to always be [constINVALID]
Get the number of attributes in this attribute array.
Dump the attributes using g_printerr().
Find an attribute with the specified type in the array.
The attribute (if found) must be of the right size to store a boolean value (ie: CK_BBOOL). If the attribute is marked invalid then it will be treated as not found.
The type of attribute to find.
Find an attribute with the specified type in the array.
The attribute (if found) must be of the right size to store a date value (ie: CK_DATE). If the attribute is marked invalid then it will be treated as not found.
The type of attribute to find.
Find an attribute with the specified type in the array.
If the attribute is marked invalid then it will be treated as not found. The resulting string will be null-terminated, and must be freed by the caller using g_free().
The type of attribute to find.
Find an attribute with the specified type in the array.
The attribute (if found) must be of the right size to store a unsigned long value (ie: CK_ULONG). If the attribute is marked invalid then it will be treated as not found.
The type of attribute to find.
Reference this attributes array.
#GckAttributes uses a floating reference count system. [methodBuilder
.end]
and [ctorAttributes
.new_empty] both return floating references.
Calling this function on a GckAttributes
with a floating
reference will convert the floating reference into a full reference.
Calling this function on a non-floating GckAttributes
results
in an additional normal reference being added.
In other words, if the attrs
is floating, then this call "assumes
ownership" of the floating reference, converting it to a normal
reference. If the attrs
is not floating, then this call adds a
new normal reference increasing the reference count by one.
All Gck library functions that assume ownership of floating references are documented as such. Essentially any Gck function that performs an operation using a #GckAttributes argument rather than operating on the attributes themselves, will accept a floating reference.
Print out attributes to a string in aform that's useful for debugging or logging.
The format of the string returned may change in the future.
Unreference this attribute array.
When all outstanding references are gone, the array will be freed.
Create a new empty GckAttributes
array.
The returned set of attributes is floating, and should either be passed to another gck library function which consumes this floating reference, or if you wish to keep these attributes around you should ref them with gck_attributes_ref_sink() and unref them later with gck_attributes_unref().
Should be set to always be [constINVALID]
A set of [struct
Attribute]
structures.These attributes contain information about a PKCS11 object. Use [method
Object
.get] or [methodObject
.set] to set and retrieve attributes on an object.