summaryrefslogtreecommitdiff
path: root/gck
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2019-12-23 11:52:21 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2020-01-03 17:03:23 +0100
commit988127e5f9c0f47d9e02ba10ed7d64220604ef6b (patch)
tree81e5b0c9ade533a534c1c93c8fcdb1ff87d522a6 /gck
parentf7ad66e0da1d380b2f3f62b76398386ad1d21b19 (diff)
downloadgcr-988127e5f9c0f47d9e02ba10ed7d64220604ef6b.tar.gz
Mark GIR constants as such
It doesn't matter really for bindings, but looks better when they are rendering documentation (e.g. `NULL` is replaced by `None` for python).
Diffstat (limited to 'gck')
-rw-r--r--gck/gck-attributes.c6
-rw-r--r--gck/gck-module.c9
-rw-r--r--gck/gck-object.c33
-rw-r--r--gck/gck-session.c96
-rw-r--r--gck/gck-slot.c21
5 files changed, 84 insertions, 81 deletions
diff --git a/gck/gck-attributes.c b/gck/gck-attributes.c
index aa2fd75..7d5482c 100644
--- a/gck/gck-attributes.c
+++ b/gck/gck-attributes.c
@@ -1380,7 +1380,7 @@ gck_builder_clear (GckBuilder *builder)
/**
* GckAttribute:
* @type: The attribute type, such as CKA_LABEL.
- * @value: (array length=length): The value of the attribute. May be NULL.
+ * @value: (array length=length): The value of the attribute. May be %NULL.
* @length: The length of the attribute. May be GCK_INVALID if the attribute is invalid.
*
* This structure represents a PKCS11 CK_ATTRIBUTE.
@@ -2057,10 +2057,10 @@ gck_attribute_hash (gconstpointer attr)
* An allocator used to allocate data for the attributes in this GckAttributes set.
*
* This is a function that acts like g_realloc. Specifically it frees when length is
- * set to zero, it allocates when data is set to NULL, and it reallocates when both
+ * set to zero, it allocates when data is set to %NULL, and it reallocates when both
* are valid.
*
- * Returns: The allocated memory, or NULL when freeing.
+ * Returns: The allocated memory, or %NULL when freeing.
**/
GType
diff --git a/gck/gck-module.c b/gck/gck-module.c
index 9e381b1..b8b1aa0 100644
--- a/gck/gck-module.c
+++ b/gck/gck-module.c
@@ -65,7 +65,7 @@
* Holds information about the PKCS&num;11 module.
*
* This structure corresponds to CK_MODULE_INFO in the PKCS\#11 standard. The
- * strings are NULL terminated for easier use.
+ * strings are %NULL terminated for easier use.
*
* Use gck_module_info_free() to release this structure when done with it.
*/
@@ -308,7 +308,7 @@ gck_module_info_copy (GckModuleInfo *module_info)
/**
* gck_module_info_free:
- * @module_info: The module info to free, or NULL.
+ * @module_info: The module info to free, or %NULL.
*
* Free a GckModuleInfo structure.
**/
@@ -444,7 +444,7 @@ gck_module_initialize_async (const gchar *path,
*
* Finishes the asynchronous initialize operation.
*
- * Returns: (transfer full) (nullable): The initialized module, or NULL
+ * Returns: (transfer full) (nullable): The initialized module, or %NULL
*/
GckModule *
gck_module_initialize_finish (GAsyncResult *result,
@@ -503,7 +503,8 @@ _gck_module_new_initialized (CK_FUNCTION_LIST_PTR funcs)
* Checks equality of two modules. Two GckModule objects can point to the same
* underlying PKCS\#11 module.
*
- * Return value: TRUE if module1 and module2 are equal. FALSE if either is not a GckModule.
+ * Return value: %TRUE if module1 and module2 are equal.
+ * %FALSE if either is not a GckModule.
**/
gboolean
gck_module_equal (gconstpointer module1, gconstpointer module2)
diff --git a/gck/gck-object.c b/gck/gck-object.c
index b202cd1..07f26c9 100644
--- a/gck/gck-object.c
+++ b/gck/gck-object.c
@@ -266,7 +266,8 @@ gck_objects_from_handle_array (GckSession *session,
* Checks equality of two objects. Two GckObject objects can point to the same
* underlying PKCS\#11 object.
*
- * Return value: TRUE if object1 and object2 are equal. FALSE if either is not a GckObject.
+ * Return value: %TRUE if object1 and object2 are equal.
+ * %FALSE if either is not a GckObject.
**/
gboolean
gck_object_equal (gconstpointer object1, gconstpointer object2)
@@ -399,7 +400,7 @@ perform_destroy (Destroy *args)
/**
* gck_object_destroy:
* @self: The object to destroy.
- * @cancellable: Optional cancellable object, or NULL to ignore.
+ * @cancellable: Optional cancellable object, or %NULL to ignore.
* @error: A location to return an error.
*
* Destroy a PKCS\#11 object, deleting it from storage or the session.
@@ -423,7 +424,7 @@ gck_object_destroy (GckObject *self, GCancellable *cancellable, GError **error)
/**
* gck_object_destroy_async:
* @self: The object to destroy.
- * @cancellable: Optional cancellable object, or NULL to ignore.
+ * @cancellable: Optional cancellable object, or %NULL to ignore.
* @callback: Callback which is called when operation completes.
* @user_data: Data to pass to the callback.
*
@@ -499,7 +500,7 @@ free_set_attributes (SetAttributes *args)
* gck_object_set:
* @self: The object to set attributes on.
* @attrs: The attributes to set on the object.
- * @cancellable: Optional cancellable object, or NULL to ignore.
+ * @cancellable: Optional cancellable object, or %NULL to ignore.
* @error: A location to return an error.
*
* Set PKCS\#11 attributes on an object. This call may block for an indefinite period.
@@ -536,7 +537,7 @@ gck_object_set (GckObject *self, GckAttributes *attrs,
* gck_object_set_async:
* @self: The object to set attributes on.
* @attrs: The attributes to set on the object.
- * @cancellable: Optional cancellable object, or NULL to ignore.
+ * @cancellable: Optional cancellable object, or %NULL to ignore.
* @callback: Callback which is called when operation completes.
* @user_data: Data to pass to the callback.
*
@@ -783,7 +784,7 @@ gck_object_get_async (GckObject *self,
* No extra references are added to the returned attributes pointer.
*
* Return value: The filled in attributes structure if successful or
- * NULL if not successful.
+ * %NULL if not successful.
**/
GckAttributes*
gck_object_get_finish (GckObject *self, GAsyncResult *result, GError **error)
@@ -893,8 +894,8 @@ gck_object_get_data (GckObject *self,
* gck_object_get_data_full: (skip)
* @self: The object to get attribute data from.
* @attr_type: The attribute to get data for.
- * @allocator: An allocator with which to allocate memory for the data, or NULL for default.
- * @cancellable: Optional cancellation object, or NULL.
+ * @allocator: An allocator with which to allocate memory for the data, or %NULL for default.
+ * @cancellable: Optional cancellation object, or %NULL.
* @n_data: The length of the resulting data.
* @error: A location to store an error.
*
@@ -942,8 +943,8 @@ gck_object_get_data_full (GckObject *self, gulong attr_type, GckAllocator alloca
* gck_object_get_data_async:
* @self: The object to get attribute data from.
* @attr_type: The attribute to get data for.
- * @allocator: (skip): An allocator with which to allocate memory for the data, or NULL for default.
- * @cancellable: Optional cancellation object, or NULL.
+ * @allocator: (skip): An allocator with which to allocate memory for the data, or %NULL for default.
+ * @cancellable: Optional cancellation object, or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to be passed to the callback.
*
@@ -1052,7 +1053,7 @@ free_set_template (set_template_args *args)
* @self: The object to set an attribute template on.
* @attr_type: The attribute template type.
* @attrs: The attribute template.
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @error: A location to store an error.
*
* Set an attribute template on the object. The attr_type must be for
@@ -1062,7 +1063,7 @@ free_set_template (set_template_args *args)
*
* This call may block for an indefinite period.
*
- * Return value: TRUE if the operation succeeded.
+ * Return value: %TRUE if the operation succeeded.
**/
gboolean
gck_object_set_template (GckObject *self, gulong attr_type, GckAttributes *attrs,
@@ -1094,7 +1095,7 @@ gck_object_set_template (GckObject *self, gulong attr_type, GckAttributes *attrs
* @self: The object to set an attribute template on.
* @attr_type: The attribute template type.
* @attrs: The attribute template.
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to be passed to the callback.
*
@@ -1134,7 +1135,7 @@ gck_object_set_template_async (GckObject *self, gulong attr_type, GckAttributes
* Get the result of an operation to set attribute template on
* an object.
*
- * Return value: TRUE if the operation succeeded.
+ * Return value: %TRUE if the operation succeeded.
**/
gboolean
gck_object_set_template_finish (GckObject *self, GAsyncResult *result, GError **error)
@@ -1214,7 +1215,7 @@ free_get_template (get_template_args *args)
* gck_object_get_template:
* @self: The object to get an attribute template from.
* @attr_type: The template attribute type.
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @error: A location to store an error.
*
* Get an attribute template from the object. The attr_type must be for
@@ -1254,7 +1255,7 @@ gck_object_get_template (GckObject *self, gulong attr_type,
* gck_object_get_template_async:
* @self: The object to get an attribute template from.
* @attr_type: The template attribute type.
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to be passed to the callback.
*
diff --git a/gck/gck-session.c b/gck/gck-session.c
index a55dfaf..8641166 100644
--- a/gck/gck-session.c
+++ b/gck/gck-session.c
@@ -920,7 +920,7 @@ perform_init_pin (InitPin *args)
* @pin: (nullable) (array length=n_pin): the user's PIN, or %NULL for
* protected authentication path
* @n_pin: the length of the PIN
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @error: A location to return an error.
*
* Initialize the user's pin on this slot that this session is opened on.
@@ -945,7 +945,7 @@ gck_session_init_pin (GckSession *self, const guchar *pin, gsize n_pin,
* @self: Initialize PIN for this session's slot.
* @pin: (nullable) (array length=n_pin): the user's PIN, or %NULL for protected authentication path
* @n_pin: the length of the PIN
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to pass to the callback.
*
@@ -1021,7 +1021,7 @@ perform_set_pin (SetPin *args)
* @new_pin: (nullable) (array length=n_new_pin): the user's new PIN, or %NULL
* for protected authentication path
* @n_new_pin: The length of the PIN.
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @error: A location to return an error.
*
* Change the user's pin on this slot that this session is opened on.
@@ -1048,7 +1048,7 @@ gck_session_set_pin (GckSession *self, const guchar *old_pin, gsize n_old_pin,
* @new_pin: (nullable) (array length=n_new_pin): the user's new PIN, or %NULL
* for protected authentication path
* @n_new_pin: the length of the new PIN
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to pass to the callback.
*
@@ -1120,7 +1120,7 @@ perform_login (Login *args)
* @pin: (nullable) (array length=n_pin): the user's PIN, or %NULL for
* protected authentication path
* @n_pin: The length of the PIN.
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @error: A location to return an error.
*
* Login the user on the session. This call may block for
@@ -1144,7 +1144,7 @@ gck_session_login (GckSession *self, gulong user_type, const guchar *pin,
* @pin: (nullable) (array length=n_pin): the user's PIN, or %NULL for
* protected authentication path
* @n_pin: The length of the PIN.
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to pass to the callback.
*
@@ -1306,7 +1306,7 @@ perform_logout (GckArguments *args)
/**
* gck_session_logout:
* @self: Logout of this session.
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @error: A location to return an error.
*
* Log out of the session. This call may block for an indefinite period.
@@ -1323,7 +1323,7 @@ gck_session_logout (GckSession *self, GCancellable *cancellable, GError **error)
/**
* gck_session_logout_async:
* @self: Logout of this session.
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to pass to the callback.
*
@@ -1400,8 +1400,8 @@ perform_create_object (CreateObject *args)
* gck_session_create_object:
* @self: The session to create the object on.
* @attrs: The attributes to create the object with.
- * @cancellable: Optional cancellation object, or NULL.
- * @error: A location to return an error, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
+ * @error: A location to return an error, or %NULL.
*
* Create a new PKCS\#11 object. This call may block for an
* indefinite period.
@@ -1434,7 +1434,7 @@ gck_session_create_object (GckSession *self, GckAttributes *attrs,
* gck_session_create_object_async:
* @self: The session to create the object on.
* @attrs: The attributes to create the object with.
- * @cancellable: Optional cancellation object or NULL.
+ * @cancellable: Optional cancellation object or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to pass to the callback.
*
@@ -1462,11 +1462,11 @@ gck_session_create_object_async (GckSession *self, GckAttributes *attrs,
* gck_session_create_object_finish:
* @self: The session to create the object on.
* @result: The result passed to the callback.
- * @error: A location to return an error, or NULL.
+ * @error: A location to return an error, or %NULL.
*
* Get the result of creating a new PKCS\#11 object.
*
- * Return value: (transfer full): the newly created object or NULL if an error occurred
+ * Return value: (transfer full): the newly created object or %NULL if an error occurred
**/
GckObject *
gck_session_create_object_finish (GckSession *self, GAsyncResult *result, GError **error)
@@ -1675,8 +1675,8 @@ gck_session_find_handles_finish (GckSession *self,
* gck_session_find_objects:
* @self: The session to find objects on.
* @match: the attributes to match
- * @cancellable: Optional cancellation object or NULL.
- * @error: A location to return an error or NULL.
+ * @cancellable: Optional cancellation object or %NULL.
+ * @error: A location to return an error or %NULL.
*
* Find the objects matching the passed attributes. This call may
* block for an indefinite period.
@@ -1714,7 +1714,7 @@ gck_session_find_objects (GckSession *self,
* gck_session_find_objects_async:
* @self: The session to find objects on.
* @match: The attributes to match.
- * @cancellable: Optional cancellation object or NULL.
+ * @cancellable: Optional cancellation object or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to pass to the callback.
*
@@ -1845,8 +1845,8 @@ perform_generate_key_pair (GenerateKeyPair *args)
* @private_attrs: Additional attributes for the generated private key.
* @public_key: (optional) (out): location to return the resulting public key
* @private_key: (optional) (out): location to return the resulting private key.
- * @cancellable: Optional cancellation object, or NULL.
- * @error: A location to return an error, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
+ * @error: A location to return an error, or %NULL.
*
* Generate a new key pair of public and private keys. This call may block for an
* indefinite period.
@@ -1854,7 +1854,7 @@ perform_generate_key_pair (GenerateKeyPair *args)
* If the @public_attrs and/or @private_attrs #GckAttributes is floating, it is
* consumed.
*
- * Return value: TRUE if the operation succeeded.
+ * Return value: %TRUE if the operation succeeded.
**/
gboolean
gck_session_generate_key_pair (GckSession *self, gulong mech_type,
@@ -1874,8 +1874,8 @@ gck_session_generate_key_pair (GckSession *self, gulong mech_type,
* @private_attrs: Additional attributes for the generated private key.
* @public_key: (optional) (out): a location to return the resulting public key
* @private_key: (optional) (out): a location to return the resulting private key
- * @cancellable: Optional cancellation object, or NULL.
- * @error: A location to return an error, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
+ * @error: A location to return an error, or %NULL.
*
* Generate a new key pair of public and private keys. This call may block for an
* indefinite period.
@@ -1883,7 +1883,7 @@ gck_session_generate_key_pair (GckSession *self, gulong mech_type,
* If the @public_attrs and/or @private_attrs #GckAttributes is floating, it is
* consumed.
*
- * Return value: TRUE if the operation succeeded.
+ * Return value: %TRUE if the operation succeeded.
**/
gboolean
gck_session_generate_key_pair_full (GckSession *self,
@@ -1930,7 +1930,7 @@ gck_session_generate_key_pair_full (GckSession *self,
* @mechanism: The mechanism to use for key generation.
* @public_attrs: Additional attributes for the generated public key.
* @private_attrs: Additional attributes for the generated private key.
- * @cancellable: Optional cancellation object or NULL.
+ * @cancellable: Optional cancellation object or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to pass to the callback.
*
@@ -1973,7 +1973,7 @@ gck_session_generate_key_pair_async (GckSession *self, GckMechanism *mechanism,
*
* Get the result of a generate key pair operation.
*
- * Return value: TRUE if the operation succeeded.
+ * Return value: %TRUE if the operation succeeded.
**/
gboolean
gck_session_generate_key_pair_finish (GckSession *self,
@@ -2051,7 +2051,7 @@ perform_wrap_key (WrapKey *args)
* @wrapped: The key to wrap.
* @n_result: A location in which to return the length of the wrapped data.
* @cancellable: A #GCancellable or %NULL
- * @error: A location to return an error, or NULL.
+ * @error: A location to return an error, or %NULL.
*
* Wrap a key into a byte stream. This call may block for an
* indefinite period.
@@ -2074,8 +2074,8 @@ gck_session_wrap_key (GckSession *self, GckObject *key, gulong mech_type,
* @mechanism: The mechanism to use for wrapping.
* @wrapped: The key to wrap.
* @n_result: A location in which to return the length of the wrapped data.
- * @cancellable: Optional cancellation object, or NULL.
- * @error: A location to return an error, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
+ * @error: A location to return an error, or %NULL.
*
* Wrap a key into a byte stream. This call may block for an
* indefinite period.
@@ -2120,7 +2120,7 @@ gck_session_wrap_key_full (GckSession *self, GckObject *wrapper, GckMechanism *m
* @wrapper: The key to use for wrapping.
* @mechanism: The mechanism to use for wrapping.
* @wrapped: The key to wrap.
- * @cancellable: Optional cancellation object or NULL.
+ * @cancellable: Optional cancellation object or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to pass to the callback.
*
@@ -2232,15 +2232,15 @@ perform_unwrap_key (UnwrapKey *args)
* @input: (array length=n_input): the wrapped data as a byte stream
* @n_input: The length of the wrapped data.
* @attrs: Additional attributes for the unwrapped key.
- * @cancellable: Optional cancellation object, or NULL.
- * @error: A location to return an error, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
+ * @error: A location to return an error, or %NULL.
*
* Unwrap a key from a byte stream. This call may block for an
* indefinite period.
*
* If the @attrs #GckAttributes is floating, it is consumed.
*
- * Returns: (transfer full): the new unwrapped key or NULL if the
+ * Returns: (transfer full): the new unwrapped key or %NULL if the
* operation failed
**/
GckObject *
@@ -2265,15 +2265,15 @@ gck_session_unwrap_key (GckSession *self,
* @input: (array length=n_input): the wrapped data as a byte stream
* @n_input: The length of the wrapped data.
* @attrs: Additional attributes for the unwrapped key.
- * @cancellable: Optional cancellation object, or NULL.
- * @error: A location to return an error, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
+ * @error: A location to return an error, or %NULL.
*
* Unwrap a key from a byte stream. This call may block for an
* indefinite period.
*
* If the @attrs #GckAttributes is floating, it is consumed.
*
- * Returns: (transfer full): the new unwrapped key or NULL if the operation
+ * Returns: (transfer full): the new unwrapped key or %NULL if the operation
* failed
**/
GckObject *
@@ -2320,7 +2320,7 @@ gck_session_unwrap_key_full (GckSession *self,
* @input: (array length=n_input): the wrapped data as a byte stream
* @n_input: The length of the wrapped data.
* @attrs: Additional attributes for the unwrapped key.
- * @cancellable: Optional cancellation object or NULL.
+ * @cancellable: Optional cancellation object or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to pass to the callback.
*
@@ -2426,15 +2426,15 @@ perform_derive_key (DeriveKey *args)
* @base: The key to derive from.
* @mech_type: The mechanism to use for derivation.
* @attrs: Additional attributes for the derived key.
- * @cancellable: Optional cancellation object, or NULL.
- * @error: A location to return an error, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
+ * @error: A location to return an error, or %NULL.
*
* Derive a key from another key. This call may block for an
* indefinite period.
*
* If the @attrs #GckAttributes is floating, it is consumed.
*
- * Returns: (transfer full): the new derived key or NULL if the operation
+ * Returns: (transfer full): the new derived key or %NULL if the operation
* failed
**/
GckObject *
@@ -2451,15 +2451,15 @@ gck_session_derive_key (GckSession *self, GckObject *base, gulong mech_type,
* @base: The key to derive from.
* @mechanism: The mechanism to use for derivation.
* @attrs: Additional attributes for the derived key.
- * @cancellable: Optional cancellation object, or NULL.
- * @error: A location to return an error, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
+ * @error: A location to return an error, or %NULL.
*
* Derive a key from another key. This call may block for an
* indefinite period.
*
* If the @attrs #GckAttributes is floating, it is consumed.
*
- * Returns: (transfer full): the new derived key or NULL if the operation
+ * Returns: (transfer full): the new derived key or %NULL if the operation
* failed
**/
GckObject*
@@ -2498,7 +2498,7 @@ gck_session_derive_key_full (GckSession *self, GckObject *base, GckMechanism *me
* @base: The key to derive from.
* @mechanism: The mechanism to use for derivation.
* @attrs: Additional attributes for the derived key.
- * @cancellable: Optional cancellation object or NULL.
+ * @cancellable: Optional cancellation object or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to pass to the callback.
*
@@ -2864,7 +2864,7 @@ gck_session_encrypt_finish (GckSession *self, GAsyncResult *result, gsize *n_res
* block for an indefinite period.
*
* Returns: (transfer full) (array length=n_result): the data that was decrypted,
- * or NULL if an error occured
+ * or %NULL if an error occured
*/
guchar *
gck_session_decrypt (GckSession *self, GckObject *key, gulong mech_type, const guchar *input,
@@ -2955,7 +2955,7 @@ gck_session_decrypt_async (GckSession *self, GckObject *key, GckMechanism *mecha
* Get the result of an decryption operation.
*
* Returns: (transfer full) (array length=n_result): the data that was decrypted,
- * or NULL if an error occurred
+ * or %NULL if an error occurred
*/
guchar*
gck_session_decrypt_finish (GckSession *self, GAsyncResult *result,
@@ -3007,7 +3007,7 @@ gck_session_sign (GckSession *self, GckObject *key, gulong mech_type, const guch
* Sign data in a mechanism specific manner. This call may
* block for an indefinite period.
*
- * Returns: The data that was signed, or NULL if an error occured.
+ * Returns: The data that was signed, or %NULL if an error occured.
*/
guchar*
gck_session_sign_full (GckSession *self, GckObject *key, GckMechanism *mechanism,
@@ -3160,7 +3160,7 @@ free_verify (Verify *args)
* Verify data in a mechanism specific manner. This call may
* block for an indefinite period.
*
- * Returns: TRUE if the data verified correctly, otherwise a failure or error occurred.
+ * Returns: %TRUE if the data verified correctly, otherwise a failure or error occurred.
*/
gboolean
gck_session_verify (GckSession *self, GckObject *key, gulong mech_type, const guchar *input,
@@ -3186,7 +3186,7 @@ gck_session_verify (GckSession *self, GckObject *key, gulong mech_type, const gu
* Verify data in a mechanism specific manner. This call may
* block for an indefinite period.
*
- * Returns: TRUE if the data verified correctly, otherwise a failure or error occurred.
+ * Returns: %TRUE if the data verified correctly, otherwise a failure or error occurred.
*/
gboolean
gck_session_verify_full (GckSession *self, GckObject *key, GckMechanism *mechanism,
@@ -3274,7 +3274,7 @@ gck_session_verify_async (GckSession *self, GckObject *key, GckMechanism *mechan
*
* Get the result of an verify operation.
*
- * Returns: TRUE if the data verified correctly, otherwise a failure or error occurred.
+ * Returns: %TRUE if the data verified correctly, otherwise a failure or error occurred.
*/
gboolean
gck_session_verify_finish (GckSession *self, GAsyncResult *result, GError **error)
diff --git a/gck/gck-slot.c b/gck/gck-slot.c
index 6eb2a16..cb80f79 100644
--- a/gck/gck-slot.c
+++ b/gck/gck-slot.c
@@ -211,7 +211,7 @@ gck_slot_info_copy (GckSlotInfo *slot_info)
/**
* gck_slot_info_free:
- * @slot_info: The slot info to free, or NULL.
+ * @slot_info: The slot info to free, or %NULL.
*
* Free the GckSlotInfo and associated resources.
**/
@@ -295,7 +295,7 @@ gck_token_info_copy (GckTokenInfo *token_info)
/**
* gck_token_info_free:
- * @token_info: The token info to free, or NULL.
+ * @token_info: The token info to free, or %NULL.
*
* Free the GckTokenInfo and associated resources.
**/
@@ -355,7 +355,7 @@ gck_mechanism_info_copy (GckMechanismInfo *mech_info)
/**
* gck_mechanism_info_free:
- * @mech_info: The mechanism info to free, or NULL.
+ * @mech_info: The mechanism info to free, or %NULL.
*
* Free the GckMechanismInfo and associated resources.
**/
@@ -453,7 +453,8 @@ gck_mechanisms_check (GArray *mechanisms, ...)
* Checks equality of two slots. Two GckSlot objects can point to the same
* underlying PKCS\#11 slot.
*
- * Return value: TRUE if slot1 and slot2 are equal. FALSE if either is not a GckSlot.
+ * Return value: %TRUE if slot1 and slot2 are equal.
+ * %FALSE if either is not a GckSlot.
**/
gboolean
gck_slot_equal (gconstpointer slot1, gconstpointer slot2)
@@ -799,7 +800,7 @@ gck_slot_get_mechanisms (GckSlot *self)
*
* Get information for the specified mechanism.
*
- * Returns: (transfer full): the mechanism information, or NULL if failed; use
+ * Returns: (transfer full): the mechanism information, or %NULL if failed; use
* gck_mechanism_info_free() when done with it
**/
GckMechanismInfo*
@@ -970,8 +971,8 @@ gck_slot_open_session (GckSlot *self,
* @pkcs11_flags: Additional raw PKCS\#11 flags.
* @app_data: Application data for notification callback.
* @notify: PKCS\#11 notification callback.
- * @cancellable: Optional cancellation object, or NULL.
- * @error: A location to return an error, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
+ * @error: A location to return an error, or %NULL.
*
* Open a session on the slot. If the 'auto reuse' setting is set,
* then this may be a recycled session with the same flags.
@@ -1001,7 +1002,7 @@ gck_slot_open_session_full (GckSlot *self,
* gck_slot_open_session_async:
* @self: The slot to open a session on.
* @options: The options to open the new session with.
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to pass to the callback.
*
@@ -1046,7 +1047,7 @@ on_open_session_complete (GObject *source,
* @pkcs11_flags: Additional raw PKCS\#11 flags.
* @app_data: Application data for notification callback.
* @notify: PKCS\#11 notification callback.
- * @cancellable: Optional cancellation object, or NULL.
+ * @cancellable: Optional cancellation object, or %NULL.
* @callback: Called when the operation completes.
* @user_data: Data to pass to the callback.
*
@@ -1089,7 +1090,7 @@ gck_slot_open_session_full_async (GckSlot *self,
* gck_slot_open_session_finish:
* @self: The slot to open a session on.
* @result: The result passed to the callback.
- * @error: A location to return an error or NULL.
+ * @error: A location to return an error or %NULL.
*
* Get the result of an open session operation. If the 'auto reuse' setting is set,
* then this may be a recycled session with the same flags.