summaryrefslogtreecommitdiffstats
path: root/base/tps/src/main/ObjectSpec.cpp
diff options
context:
space:
mode:
authorChristina Fu <cfu@redhat.com>2012-09-18 14:47:17 -0700
committerChristina Fu <cfu@redhat.com>2012-09-18 14:53:01 -0700
commit6257d326cca9e55f9d6898bb2b227f22485322b7 (patch)
tree4fb62a51653394f9f5feb170f51ac7fae6b86ea0 /base/tps/src/main/ObjectSpec.cpp
parent8ed86a749548ed2c373026ec34f5284a329bb7c2 (diff)
downloadpki-6257d326cca9e55f9d6898bb2b227f22485322b7.tar.gz
pki-6257d326cca9e55f9d6898bb2b227f22485322b7.tar.xz
pki-6257d326cca9e55f9d6898bb2b227f22485322b7.zip
https://fedorahosted.org/pki/ticket/304
TMS ECC infrastructure (enrollment with client-side and server-side key generation, and key archival)
Diffstat (limited to 'base/tps/src/main/ObjectSpec.cpp')
-rw-r--r--base/tps/src/main/ObjectSpec.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/base/tps/src/main/ObjectSpec.cpp b/base/tps/src/main/ObjectSpec.cpp
index 2896a85f0..b339fcfa6 100644
--- a/base/tps/src/main/ObjectSpec.cpp
+++ b/base/tps/src/main/ObjectSpec.cpp
@@ -190,6 +190,7 @@ void ObjectSpec::ParseAttributes(char *objectID, ObjectSpec *ObjectSpec, Buffer
case CKA_KEY_TYPE:
type = DATATYPE_INTEGER;
data = b->substr(curpos+6, 4);
+ found = 1;
/* build by PKCS11 */
break;
case CKA_CLASS:
@@ -208,6 +209,18 @@ void ObjectSpec::ParseAttributes(char *objectID, ObjectSpec *ObjectSpec, Buffer
data = b->substr(curpos+6, 4);
/* build by PKCS11 */
break;
+
+ case CKA_EC_PARAMS:
+ type = DATATYPE_STRING;
+ data = b->substr(curpos+6, attribute_size);
+ found = 1;
+ break;
+
+ case CKA_EC_POINT:
+ type = DATATYPE_STRING;
+ data = b->substr(curpos+6, attribute_size);
+ found = 1;
+ break;
default:
RA::Debug("ObjectSpec::ParseKeyBlob",
"skipped attribute_id = %lx",