diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-10-12 12:49:27 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-12 12:49:27 +0200 |
commit | 7908370532fd93c2e6732aa572ae17619e37e7d4 (patch) | |
tree | 911a2877484be92358e8547e3ee4582e250866aa /crypto/fips.c | |
parent | dce561d0a498979e3d850a4eaaf6e8604b341aa3 (diff) | |
parent | f57f9dd3b8247ad5c42d80ddbb76b975366423ec (diff) | |
download | linux-crypto-7908370532fd93c2e6732aa572ae17619e37e7d4.tar.gz linux-crypto-7908370532fd93c2e6732aa572ae17619e37e7d4.zip |
Merge branch 'linus' into x86/signal
Conflicts:
arch/x86/kernel/signal_64.c
Diffstat (limited to 'crypto/fips.c')
-rw-r--r-- | crypto/fips.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/crypto/fips.c b/crypto/fips.c new file mode 100644 index 00000000..55397008 --- /dev/null +++ b/crypto/fips.c @@ -0,0 +1,27 @@ +/* + * FIPS 200 support. + * + * Copyright (c) 2008 Neil Horman <nhorman@tuxdriver.com> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + */ + +#include "internal.h" + +int fips_enabled; +EXPORT_SYMBOL_GPL(fips_enabled); + +/* Process kernel command-line parameter at boot time. fips=0 or fips=1 */ +static int fips_enable(char *str) +{ + fips_enabled = !!simple_strtol(str, NULL, 0); + printk(KERN_INFO "fips mode: %s\n", + fips_enabled ? "enabled" : "disabled"); + return 1; +} + +__setup("fips=", fips_enable); |