diff options
Diffstat (limited to 'module/storage.h')
-rw-r--r-- | module/storage.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/module/storage.h b/module/storage.h index b3a2ad7..4c73da6 100644 --- a/module/storage.h +++ b/module/storage.h @@ -1,31 +1,33 @@ #ifndef BOARD_H_ #define BOARD_H_ +#include <stdlib.h> + /* Communications white-board between processes/threads */ -typedef struct singleid_board singleid_board_t; +typedef struct sid_storage sid_storage_t; -typedef struct singleid_assoc { +typedef struct sid_assoc { const char *server; const char *handle; const char *type; const unsigned char *secret; const size_t n_secret; time_t expires; -} singleid_assoc_t; +} sid_assoc_t; -int singleid_board_check_nonce (singleid_board_t *board, +int singleid_board_check_nonce (sid_storage_t *storage, const char *nonce); -int singleid_board_store_assoc (singleid_board_t *board, - const singleid_assoc_t *assoc); +int singleid_board_store_assoc (sid_storage_t *storage, + const sid_assoc_t *assoc); -int singleid_board_find_assoc (singleid_board_t *board, +int singleid_board_find_assoc (sid_storage_t *storage, const char *server, const char *handle, - singleid_assoc_t *assoc); + sid_assoc_t *assoc); -void singleid_board_invalidate_assoc (singleid_board_t *board, +void singleid_board_invalidate_assoc (sid_storage_t *storage, const char *server, const char *handle); |