Gck.Attribute.new_invalid

function new_invalid(attr_type: Number(gulong)): Gck.Attribute {
    // Gjs wrapper for gck_attribute_new_invalid()
}
  

Create a new PKCS\#11 attribute as 'invalid' or 'not found' state. Specifically this sets the value length to (CK_ULONG)-1 as specified in the PKCS\#11 specification.

attr_type

the PKCS\#11 attribute type to set on the attribute

Returns

the new attribute; when done with the attribute use Gck.Attribute.prototype.free to free it