diff options
Diffstat (limited to 'include/keys/system_keyring.h')
-rw-r--r-- | include/keys/system_keyring.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/keys/system_keyring.h b/include/keys/system_keyring.h index 8dabc399bd1d..72665eb80692 100644 --- a/include/keys/system_keyring.h +++ b/include/keys/system_keyring.h | |||
@@ -17,7 +17,15 @@ | |||
17 | #include <linux/key.h> | 17 | #include <linux/key.h> |
18 | 18 | ||
19 | extern struct key *system_trusted_keyring; | 19 | extern struct key *system_trusted_keyring; |
20 | 20 | static inline struct key *get_system_trusted_keyring(void) | |
21 | { | ||
22 | return system_trusted_keyring; | ||
23 | } | ||
24 | #else | ||
25 | static inline struct key *get_system_trusted_keyring(void) | ||
26 | { | ||
27 | return NULL; | ||
28 | } | ||
21 | #endif | 29 | #endif |
22 | 30 | ||
23 | #endif /* _KEYS_SYSTEM_KEYRING_H */ | 31 | #endif /* _KEYS_SYSTEM_KEYRING_H */ |