summaryrefslogtreecommitdiff
path: root/trust
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2015-04-17 11:54:40 +0200
committerStef Walter <stefw@redhat.com>2015-04-17 11:54:40 +0200
commit6712b49861e3e59534c5e4b6d75146a01b939aff (patch)
treea9a00a39cd05f94263cfcce04b16a3a6d3dec26d /trust
parentec9e2450bafa1cda47525b38a28c8f981f43c1e1 (diff)
Fix some compiler warnings from GCC 5.x
Diffstat (limited to 'trust')
-rw-r--r--trust/test-persist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/trust/test-persist.c b/trust/test-persist.c
index bb2b630..238a3c4 100644
--- a/trust/test-persist.c
+++ b/trust/test-persist.c
@@ -356,7 +356,7 @@ test_pem_block (void)
{ CKA_CLASS, &certificate, sizeof (certificate) },
{ CKA_ID, "292c92", 6, },
{ CKA_CERTIFICATE_TYPE, &x509, sizeof (x509) },
- { CKA_VALUE, &verisign_v1_ca, sizeof (verisign_v1_ca) },
+ { CKA_VALUE, (unsigned char *)&verisign_v1_ca, sizeof (verisign_v1_ca) },
{ CKA_TRUSTED, &truev, sizeof (truev) },
{ CKA_INVALID },
};
@@ -392,7 +392,7 @@ test_pem_middle (void)
{ CKA_CLASS, &certificate, sizeof (certificate) },
{ CKA_CERTIFICATE_TYPE, &x509, sizeof (x509) },
{ CKA_TRUSTED, &truev, sizeof (truev) },
- { CKA_VALUE, &verisign_v1_ca, sizeof (verisign_v1_ca) },
+ { CKA_VALUE, (unsigned char *)&verisign_v1_ca, sizeof (verisign_v1_ca) },
{ CKA_INVALID },
};
@@ -416,7 +416,7 @@ test_pem_public_key (void)
CK_ATTRIBUTE attrs[] = {
{ CKA_ID, "292c92", 6, },
- { CKA_PUBLIC_KEY_INFO, &example_public_key, sizeof (example_public_key) },
+ { CKA_PUBLIC_KEY_INFO, (unsigned char *)&example_public_key, sizeof (example_public_key) },
{ CKA_INVALID },
};