Declaration [src]

gck_object_get_data_full (
  GckObject* self,
  gulong attr_type,
  GckAllocator allocator,
  GCancellable* cancellable,
  gsize* n_data,
  GError** error

Description [src]

Get the data for the specified attribute from the object. For convenience the returned data has an extra null terminator, not included in the returned length.

This call may block for an indefinite period.

This method is not directly available to language bindings.


attr_type gulong

The attribute to get data for.

allocator GckAllocator

An allocator with which to allocate memory for the data, or NULL for default.

cancellable GCancellable

Optional cancellation object, or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.
n_data gsize*

The length of the resulting data.

 The argument will be set by the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: An array of guchar

The resulting PKCS#11 attribute data, or NULL if an error occurred.

 The length of the array is in the n_data argument.
 The caller of the method takes ownership of the data, and is responsible for freeing it.