diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-10-12 11:32:17 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-12 11:32:17 +0200 |
commit | 0dca8f5dd75729e5143ef07364927d629ed072b8 (patch) | |
tree | 911a2877484be92358e8547e3ee4582e250866aa /crypto/fips.c | |
parent | 273af8a67a3a2978c8240162a12bc6213be63457 (diff) | |
parent | f57f9dd3b8247ad5c42d80ddbb76b975366423ec (diff) | |
download | linux-crypto-0dca8f5dd75729e5143ef07364927d629ed072b8.tar.gz linux-crypto-0dca8f5dd75729e5143ef07364927d629ed072b8.zip |
Merge branch 'x86/urgent' into core/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); |