mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 03:40:05 +01:00
Move defines from header.
This commit is contained in:
@@ -1141,7 +1141,6 @@ int crypt_format(struct crypt_device *cd,
|
|||||||
else if (isVERITY(type))
|
else if (isVERITY(type))
|
||||||
r = _crypt_format_verity(cd, uuid, params);
|
r = _crypt_format_verity(cd, uuid, params);
|
||||||
else {
|
else {
|
||||||
/* FIXME: allow plugins here? */
|
|
||||||
log_err(cd, _("Unknown crypt device type %s requested.\n"), type);
|
log_err(cd, _("Unknown crypt device type %s requested.\n"), type);
|
||||||
r = -EINVAL;
|
r = -EINVAL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,8 @@
|
|||||||
#include "verity.h"
|
#include "verity.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
|
#define VERITY_SIGNATURE "verity\0\0"
|
||||||
|
|
||||||
#define NEW_SB 1
|
#define NEW_SB 1
|
||||||
|
|
||||||
#ifndef NEW_SB
|
#ifndef NEW_SB
|
||||||
|
|||||||
@@ -23,9 +23,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#define VERITY_SIGNATURE "verity\0\0"
|
|
||||||
#define VERITY_MAX_LEVELS 63
|
|
||||||
|
|
||||||
struct crypt_device;
|
struct crypt_device;
|
||||||
struct crypt_params_verity;
|
struct crypt_params_verity;
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,8 @@
|
|||||||
#include "verity.h"
|
#include "verity.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
|
#define VERITY_MAX_LEVELS 63
|
||||||
|
|
||||||
static unsigned get_bits_up(size_t u)
|
static unsigned get_bits_up(size_t u)
|
||||||
{
|
{
|
||||||
unsigned i = 0;
|
unsigned i = 0;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#define PACKAGE_VERITY "veritysetup"
|
#define PACKAGE_VERITY "veritysetup"
|
||||||
|
|
||||||
static int use_superblock = 1; /* FIXME: no superblock not supported */
|
static int use_superblock = 1;
|
||||||
|
|
||||||
static const char *hash_algorithm = NULL;
|
static const char *hash_algorithm = NULL;
|
||||||
static int hash_type = 1;
|
static int hash_type = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user