mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-28 04:24:32 +00:00
Add serialization version
svn path=/trunk/kdesupport/qca/; revision=653624
This commit is contained in:
parent
a4690cf867
commit
e17c42bca9
@ -2264,7 +2264,7 @@ pkcs11KeyStoreListContext::serializeCertificateId (
|
||||
buf.resize ((int)len);
|
||||
|
||||
serialized = QString ().sprintf (
|
||||
"qca-pkcs11/%s/%d/",
|
||||
"qca-pkcs11/0/%s/%d/",
|
||||
myPrintable(escapeString (QString::fromUtf8 (buf))),
|
||||
has_private ? 1 : 0
|
||||
);
|
||||
@ -2328,6 +2328,10 @@ pkcs11KeyStoreListContext::deserializeCertificateId (
|
||||
throw pkcs11Exception (CKR_FUNCTION_FAILED, "Invalid serialization");
|
||||
}
|
||||
|
||||
if (list[n++].toInt () != 0) {
|
||||
throw pkcs11Exception (CKR_FUNCTION_FAILED, "Invalid serialization version");
|
||||
}
|
||||
|
||||
if (
|
||||
(rv = pkcs11h_certificate_deserializeCertificateId (
|
||||
&certificate_id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user