take_data


Description:

public void take_data (ulong attr_type, owned uint8[]? value)

Add a new attribute to the builder with an arbitrary value.

Unconditionally adds a new attribute, even if one with the same attr_type already exists.

Ownership of the value memory is taken by the builder, may be reallocated, and is eventually freed with g_free. The memory must have been allocated using the standard GLib memory allocation routines.

null may be specified for the value argument, in which case an empty attribute is created. [ const@INVALID] may be specified for the length, in which case an invalid attribute is created in the PKCS#11 style.

Parameters:

this

the builder

attr_type

the new attribute type

value

the new attribute memory

length

the length of the memory