Clear allocated memory held by a Gck.Attribute.
This attribute must have been allocated by a Gck library function, or the results of this method are undefined.
The type of the attribute will remain set.
Dump the specified attribute using g_printerr().
Free an attribute and its allocated memory. These is usually used with attributes that are allocated by Attribute.new or a similar function.
Get the CK_BBOOL of a PKCS#11 attribute. No conversion is performed. It is an error to pass an attribute to this function unless you're know it's supposed to contain a boolean value.
The boolean value of the attribute.
Get the raw value in the attribute.
This is useful from scripting languages. C callers will generally access the Gck.Attribute struct directly.
This function will null if the attribute contains empty or invalid
data. The returned data must not be modified and is only valid
as long as this attribute.
the value data or null
Get the string value of a PKCS#11 attribute. No conversion is performed. It is an error to pass an attribute to this function unless you're know it's supposed to contain a value of the right type.
a null terminated string, to be freed with g_free(), or null if the value was invalid
Get the CK_ULONG value of a PKCS#11 attribute. No conversion is performed. It is an error to pass an attribute to this function unless you're know it's supposed to contain a value of the right type.
The ulong value of the attribute.
Hash an attribute for use in GHashTable keys.
the hash code
Initialize a PKCS#11 attribute as a copy of another attribute. This copies the value memory as well.
When done with the copied attribute you should use Attribute.clear to free the internal memory.
Check if the PKCS#11 attribute represents 'invalid' or 'not found' according to the PKCS#11 spec. That is, having length of (CK_ULONG)-1.
Whether the attribute represents invalid or not.
StaticnewStaticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_
This structure represents a PKCS#11
CK_ATTRIBUTE. These attributes contain information about a PKCS#11 object. Use Object.get or Object.set to set and attributes on an object.Although you are free to allocate a Gck.Attribute in your own code, no functions in this library will operate on such an attribute.