mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 22:38:38 +00:00
add switch_md5
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10085 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
30c318b995
commit
b17e3bff8a
4 files changed
+18
-11
No files matched your search
@@ -509,6 +509,8 @@ SWITCH_DECLARE(switch_status_t) switch_thread_cond_destroy(switch_thread_cond_t
|
||||
/** UUIDs are formatted as: 00112233-4455-6677-8899-AABBCCDDEEFF */
|
||||
#define SWITCH_UUID_FORMATTED_LENGTH 36
|
||||
|
||||
#define SWITCH_MD5_DIGESTSIZE 16
|
||||
|
||||
/**
|
||||
* Format a UUID into a string, following the standard format
|
||||
* @param buffer The buffer to place the formatted UUID string into. It must
|
||||
@@ -531,6 +533,14 @@ SWITCH_DECLARE(void) switch_uuid_get(switch_uuid_t *uuid);
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status_t) switch_uuid_parse(switch_uuid_t *uuid, const char *uuid_str);
|
||||
|
||||
/**
|
||||
* MD5 in one step
|
||||
* @param digest The final MD5 digest
|
||||
* @param input The message block to use
|
||||
* @param inputLen The length of the message block
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status_t) switch_md5(unsigned char digest[SWITCH_MD5_DIGESTSIZE], const void *input, switch_size_t inputLen);
|
||||
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user