From 1ad9d60f99d3b293ecd0737fca28a16a6200fa1a Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 20 Feb 2012 19:16:47 +0100 Subject: [PATCH] If kernel doesn't support CRYPTO_ALG_KERN_DRIVER_ONLY then always set the flag SIOP_FLAG_KERNEL_DRIVER_ONLY. --- ioctl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ioctl.c b/ioctl.c index 4330bce..b152500 100644 --- a/ioctl.c +++ b/ioctl.c @@ -717,6 +717,8 @@ static int get_session_info(struct fcrypt *fcr, struct session_info_op *siop) #ifdef CRYPTO_ALG_KERN_DRIVER_ONLY if (tfm->__crt_alg->cra_flags & CRYPTO_ALG_KERN_DRIVER_ONLY) siop->flags |= SIOP_FLAG_KERNEL_DRIVER_ONLY; +#else + siop->flags |= SIOP_FLAG_KERNEL_DRIVER_ONLY; /* set it by default */ #endif } if (ses_ptr->hdata.init) { @@ -725,6 +727,8 @@ static int get_session_info(struct fcrypt *fcr, struct session_info_op *siop) #ifdef CRYPTO_ALG_KERN_DRIVER_ONLY if (tfm->__crt_alg->cra_flags & CRYPTO_ALG_KERN_DRIVER_ONLY) siop->flags |= SIOP_FLAG_KERNEL_DRIVER_ONLY; +#else + siop->flags |= SIOP_FLAG_KERNEL_DRIVER_ONLY; /* set it by default */ #endif } -- 2.11.4.GIT