Searched defs:verification_key (Results 1 - 1 of 1) sorted by relevance

/systemd/src/journal/
H A Dtest-journal-verify.c54 static int raw_verify(const char *fn, const char *verification_key) { argument
58 r = journal_file_open(fn, O_RDONLY, 0666, true, !!verification_key, NULL, NULL, NULL, &f);
62 r = journal_file_verify(f, verification_key, NULL, NULL, NULL, false);
72 const char *verification_key = argv[1]; local
91 assert_se(journal_file_open("test.journal", O_RDWR|O_CREAT, 0666, true, !!verification_key, NULL, NULL, NULL, &f) == 0);
114 assert_se(journal_file_open("test.journal", O_RDONLY, 0666, true, !!verification_key, NULL, NULL, NULL, &f) == 0);
118 assert_se(journal_file_verify(f, verification_key, &from, &to, &total, true) >= 0);
120 if (verification_key && JOURNAL_HEADER_SEALED(f->header))
128 if (verification_key) {
138 if (raw_verify("test.journal", verification_key) >
[all...]

Completed in 17 milliseconds