v0.0.2 - Add random mnemonic startup flow and multi-instance random socket naming
This commit is contained in:
12
src/socket_name.h
Normal file
12
src/socket_name.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef NSIGNER_SOCKET_NAME_H
|
||||
#define NSIGNER_SOCKET_NAME_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/*
|
||||
* Generate random socket name in format: nsigner_<word1>_<word2>
|
||||
* Returns 0 on success, -1 on error.
|
||||
*/
|
||||
int socket_name_random(char *out, size_t out_len);
|
||||
|
||||
#endif /* NSIGNER_SOCKET_NAME_H */
|
||||
Reference in New Issue
Block a user