crypto: fips - Move fips_enabled sysctl into fips.c
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 22 Apr 2015 05:25:56 +0000 (13:25 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Apr 2015 06:18:09 +0000 (14:18 +0800)
commit94072cb20eed369c64364c95bcfa3c012f54f466
tree42241cb1987e23b830660931249d0162d094f0ed
parent76450f93f17bb03a27476371c4c907e26a3c78a4
crypto: fips - Move fips_enabled sysctl into fips.c

There is currently a large ifdef FIPS code section in proc.c.
Ostensibly it's there because the fips_enabled sysctl sits under
/proc/sys/crypto.  However, no other crypto sysctls exist.

In fact, the whole ethos of the crypto API is against such user
interfaces so this patch moves all the FIPS sysctl code over to
fips.c.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/fips.c
crypto/proc.c