FreeSWITCH API Documentation
1.7.0
|
Data Structures | |
struct | switch_uuid_t |
Macros | |
#define | SWITCH_UUID_FORMATTED_LENGTH 256 |
#define | SWITCH_MD5_DIGESTSIZE 16 |
#define | SWITCH_MD5_DIGEST_STRING_SIZE 33 |
Functions | |
void | switch_uuid_format (char *buffer, const switch_uuid_t *uuid) |
void | switch_uuid_get (switch_uuid_t *uuid) |
switch_status_t | switch_uuid_parse (switch_uuid_t *uuid, const char *uuid_str) |
switch_status_t | switch_md5 (unsigned char digest[SWITCH_MD5_DIGESTSIZE], const void *input, switch_size_t inputLen) |
switch_status_t | switch_md5_string (char digest_str[SWITCH_MD5_DIGEST_STRING_SIZE], const void *input, switch_size_t inputLen) |
#define SWITCH_MD5_DIGEST_STRING_SIZE 33 |
Definition at line 548 of file switch_apr.h.
#define SWITCH_MD5_DIGESTSIZE 16 |
Definition at line 547 of file switch_apr.h.
Referenced by switch_md5_string().
#define SWITCH_UUID_FORMATTED_LENGTH 256 |
UUIDs are formatted as: 00112233-4455-6677-8899-AABBCCDDEEFF
Definition at line 545 of file switch_apr.h.
Referenced by switch_caller_profile_dup(), switch_caller_profile_new(), switch_core_perform_file_open(), switch_core_session_exec(), switch_ivr_insert_file(), switch_ivr_intercept_session(), and switch_uuid_str().
switch_status_t switch_md5 | ( | unsigned char | digest[SWITCH_MD5_DIGESTSIZE], |
const void * | input, | ||
switch_size_t | inputLen | ||
) |
MD5 in one step
digest | The final MD5 digest |
input | The message block to use |
inputLen | The length of the message block |
Definition at line 1087 of file switch_apr.c.
switch_status_t switch_md5_string | ( | char | digest_str[SWITCH_MD5_DIGEST_STRING_SIZE], |
const void * | input, | ||
switch_size_t | inputLen | ||
) |
Definition at line 1092 of file switch_apr.c.
References SWITCH_MD5_DIGESTSIZE, and switch_snprintf().
void switch_uuid_format | ( | char * | buffer, |
const switch_uuid_t * | uuid | ||
) |
Format a UUID into a string, following the standard format
buffer | The buffer to place the formatted UUID string into. It must be at least APR_UUID_FORMATTED_LENGTH + 1 bytes long to hold the formatted UUID and a null terminator |
uuid | The UUID to format |
Definition at line 1055 of file switch_apr.c.
References buf.
Referenced by switch_core_init(), switch_core_perform_file_open(), switch_core_session_request_uuid(), switch_ivr_insert_file(), and switch_uuid_str().
void switch_uuid_get | ( | switch_uuid_t * | uuid | ) |
Generate and return a (new) UUID
uuid | The resulting UUID |
Definition at line 1067 of file switch_apr.c.
References runtime, switch_mutex_lock(), switch_mutex_unlock(), and switch_runtime::uuid_mutex.
Referenced by switch_core_init(), switch_core_perform_file_open(), switch_core_session_request_uuid(), switch_ivr_insert_file(), and switch_uuid_str().
switch_status_t switch_uuid_parse | ( | switch_uuid_t * | uuid, |
const char * | uuid_str | ||
) |
Parse a standard-format string into a UUID
uuid | The resulting UUID |
uuid_str | The formatted UUID |
Definition at line 1078 of file switch_apr.c.