aboutsummaryrefslogtreecommitdiffstats
path: root/commands.h
blob: 9048601edd2e4568b696ba50ccb25da3a60a6eaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0+ */
#ifndef COMMANDS_H
#define COMMANDS_H

#include "util.h"

#include <stdio.h>

struct fsverity_command;

void usage(const struct fsverity_command *cmd, FILE *fp);

int fsverity_cmd_enable(const struct fsverity_command *cmd,
			int argc, char *argv[]);
int fsverity_cmd_measure(const struct fsverity_command *cmd,
			 int argc, char *argv[]);
int fsverity_cmd_sign(const struct fsverity_command *cmd,
		      int argc, char *argv[]);

bool parse_block_size_option(const char *arg, u32 *size_ptr);
u32 get_default_block_size(void);
bool parse_salt_option(const char *arg, u8 **salt_ptr, u32 *salt_size_ptr);

#endif /* COMMANDS_H */