diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-24 15:44:30 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-31 18:43:53 +0200 |
commit | 8f329292316dd38297bb0b95d9f10d7f3935a07b (patch) | |
tree | f8f1c17ac1050f1a096fa1f9af0b53b3c6aead25 /include | |
parent | 73f3dae29a761034459a41f6300dcf4665f78af5 (diff) | |
download | barebox-8f329292316dd38297bb0b95d9f10d7f3935a07b.tar.gz barebox-8f329292316dd38297bb0b95d9f10d7f3935a07b.tar.xz |
keystore: implement forgetting secrets
To be able to change secrets add a function to forget secrets.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/keystore.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/crypto/keystore.h b/include/crypto/keystore.h index 29915854b8..89d962628b 100644 --- a/include/crypto/keystore.h +++ b/include/crypto/keystore.h @@ -12,6 +12,7 @@ #ifdef CONFIG_CRYPTO_KEYSTORE int keystore_get_secret(const char *name, const u8 **secret, int *secret_len); int keystore_set_secret(const char *name, const u8 *secret, int secret_len); +void keystore_forget_secret(const char *name); #else static inline int keystore_get_secret(const char *name, const u8 **secret, int *secret_len) { @@ -21,6 +22,9 @@ static inline int keystore_set_secret(const char *name, const u8 *secret, int se { return 0; } +static inline void keystore_forget_secret(const char *name) +{ +} #endif #endif |