diff options
Diffstat (limited to 'security/keys/encrypted-keys/encrypted.h')
-rw-r--r-- | security/keys/encrypted-keys/encrypted.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/security/keys/encrypted-keys/encrypted.h b/security/keys/encrypted-keys/encrypted.h index cef5e2f2b7d1..b6ade8945250 100644 --- a/security/keys/encrypted-keys/encrypted.h +++ b/security/keys/encrypted-keys/encrypted.h | |||
@@ -2,6 +2,17 @@ | |||
2 | #define __ENCRYPTED_KEY_H | 2 | #define __ENCRYPTED_KEY_H |
3 | 3 | ||
4 | #define ENCRYPTED_DEBUG 0 | 4 | #define ENCRYPTED_DEBUG 0 |
5 | #ifdef CONFIG_TRUSTED_KEYS | ||
6 | extern struct key *request_trusted_key(const char *trusted_desc, | ||
7 | u8 **master_key, size_t *master_keylen); | ||
8 | #else | ||
9 | static inline struct key *request_trusted_key(const char *trusted_desc, | ||
10 | u8 **master_key, | ||
11 | size_t *master_keylen) | ||
12 | { | ||
13 | return ERR_PTR(-EOPNOTSUPP); | ||
14 | } | ||
15 | #endif | ||
5 | 16 | ||
6 | #if ENCRYPTED_DEBUG | 17 | #if ENCRYPTED_DEBUG |
7 | static inline void dump_master_key(const u8 *master_key, size_t master_keylen) | 18 | static inline void dump_master_key(const u8 *master_key, size_t master_keylen) |