diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-29 09:42:37 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-29 09:42:37 +0100 |
commit | c3c18a1ea9cd84ee35783809c059d1b9c80c5cbe (patch) | |
tree | e33526535ca1ddbe53c04e99e2a9ca95d01fd882 /trust/tests | |
parent | 4560373c254473990306c13178b959ccc5d338e4 (diff) |
Use CKA_X_CERTIFICATE_VALUE for trust assertions
These don't contain the CKA_VALUE attribute for certificate data
but rather the CKA_X_CERTIFICATE_VALUE attribute.
https://bugs.freedesktop.org/show_bug.cgi?id=62896
Diffstat (limited to 'trust/tests')
-rw-r--r-- | trust/tests/test-builder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/trust/tests/test-builder.c b/trust/tests/test-builder.c index 723a251..5ce3b22 100644 --- a/trust/tests/test-builder.c +++ b/trust/tests/test-builder.c @@ -1150,7 +1150,7 @@ test_changed_trusted_certificate (CuTest *cu) { CKA_CLASS, &trust_assertion, sizeof (trust_assertion) }, { CKA_X_PURPOSE, (void *)P11_OID_SERVER_AUTH_STR, sizeof (P11_OID_SERVER_AUTH_STR) - 1 }, { CKA_LABEL, "Custom Label", 12 }, - { CKA_VALUE, (void *)test_cacert3_ca_der, sizeof (test_cacert3_ca_der) }, + { CKA_X_CERTIFICATE_VALUE, (void *)test_cacert3_ca_der, sizeof (test_cacert3_ca_der) }, { CKA_X_ASSERTION_TYPE, &anchored_certificate, sizeof (anchored_certificate) }, { CKA_ID, "cacert3", 7 }, { CKA_INVALID }, @@ -1160,7 +1160,7 @@ test_changed_trusted_certificate (CuTest *cu) { CKA_CLASS, &trust_assertion, sizeof (trust_assertion) }, { CKA_X_PURPOSE, (void *)P11_OID_CLIENT_AUTH_STR, sizeof (P11_OID_CLIENT_AUTH_STR) - 1 }, { CKA_LABEL, "Custom Label", 12 }, - { CKA_VALUE, (void *)test_cacert3_ca_der, sizeof (test_cacert3_ca_der) }, + { CKA_X_CERTIFICATE_VALUE, (void *)test_cacert3_ca_der, sizeof (test_cacert3_ca_der) }, { CKA_X_ASSERTION_TYPE, &anchored_certificate, sizeof (anchored_certificate) }, { CKA_ID, "cacert3", 7 }, { CKA_INVALID }, @@ -1466,7 +1466,7 @@ test_changed_dup_certificates (CuTest *cu) static CK_ATTRIBUTE anchor_assertion[] = { { CKA_CLASS, &trust_assertion, sizeof (trust_assertion) }, { CKA_X_PURPOSE, (void *)P11_OID_SERVER_AUTH_STR, sizeof (P11_OID_SERVER_AUTH_STR) - 1 }, - { CKA_VALUE, (void *)test_cacert3_ca_der, sizeof (test_cacert3_ca_der) }, + { CKA_X_CERTIFICATE_VALUE, (void *)test_cacert3_ca_der, sizeof (test_cacert3_ca_der) }, { CKA_X_ASSERTION_TYPE, &anchored_certificate, sizeof (anchored_certificate) }, { CKA_ID, "cacert3", 7 }, { CKA_INVALID }, |