diff options
Diffstat (limited to 'sys/geom/eli/g_eli.h')
-rw-r--r-- | sys/geom/eli/g_eli.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/geom/eli/g_eli.h b/sys/geom/eli/g_eli.h index e24f314..5460eea 100644 --- a/sys/geom/eli/g_eli.h +++ b/sys/geom/eli/g_eli.h @@ -59,8 +59,9 @@ * 2 - Added G_ELI_FLAG_READONLY. * - IV is generated from offset converted to little-endian * (flag G_ELI_FLAG_NATIVE_BYTE_ORDER will be set for older versions). + * 3 - Added 'configure' subcommand. */ -#define G_ELI_VERSION 2 +#define G_ELI_VERSION 3 /* ON DISK FLAGS. */ /* Use random, onetime keys. */ @@ -228,7 +229,7 @@ eli_metadata_decode_v0(const u_char *data, struct g_eli_metadata *md) return (0); } static __inline int -eli_metadata_decode_v1v2(const u_char *data, struct g_eli_metadata *md) +eli_metadata_decode_v1v2v3(const u_char *data, struct g_eli_metadata *md) { MD5_CTX ctx; const u_char *p; @@ -264,7 +265,8 @@ eli_metadata_decode(const u_char *data, struct g_eli_metadata *md) break; case 1: case 2: - error = eli_metadata_decode_v1v2(data, md); + case 3: + error = eli_metadata_decode_v1v2v3(data, md); break; default: error = EINVAL; |