|
Strophe
0.9
XMPP client library
|
Functions | |
| char * | xmpp_base64_encode (xmpp_ctx_t *ctx, const unsigned char *data, size_t len) |
| Base64 encoding routine Returns an allocated string which must be freed with xmpp_free(). More... | |
| char * | xmpp_base64_decode_str (xmpp_ctx_t *ctx, const char *base64, size_t len) |
| Base64 decoding routine Returns an allocated string which must be freed with xmpp_free(). More... | |
| void | xmpp_base64_decode_bin (xmpp_ctx_t *ctx, const char *base64, size_t len, unsigned char **out, size_t *outlen) |
| Base64 decoding routine Returns an allocated buffer which must be freed with xmpp_free(). More... | |
| char* xmpp_base64_encode | ( | xmpp_ctx_t * | ctx, |
| const unsigned char * | data, | ||
| size_t | len | ||
| ) |
Base64 encoding routine Returns an allocated string which must be freed with xmpp_free().
| ctx | a Strophe context |
| data | buffer to encode |
| len | size of the data buffer |
| char* xmpp_base64_decode_str | ( | xmpp_ctx_t * | ctx, |
| const char * | base64, | ||
| size_t | len | ||
| ) |
Base64 decoding routine Returns an allocated string which must be freed with xmpp_free().
User calls this function when the result must be a string. When decoded buffer contains '\0' NULL is returned.
| ctx | a Strophe context |
| base64 | encoded buffer |
| len | size of the buffer |
| void xmpp_base64_decode_bin | ( | xmpp_ctx_t * | ctx, |
| const char * | base64, | ||
| size_t | len, | ||
| unsigned char ** | out, | ||
| size_t * | outlen | ||
| ) |
Base64 decoding routine Returns an allocated buffer which must be freed with xmpp_free().
| ctx | a Strophe context |
| base64 | encoded buffer |
| len | size of the encoded buffer |
| out | allocated buffer is stored here |
| outlen | size of the allocated buffer |
*out will be NULL