aboutsummaryrefslogtreecommitdiff
path: root/include/util
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-10-06 16:10:29 +0200
committerKirill Primak <vyivel@eclair.cafe>2023-10-26 16:30:12 +0000
commit2410710a0f82b3e59b584d9c4f75b5f7758da6e4 (patch)
tree5c74a819e38b794d120320ef0c385315a157b632 /include/util
parent55be74ad862d08d88efc2d07e8c66ce560bb8b8b (diff)
util/token: add docs
Diffstat (limited to 'include/util')
-rw-r--r--include/util/token.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/util/token.h b/include/util/token.h
index 9e6282d4..3aef69cf 100644
--- a/include/util/token.h
+++ b/include/util/token.h
@@ -3,8 +3,14 @@
#include <stdbool.h>
+/**
+ * Number of bytes used by a token, including the terminating zero byte.
+ */
#define TOKEN_SIZE 33
+/**
+ * Generate a random token string.
+ */
bool generate_token(char out[static TOKEN_SIZE]);
#endif