]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/journal/journal-authenticate.h
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / journal / journal-authenticate.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
0284adc6
LP
2#pragma once
3
4/***
5 This file is part of systemd.
6
7 Copyright 2012 Lennart Poettering
8
9 systemd is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation; either version 2.1 of the License, or
12 (at your option) any later version.
13
14 systemd is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with systemd; If not, see <http://www.gnu.org/licenses/>.
21***/
22
4da416aa 23#include <stdbool.h>
4da416aa 24
0284adc6
LP
25#include "journal-file.h"
26
27int journal_file_append_tag(JournalFile *f);
28int journal_file_maybe_append_tag(JournalFile *f, uint64_t realtime);
29int journal_file_append_first_tag(JournalFile *f);
30
baed47c3 31int journal_file_hmac_setup(JournalFile *f);
14d10188 32int journal_file_hmac_start(JournalFile *f);
0284adc6 33int journal_file_hmac_put_header(JournalFile *f);
78519831 34int journal_file_hmac_put_object(JournalFile *f, ObjectType type, Object *o, uint64_t p);
0284adc6 35
baed47c3 36int journal_file_fss_load(JournalFile *f);
feb12d3e 37int journal_file_parse_verification_key(JournalFile *f, const char *key);
14d10188 38
baed47c3 39int journal_file_fsprg_evolve(JournalFile *f, uint64_t realtime);
14d10188 40int journal_file_fsprg_seek(JournalFile *f, uint64_t epoch);
89fef990
LP
41
42bool journal_file_next_evolve_usec(JournalFile *f, usec_t *u);