mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:25:11 +00:00
[MOD] Use specific SHA1/256 abstraction functions
This commit is contained in:
parent
6cd3df21db
commit
4c158ea186
9 changed files with 80 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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"); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue