1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Forgot to bump version number after G_ELI_FLAG_READONLY flag addition.

This commit is contained in:
Pawel Jakub Dawidek 2006-08-11 18:39:58 +00:00
parent 513f04ca55
commit d04c304ddf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161217

View File

@ -56,8 +56,9 @@
* 0 - Initial version number.
* 1 - Added data authentication support (md_aalgo field and
* G_ELI_FLAG_AUTH flag).
* 2 - Added G_ELI_FLAG_READONLY.
*/
#define G_ELI_VERSION 1
#define G_ELI_VERSION 2
/* ON DISK FLAGS. */
/* Use random, onetime keys. */
@ -223,7 +224,7 @@ eli_metadata_decode_v0(const u_char *data, struct g_eli_metadata *md)
return (0);
}
static __inline int
eli_metadata_decode_v1(const u_char *data, struct g_eli_metadata *md)
eli_metadata_decode_v1v2(const u_char *data, struct g_eli_metadata *md)
{
MD5_CTX ctx;
const u_char *p;
@ -258,7 +259,8 @@ eli_metadata_decode(const u_char *data, struct g_eli_metadata *md)
error = eli_metadata_decode_v0(data, md);
break;
case 1:
error = eli_metadata_decode_v1(data, md);
case 2:
error = eli_metadata_decode_v1v2(data, md);
break;
default:
error = EINVAL;