diff options
author | Rob Austein <sra@hactrn.net> | 2017-02-02 14:03:18 -0500 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-02-02 14:03:18 -0500 |
commit | 6a6cc04dda8f613134ae5b30b702de3f1a4dff95 (patch) | |
tree | 19a470e43f453392d3f48a7439437698bbcd084b /hal_internal.h | |
parent | 9ec81408c25207149d8b3bfcfc80faf1c8ff0811 (diff) |
Add locking around keystore operations.
Diffstat (limited to 'hal_internal.h')
-rw-r--r-- | hal_internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hal_internal.h b/hal_internal.h index 69d9e67..40a600c 100644 --- a/hal_internal.h +++ b/hal_internal.h @@ -90,6 +90,15 @@ extern void *hal_allocate_static_memory(const size_t size); #define HAL_MAX_HASH_DIGEST_LENGTH SHA512_DIGEST_LEN /* + * Locks and critical sections. + */ + +extern void hal_critical_section_start(void); +extern void hal_critical_section_end(void); +extern void hal_ks_lock(void); +extern void hal_ks_unlock(void); + +/* * Dispatch structures for RPC implementation. * * The breakdown of which functions go into which dispatch vectors is |