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-12 20:45:15 +0200
commitdbdca991678fde89727516bd80631d781e3c783b (patch)
tree53e7a3855a856f88b82e157fe683bc97fa5a9340
parentfadcaf0808cee7a8bb1ab72f9c2b82380ff550da (diff)
downloadgnutls-dbdca991678fde89727516bd80631d781e3c783b.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 98ae83fd5f..1192c8bbe5 100644
--- a/lib/pkcs11.c
+++ b/lib/pkcs11.c
@@ -2205,7 +2205,7 @@ find_objs (struct pkcs11_session_info* sinfo,
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;