Support attaching version 4 metadata

Reviewed by:	pjd
This commit is contained in:
Brian Somers 2010-09-19 10:45:53 +00:00
parent 77c2091086
commit 0f81f3046d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212845

View File

@ -228,8 +228,9 @@ eli_metadata_decode_v0(const u_char *data, struct g_eli_metadata *md)
return (EINVAL);
return (0);
}
static __inline int
eli_metadata_decode_v1v2v3(const u_char *data, struct g_eli_metadata *md)
eli_metadata_decode_v1v2v3v4(const u_char *data, struct g_eli_metadata *md)
{
MD5_CTX ctx;
const u_char *p;
@ -266,7 +267,8 @@ eli_metadata_decode(const u_char *data, struct g_eli_metadata *md)
case 1:
case 2:
case 3:
error = eli_metadata_decode_v1v2v3(data, md);
case 4:
error = eli_metadata_decode_v1v2v3v4(data, md);
break;
default:
error = EINVAL;