Files
n_signer/src/socket_name.h

13 lines
280 B
C

#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 */