mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-16 05:10:03 +01:00
Add kernel userspace header detection.
Add --disable-kernel_crypto to allow compilation with old kernel.
This commit is contained in:
@@ -545,9 +545,12 @@ static int action_benchmark(void)
|
||||
r = -ENOTSUP;
|
||||
}
|
||||
|
||||
if (r == -ENOTSUP)
|
||||
log_err( _("Required kernel crypto interface not available.\n"
|
||||
"Ensure you have algif_skcipher kernel module loaded.\n"));
|
||||
if (r == -ENOTSUP) {
|
||||
log_err(_("Required kernel crypto interface not available.\n"));
|
||||
#ifdef ENABLE_AF_ALG
|
||||
log_err( _("Ensure you have algif_skcipher kernel module loaded.\n"));
|
||||
#endif
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user