Strophe 0.12
XMPP client library
|
Generation of UUID version 4 according to RFC4122. More...
Macros | |
#define | XMPP_UUID_LEN 36 |
UUID length in string representation excluding '\0'. | |
Functions | |
static void | crypto_uuid_gen (xmpp_ctx_t *ctx, char *uuid) |
Generate UUID version 4 in pre-allocated buffer. | |
char * | xmpp_uuid_gen (xmpp_ctx_t *ctx) |
Generate UUID version 4. | |
Generation of UUID version 4 according to RFC4122.
#define XMPP_UUID_LEN 36 |
UUID length in string representation excluding '\0'.
|
static |
Generate UUID version 4 in pre-allocated buffer.
ctx | a Strophe context object |
uuid | pre-allocated buffer of size (XMPP_UUID_LEN + 1) |
char * xmpp_uuid_gen | ( | xmpp_ctx_t * | ctx | ) |
Generate UUID version 4.
This function allocates memory for the resulting string and must be freed with xmpp_free().
ctx | a Strophe context object |