RTS API Documentation
1.10.11
|
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_core_session_perform_get_partner(), switch_ivr_insert_file(), switch_ivr_intercept_session(), switch_msrp_do_send(), 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 1175 of file switch_apr.c.
References SWITCH_STATUS_NOTIMPL, and SWITCH_STATUS_SUCCESS.
Referenced by switch_md5_string().
switch_status_t switch_md5_string | ( | char | digest_str[SWITCH_MD5_DIGEST_STRING_SIZE], |
const void * | input, | ||
switch_size_t | inputLen | ||
) |
Definition at line 1211 of file switch_apr.c.
References b, switch_md5(), and SWITCH_MD5_DIGESTSIZE.
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 1140 of file switch_apr.c.
References buf, and switch_uuid_t::data.
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 1152 of file switch_apr.c.
References switch_uuid_t::data, 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 1163 of file switch_apr.c.
References switch_uuid_t::data, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.