summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2013-07-04 16:15:03 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-07-04 16:20:38 +0200
commite5708e7a8c659510d90fb5773f7d691bdf7bf6f5 (patch)
tree74c18ce3c9319ecf563b281cf6836c31f3e46a79
parent515ead0e3b049b2b10d623d50830e86755d4f586 (diff)
downloadgnutls-e5708e7a8c659510d90fb5773f7d691bdf7bf6f5.tar.gz
pkcs11: Use the correct attribute length for CKA_TRUSTED
CKA_TRUSTED is a CK_BBOOL value in PKCS#11. Since object searches are done with the attribute byte values, we need to get the length exactly right. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-rw-r--r--lib/pkcs11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pkcs11.c b/lib/pkcs11.c
index 6dec239d34..da351d958f 100644
--- a/lib/pkcs11.c
+++ b/lib/pkcs11.c
@@ -2195,7 +2195,7 @@ find_objs (struct ck_function_list * module, ck_session_handle_t pks,
struct ck_attribute *attr;
ck_object_class_t class = (ck_object_class_t)-1;
ck_certificate_type_t type = (ck_certificate_type_t)-1;
- unsigned int trusted;
+ unsigned char trusted;
unsigned long category;
ck_rv_t rv;
ck_object_handle_t obj;