summaryrefslogtreecommitdiff
path: root/ckcapi-key.c
diff options
context:
space:
mode:
Diffstat (limited to 'ckcapi-key.c')
-rw-r--r--ckcapi-key.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/ckcapi-key.c b/ckcapi-key.c
index abf37de..69c845d 100644
--- a/ckcapi-key.c
+++ b/ckcapi-key.c
@@ -25,55 +25,6 @@
#include "ckcapi-token.h"
#include "x509-usages.h"
-/*
- * These are the attributes expected by NSS on a
- * private key object:
- *
- * CKA_ALWAYS_AUTHENTICATE
- * CKA_ALWAYS_SENSITIVE
- * CKA_CLASS
- * CKA_DECRYPT
- * CKA_DERIVE
- * CKA_END_DATE
- * CKA_EXTRACTABLE
- * CKA_ID
- * CKA_LABEL
- * CKA_LOCAL
- * CKA_KEY_TYPE
- * CKA_KEY_GEN_MECHANISM
- * CKA_MODIFIABLE
- * CKA_NEVER_EXTRACTABLE
- * CKA_PRIVATE
- * CKA_SENSITIVE
- * CKA_SIGN
- * CKA_SIGN_RECOVER
- * CKA_START_DATE
- * CKA_SUBJECT
- * CKA_TOKEN
- * CKA_UNWRAP
- * CKA_UNWRAP_TEMPLATE
- * CKA_ALLOWED_MECHANISMS
- * CKA_WRAP_WITH_TRUSTED
- *
- * Additional attributes for RSA keys:
- *
- * CKA_COEFFICIENT
- * CKA_EXPONENT_1
- * CKA_EXPONENT_2
- * CKA_MODULUS
- * CKA_PRIME_1
- * CKA_PRIME_2
- * CKA_PRIVATE_EXPONENT
- * CKA_PUBLIC_EXPONENT
- *
- * Additional attributes for DSA keys:
- *
- * CKA_BASE
- * CKA_PRIME
- * CKA_SUBPRIME
- * CKA_VALUE
- */
-
typedef struct _KeyObject
{
CkCapiObject obj;
@@ -517,16 +468,6 @@ key_bytes_attribute(CkCapiObjectData* objdata, CK_ATTRIBUTE_PTR attr)
else
return CKR_ATTRIBUTE_TYPE_INVALID;
- default:
- return CKR_ATTRIBUTE_TYPE_INVALID;
- };
-}
-
-static CK_RV
-key_date_attribute(CkCapiObjectData* objdata, CK_ATTRIBUTE_PTR attr)
-{
- switch(attr->type)
- {
/*
* Last date this key can be used.
* TODO: Does CAPI support this ability?
@@ -559,7 +500,6 @@ static const CkCapiObjectDataVtable key_objdata_vtable = {
key_bool_attribute,
key_ulong_attribute,
key_bytes_attribute,
- key_date_attribute,
key_release,
};