Add kernel userspace header detection.

Add --disable-kernel_crypto to allow compilation with old kernel.
This commit is contained in:
Milan Broz
2012-12-30 12:28:30 +01:00
parent 0946c704bf
commit 46de69d0e6
4 changed files with 57 additions and 8 deletions

View File

@@ -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;