Create a #SecretValue for the secret data passed in. The secret data is copied into non-pageable 'secure' memory.
If the length is less than zero, then secret
is assumed to be
null-terminated.
the secret data
the length of the data
the content type of the data
Get the secret data in the #SecretValue. The value is not necessarily null-terminated unless it was created with secret_value_new() or a null-terminated string was passed to secret_value_new_full().
Get the content type of the secret value, such as
Get the secret data in the #SecretValue if it contains a textual
value. The content type must be
Add another reference to the #SecretValue. For each reference secret_value_unref() should be called to unreference the value.
Unreference a #SecretValue. When the last reference is gone, then the value will be freed.
Create a #SecretValue for the secret data passed in. The secret data is copied into non-pageable 'secure' memory.
If the length is less than zero, then secret
is assumed to be
null-terminated.
the secret data
the length of the data
the content type of the data
Create a #SecretValue for the secret data passed in. The secret data is
not copied, and will later be freed with the destroy
function.
If the length is less than zero, then secret
is assumed to be
null-terminated.
the secret data
the length of the data
the content type of the data
function to call to free the secret data
A secret value, like a password or other binary secret.