mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
Add kernel userspace header detection.
Add --disable-kernel_crypto to allow compilation with old kernel.
This commit is contained in:
@@ -526,9 +526,12 @@ static int TCRYPT_init_hdr(struct crypt_device *cd,
|
||||
break;
|
||||
}
|
||||
|
||||
if ((skipped && skipped == i) || r == -ENOTSUP)
|
||||
log_err(cd, _("Required kernel crypto interface not available.\n"
|
||||
"Ensure you have algif_skcipher kernel module loaded.\n"));
|
||||
if ((skipped && skipped == i) || r == -ENOTSUP) {
|
||||
log_err(cd, _("Required kernel crypto interface not available.\n"));
|
||||
#ifdef ENABLE_AF_ALG
|
||||
log_err(cd, _("Ensure you have algif_skcipher kernel module loaded.\n"));
|
||||
#endif
|
||||
}
|
||||
if (r < 0)
|
||||
goto out;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user