[gcr] gck: Define GCK_INVALID as a gulong, for easier introspection
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] gck: Define GCK_INVALID as a gulong, for easier introspection
- Date: Sun, 5 Jan 2014 13:14:27 +0000 (UTC)
commit 5cd9fd449042a43c0cab3edce8bb5adf00996562
Author: Stef Walter <stefw gnome org>
Date: Sat Nov 2 13:33:40 2013 +0100
gck: Define GCK_INVALID as a gulong, for easier introspection
gck/gck-attributes.c | 2 +-
gck/gck.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gck/gck-attributes.c b/gck/gck-attributes.c
index 7c39229..4041dd7 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.
- * @length: The length of the attribute. May be G_MAXULONG if the attribute is invalid.
+ * @length: The length of the attribute. May be GCK_INVALID if the attribute is invalid.
*
* This structure represents a PKCS11 CK_ATTRIBUTE.
*/
diff --git a/gck/gck.h b/gck/gck.h
index b427abe..d3a54ec 100644
--- a/gck/gck.h
+++ b/gck/gck.h
@@ -100,7 +100,7 @@ struct _GckAttribute {
gulong length;
};
-#define GCK_INVALID G_MAXULONG
+#define GCK_INVALID ((gulong)-1)
gboolean gck_value_to_ulong (const guchar *value,
gsize length,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]