diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-05-24 09:08:05 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-05-24 09:08:05 +0200 |
commit | e86e02ffc63a052a2d13325146ef2a217a606e5c (patch) | |
tree | 5b1e98165dda3610529efa3c8e02c8abac90500d | |
parent | ae67fc67c4b6412922327b429044620ea001e6cf (diff) | |
download | gnutls-e86e02ffc63a052a2d13325146ef2a217a606e5c.tar.gz |
Noted that there things to be done.
-rw-r--r-- | lib/pkcs11_write.c | 19 |
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; |