NDR_CHECK(ndr_push_align(ndr, 4));
NDR_CHECK(ndr_push_unique_ptr(ndr, r->sd));
NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->hash_type));
- NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->hash, XATTR_SD_HASH_SIZE));
+ NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->hash, 64));
}
if (ndr_flags & NDR_BUFFERS) {
if (r->sd) {
r->sd = NULL;
}
NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->hash_type));
- NDR_PULL_ALLOC_N(ndr, r->hash, XATTR_SD_HASH_SIZE);
- NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->hash, XATTR_SD_HASH_SIZE));
+ NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->hash, 64));
}
if (ndr_flags & NDR_BUFFERS) {
if (r->sd) {
}
ndr->depth--;
ndr_print_uint16(ndr, "hash_type", r->hash_type);
- ndr_print_array_uint8(ndr, "hash", r->hash, XATTR_SD_HASH_SIZE);
+ ndr_print_array_uint8(ndr, "hash", r->hash, 64);
ndr->depth--;
}
typedef [public] struct {
security_descriptor *sd;
uint16 hash_type;
- uint8 hash[XATTR_SD_HASH_SIZE]; /* 64 bytes hash. */
+ uint8 hash[64]; /* 64 bytes hash. */
} security_descriptor_hash_v3;
typedef [switch_type(uint16)] union {