mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Add const to pointer in blob_serialize() function.
the data is read-only in this context.
This commit is contained in:
@@ -240,7 +240,7 @@ static size_t reenc_keyslot_serialize(struct luks2_hdr *hdr, uint8_t *buffer)
|
||||
return srs(j, buffer);
|
||||
}
|
||||
|
||||
static size_t blob_serialize(void *blob, size_t length, uint8_t *buffer)
|
||||
static size_t blob_serialize(const void *blob, size_t length, uint8_t *buffer)
|
||||
{
|
||||
if (buffer)
|
||||
crypt_safe_memcpy(buffer, blob, length);
|
||||
|
||||
Reference in New Issue
Block a user