Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Neil Horman | 5b739ef | 2009-06-18 19:50:21 +0800 | [diff] [blame] | 2 | #ifndef _FIPS_H |
| 3 | #define _FIPS_H |
| 4 | |
| 5 | #ifdef CONFIG_CRYPTO_FIPS |
| 6 | extern int fips_enabled; |
Gilad Ben-Yossef | 9552389 | 2019-07-02 14:39:20 +0300 | [diff] [blame] | 7 | extern struct atomic_notifier_head fips_fail_notif_chain; |
| 8 | |
| 9 | void fips_fail_notify(void); |
| 10 | |
Neil Horman | 5b739ef | 2009-06-18 19:50:21 +0800 | [diff] [blame] | 11 | #else |
| 12 | #define fips_enabled 0 |
Gilad Ben-Yossef | 9552389 | 2019-07-02 14:39:20 +0300 | [diff] [blame] | 13 | |
| 14 | static inline void fips_fail_notify(void) {} |
| 15 | |
Neil Horman | 5b739ef | 2009-06-18 19:50:21 +0800 | [diff] [blame] | 16 | #endif |
| 17 | |
| 18 | #endif |