diff options
author | Stef Walter <stefw@redhat.com> | 2013-07-04 16:15:03 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-07-12 20:45:15 +0200 |
commit | dbdca991678fde89727516bd80631d781e3c783b (patch) | |
tree | 53e7a3855a856f88b82e157fe683bc97fa5a9340 | |
parent | fadcaf0808cee7a8bb1ab72f9c2b82380ff550da (diff) | |
download | gnutls-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.c | 2 |
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; |