summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-08-09 21:22:47 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-08-09 21:26:24 +0200
commitb0e755e4b2b7ab238d8b2ad76a8b05e9900ef7a0 (patch)
tree67267c8b7f14328e0b939a8dd62743476cda4b02
parenteeaa513ac39275eae90f4ee8d36548afa7803e63 (diff)
downloadgnutls-b0e755e4b2b7ab238d8b2ad76a8b05e9900ef7a0.tar.gz
pkcs11: increase attributes size in gnutls_pkcs11_copy_x509_privkey
-rw-r--r--lib/pkcs11_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pkcs11_write.c b/lib/pkcs11_write.c
index 9630675a5b..8dd94c4658 100644
--- a/lib/pkcs11_write.c
+++ b/lib/pkcs11_write.c
@@ -231,7 +231,7 @@ gnutls_pkcs11_copy_x509_privkey(const char *token_url,
ck_rv_t rv;
size_t id_size;
uint8_t id[20];
- struct ck_attribute a[16];
+ struct ck_attribute a[32];
ck_object_class_t class = CKO_PRIVATE_KEY;
ck_object_handle_t obj;
ck_key_type_t type;