summaryrefslogtreecommitdiff
path: root/trust/test-token.c
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2017-05-18 11:11:45 +0200
committerDaiki Ueno <ueno@gnu.org>2017-05-18 12:55:02 +0200
commit66c6a7e912d39d66cd4cc91375ac7be418bf7176 (patch)
treee781a94b2249f8f2a84046cba4198dfca699f280 /trust/test-token.c
parentacf8c4a91a76bf8049f6bfbd95b04e2e36bae4ea (diff)
trust: Check magic comment in persist file for modifiablity
A persistent file written by the trust module starts with the line "# This file has been auto-generated and written by p11-kit". This can be used as a magic word to determine whether the objects read from a .p11-kit file are read-only.
Diffstat (limited to 'trust/test-token.c')
-rw-r--r--trust/test-token.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/trust/test-token.c b/trust/test-token.c
index ad22fcb..3e7d735 100644
--- a/trust/test-token.c
+++ b/trust/test-token.c
@@ -610,6 +610,7 @@ static void
test_modify_multiple (void)
{
const char *test_data =
+ "# This file has been auto-generated and written by p11-kit.\n"
"[p11-kit-object-v1]\n"
"class: data\n"
"label: \"first\"\n"