[MOD] Use specific SHA1/256 abstraction functions

This commit is contained in:
LDA 2024-08-19 16:40:30 +02:00
commit 4c158ea186
9 changed files with 80 additions and 22 deletions

View file

@ -99,6 +99,20 @@ extern char * ParseeGenerateGetopt(const Argument *list);
* Modifies: NOTHING */
extern void ParseeGenerateHelp(const Argument *list);
/** Generates a hexadecimal version of the SHA-256 digest of the
* original string.
* ----------------
* Returns: a hexadecimal string[HEAP]
* Modifies: NOTHING */
extern char * ParseeSHA256(char *string);
/** Generates a hexadecimal version of the SHA-1 digest of the
* original string.
* ----------------
* Returns: a hexadecimal string[HEAP]
* Modifies: NOTHING */
extern char * ParseeSHA1(char *string);
/* Initialises a Parsee config from scratch, and writes to it
* as JSON in the CWD. */
extern void ParseeConfigInit(void);

View file

@ -12,7 +12,7 @@
XMPPSetFormTitle(cmd, "Admin addition form"); \
XMPPSetFormInstruction(cmd, "Select a glob pattern to add as an admin"); \
}) \
XMPP_COMMAND(DelAdminCallback, "del-admin", "Removes a glob from admin rights", { \
XMPP_COMMAND(DelAdminCallback, "del-admin", "Removes glob from being admin", { \
XMPPCmdOptionsCreator(cmd, FormDelAdminCallback); \
XMPPSetFormTitle(cmd, "Admin removal form"); \
XMPPSetFormInstruction(cmd, "Select a glob pattern to remove as an admin"); \