#include "str.h"


Go to the source code of this file.
Defines | |
| #define | MD5_LEN 32 |
Functions | |
| int | MD5File (char *dest, const char *name) |
| Calculate a MD5 digest over a file. This function assumes 32 bytes in the destination buffer. | |
| void | MD5StringArray (char *dst, str src[], unsigned int size) |
| Calculate a MD5 digests over a string array and stores the result in the destination char array. This function assumes 32 bytes in the destination buffer. | |
| #define MD5_LEN 32 |
Definition at line 30 of file md5utils.h.
Referenced by append_fixed_vars(), branch_builder(), char_msg_val(), generate_fromtag(), init_synonym_id(), init_tags(), MD5File(), MD5StringArray(), mi_check_hash(), mi_get_hash(), mod_init(), t_reply_matching(), and uac_init().
| int MD5File | ( | char * | dest, | |
| const char * | file_name | |||
| ) |
Calculate a MD5 digest over a file. This function assumes 32 bytes in the destination buffer.
| dest | destination | |
| file_name | file for that the digest should be calculated |
Definition at line 72 of file md5utils.c.
References counter, hash, LM_DBG, LM_ERR, MD5_LEN, MD5Init(), NULL, string2hex(), U_MD5Final(), and U_MD5Update().
Referenced by mi_check_hash(), and mod_init().
| void MD5StringArray | ( | char * | dest, | |
| str | src[], | |||
| unsigned int | size | |||
| ) |
Calculate a MD5 digests over a string array and stores the result in the destination char array. This function assumes 32 bytes in the destination buffer.
| dest | destination | |
| src | string input array | |
| size | elements in the input array |
Definition at line 47 of file md5utils.c.
References len, LM_DBG, MD5_LEN, MD5Init(), MD5Update(), string2hex(), trim_len, and U_MD5Final().
Referenced by char_msg_val(), init_tags(), and uac_init().
1.5.6