(Thanks to okozina@redhat.com)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@601
36d66b0a-2a48-0410-832c-
cd162a569da5
}
if (isPLAIN((*cd)->type)) {
- (*cd)->type = strdup(CRYPT_PLAIN);
(*cd)->plain_uuid = strdup(dmd.uuid);
(*cd)->plain_hdr.hash = NULL; /* no way to get this */
(*cd)->plain_hdr.offset = dmd.offset;
(*cd)->plain_cipher_mode = strdup(cipher_mode);
}
} else if (isLOOPAES((*cd)->type)) {
- (*cd)->type = strdup(CRYPT_LOOPAES);
(*cd)->loopaes_uuid = strdup(dmd.uuid);
(*cd)->loopaes_hdr.offset = dmd.offset;