summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-05-24 09:08:05 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-05-24 09:08:05 +0200
commite86e02ffc63a052a2d13325146ef2a217a606e5c (patch)
tree5b1e98165dda3610529efa3c8e02c8abac90500d
parentae67fc67c4b6412922327b429044620ea001e6cf (diff)
downloadgnutls-e86e02ffc63a052a2d13325146ef2a217a606e5c.tar.gz
Noted that there things to be done.
-rw-r--r--lib/pkcs11_write.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/pkcs11_write.c b/lib/pkcs11_write.c
index a8ed760435..d7a8958d70 100644
--- a/lib/pkcs11_write.c
+++ b/lib/pkcs11_write.c
@@ -100,8 +100,9 @@ int gnutls_pkcs11_copy_x509_crt(const char* token_url, gnutls_x509_crt_t crt,
goto cleanup;
}
-
- a[0].type = CKA_CLASS;
+ /* FIXME: copy key usage flags */
+
+ a[0].type = CKA_CLASS;
a[0].value = &class;
a[0].value_len = sizeof(class);
a[1].type = CKA_ID;
@@ -206,18 +207,20 @@ int gnutls_pkcs11_copy_x509_privkey(const char* token_url,
return ret;
}
+ /* FIXME: copy key usage flags */
+
a[0].type = CKA_CLASS;
a[0].value = &class;
a[0].value_len = sizeof(class);
a[1].type = CKA_ID;
a[1].value = id;
a[1].value_len = id_size;
- a[2].type = CKA_KEY_TYPE;
- a[2].value = &type;
- a[2].value_len = sizeof(type);
- a[3].type = CKA_SENSITIVE;
- a[3].value = &tval;
- a[3].value_len = sizeof(tval);
+ a[2].type = CKA_KEY_TYPE;
+ a[2].value = &type;
+ a[2].value_len = sizeof(type);
+ a[3].type = CKA_SENSITIVE;
+ a[3].value = &tval;
+ a[3].value_len = sizeof(tval);
a_val = 4;