|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
commit 41882e5e2e924ae1ee5aaec729a40484ccc3935d
|
|
|
|
|
commit 8b614fd9554d3b372a829e4a05e21c5899f581ca
|
|
|
|
|
Author: David Woodhouse <David.Woodhouse@intel.com>
|
|
|
|
|
Date: Thu Apr 30 14:58:24 2015 +0100
|
|
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ Date: Thu Apr 30 14:58:24 2015 +0100
|
|
|
|
|
|
|
|
|
|
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|
|
|
|
|
|
|
|
|
|
commit 52e66b688c296f115c7bea6d5dd6a98eec33a337
|
|
|
|
|
commit db7a561668614b16b3a14564b3b4f71912db8e17
|
|
|
|
|
Author: David Woodhouse <David.Woodhouse@intel.com>
|
|
|
|
|
Date: Wed Dec 10 14:00:21 2014 +0000
|
|
|
|
|
|
|
|
|
@ -29,7 +29,7 @@ Date: Sun Dec 14 19:42:18 2014 +0000
|
|
|
|
|
|
|
|
|
|
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|
|
|
|
|
diff --git a/lib/pkcs11h-serialization.c b/lib/pkcs11h-serialization.c
|
|
|
|
|
index ad275f8..cb85a35 100644
|
|
|
|
|
index ad275f8..1d077e4 100644
|
|
|
|
|
--- a/lib/pkcs11h-serialization.c
|
|
|
|
|
+++ b/lib/pkcs11h-serialization.c
|
|
|
|
|
@@ -61,29 +61,127 @@
|
|
|
|
@ -300,7 +300,7 @@ index ad275f8..cb85a35 100644
|
|
|
|
|
+ p += 3;
|
|
|
|
|
+
|
|
|
|
|
+ rv = _pkcs11h_mem_malloc ((void *)&certificate_id->attrCKA_ID,
|
|
|
|
|
+ end - p);
|
|
|
|
|
+ end - p + 1);
|
|
|
|
|
+ if (rv != CKR_OK) {
|
|
|
|
|
+ goto cleanup;
|
|
|
|
|
+ }
|
|
|
|
@ -318,7 +318,7 @@ index ad275f8..cb85a35 100644
|
|
|
|
|
- ) {
|
|
|
|
|
+ rv = __parse_token_uri_attr (p, end - p,
|
|
|
|
|
+ (char *)certificate_id->attrCKA_ID,
|
|
|
|
|
+ end - p,
|
|
|
|
|
+ end - p + 1,
|
|
|
|
|
+ &certificate_id->attrCKA_ID_size);
|
|
|
|
|
+ if (rv != CKR_OK) {
|
|
|
|
|
goto cleanup;
|
|
|
|
|