Eric Biggers | 431c67b | 2018-06-27 15:01:06 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | #ifndef COMMANDS_H |
| 3 | #define COMMANDS_H |
| 4 | |
| 5 | #include <stdio.h> |
| 6 | |
| 7 | #include "util.h" |
| 8 | |
| 9 | struct fsverity_command; |
| 10 | |
| 11 | void usage(const struct fsverity_command *cmd, FILE *fp); |
| 12 | |
| 13 | int fsverity_cmd_enable(const struct fsverity_command *cmd, |
| 14 | int argc, char *argv[]); |
Eric Biggers | 25b5945 | 2018-07-27 10:47:02 -0700 | [diff] [blame] | 15 | int fsverity_cmd_measure(const struct fsverity_command *cmd, |
| 16 | int argc, char *argv[]); |
Eric Biggers | c67b06a | 2019-05-20 17:03:46 -0700 | [diff] [blame] | 17 | int fsverity_cmd_sign(const struct fsverity_command *cmd, |
| 18 | int argc, char *argv[]); |
| 19 | |
| 20 | bool parse_block_size_option(const char *arg, u32 *size_ptr); |
| 21 | u32 get_default_block_size(void); |
| 22 | bool parse_salt_option(const char *arg, u8 **salt_ptr, u32 *salt_size_ptr); |
Eric Biggers | 431c67b | 2018-06-27 15:01:06 -0700 | [diff] [blame] | 23 | |
| 24 | #endif /* COMMANDS_H */ |