summaryrefslogtreecommitdiff
path: root/src/journal/journal-authenticate.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-16 02:14:34 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-16 17:10:57 +0200
commit4da416aa20b956571d74720bc91222881443e24b (patch)
treeb7c67aad32b1597c07a9df437a75bc969ceb7803 /src/journal/journal-authenticate.c
parentf59a5f6b873d8bf994e2d85671f2554b9fdd62db (diff)
journalctl: add --verify-seed= switch to specify seed value
Diffstat (limited to 'src/journal/journal-authenticate.c')
-rw-r--r--src/journal/journal-authenticate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/journal/journal-authenticate.c b/src/journal/journal-authenticate.c
index 827e4e4fb9..5a0314b4f6 100644
--- a/src/journal/journal-authenticate.c
+++ b/src/journal/journal-authenticate.c
@@ -432,3 +432,9 @@ int journal_file_append_first_tag(JournalFile *f) {
return 0;
}
+
+bool journal_file_fsprg_enabled(JournalFile *f) {
+ assert(f);
+
+ return !!(le32toh(f->header->compatible_flags) & HEADER_COMPATIBLE_AUTHENTICATED);
+}