|
Omega Security Services 0.7.3
|
Go to the source code of this file.
Functions | |
| size_t | strlcpy (char *, const char *, size_t) |
| size_t | strlcat (char *, const char *, size_t) |
| char * | generate_uid (void) |
| void | generate_p10_uid (User *) |
| void | ExpandParv (char *, int, int, int, char **) |
| int | generictoken (char, int, char *, char **) |
| uint32 | hash (char *item) |
| unsigned int | hash_safe (char *item, ub4 len) |
| char * | timediff (time_t) |
| char * | str_signed (unsigned char *str) |
| void | ntoa (struct in_addr addr, char *ipaddr, int len) |
| char * | str_ntoa (struct in_addr addr) |
| char * | strtolower (char *) |
Variables | |
| char | p10_id [3] |
| void ExpandParv | ( | char * | , |
| int | , | ||
| int | , | ||
| int | , | ||
| char ** | |||
| ) |
Referenced by HandleClientCmds().
| void generate_p10_uid | ( | User * | ) |
Definition at line 174 of file tools.c.
References alog(), LOG_DEBUG2, p10_id, p10_uid, s_assert, and strlcpy().
Referenced by NewClient().
| char* generate_uid | ( | void | ) |
Definition at line 143 of file tools.c.
References current_uid, and s_assert.
Referenced by NewClient().
| int generictoken | ( | char | , |
| int | , | ||
| char * | , | ||
| char ** | |||
| ) |
Definition at line 237 of file tools.c.
Referenced by base64dects(), do_cmd(), and HandleClientCmds().
| uint32 hash | ( | char * | item | ) |
Definition at line 292 of file tools.c.
Referenced by hash_safe().
| unsigned int hash_safe | ( | char * | item, |
| ub4 | len | ||
| ) |
| char* str_ntoa | ( | struct in_addr | addr | ) |
| char* str_signed | ( | unsigned char * | str | ) |
Change an unsigned string to a signed string, overwriting the original string.
| str | input string |
Definition at line 420 of file tools.c.
Referenced by encode_ip().
| size_t strlcat | ( | char * | dst, |
| const char * | src, | ||
| size_t | siz | ||
| ) |
Since not every one has strlcpy and strlcat we need to create them if they do not exist on the system
Definition at line 72 of file tools.c.
Referenced by create_chanmode_string(), create_mod_temp(), create_sjoin_nicklist(), create_usermode_string(), ExpandParv(), read_chanmode_string(), sendto_socket(), and socket_flags_to_string().
| size_t strlcpy | ( | char * | , |
| const char * | , | ||
| size_t | |||
| ) |
Definition at line 100 of file tools.c.
Referenced by add_access_flag(), AddCmd(), AddEventEx(), addto_mod_que(), AddUser(), create_chanmode_string(), ExpandParv(), generate_p10_uid(), KickFromChannel(), load_protocol(), main(), new_access(), new_chan(), new_serv(), new_user(), NewClient(), NewNick(), read_chanmode_string(), Run(), sock_readline(), socket_flags_to_string(), and VerifyConf().
| char* timediff | ( | time_t | ) |
| char p10_id[3] |
Definition at line 47 of file tools.c.
Referenced by generate_p10_uid(), and VerifyConf().