Functions | |
| char * | dpl_strrstr (const char *haystack, const char *needle) |
| find the last occurence of needle in haystack More... | |
| unsigned int | dpl_hmac_sha1 (const char *key_buf, unsigned int key_len, const char *data_buf, unsigned int data_len, char *digest_buf) |
| compute HMAC-SHA1 More... | |
| u_int | dpl_base64_encode (const u_char *in_buf, u_int in_len, u_char *out_buf) |
| base64 encode More... | |
| u_int | dpl_base64_decode (const u_char *in_buf, u_int in_len, u_char *out_buf) |
| base64 decode More... | |
| void | dpl_url_encode (const char *str, char *str_ue) |
| encode str into URL form. More... | |
| void | dpl_url_decode (char *str) |
| decode an URL More... | |
| void | dpl_set_log_func (dpl_log_func_t logfunc) |
| Set logging callback function. More... | |
| u_int dpl_base64_decode | ( | const u_char * | in_buf, |
| u_int | in_len, | ||
| u_char * | out_buf | ||
| ) |
decode a base64-encoded buffer to the original binary data.
| in_buf | input buffer to decode |
| in_len | input buffer size |
| out_buf | base64 output buffer (must be at least of size DPL_BASE64_ORIG_LENGTH(in_len)) |
| u_int dpl_base64_encode | ( | const u_char * | in_buf, |
| u_int | in_len, | ||
| u_char * | out_buf | ||
| ) |
encode a binary buffer in base64.
| in_buf | input buffer to encode |
| in_len | input buffer size |
| out_buf | base64 output buffer that must be at least of size DPL_BASE64_LENGTH(in_len) |
| unsigned int dpl_hmac_sha1 | ( | const char * | key_buf, |
| unsigned int | key_len, | ||
| const char * | data_buf, | ||
| unsigned int | data_len, | ||
| char * | digest_buf | ||
| ) |
| key_buf | |
| key_len | |
| data_buf | |
| data_len | |
| digest_buf | |
| digest_lenp |
| char* dpl_strrstr | ( | const char * | haystack, |
| const char * | needle | ||
| ) |
| haystack | |
| needle |
| void dpl_url_decode | ( | char * | str | ) |
| str |
| void dpl_url_encode | ( | const char * | str, |
| char * | str_ue | ||
| ) |
str_ue length must be at least strlen(str)*3+1
| str | |
| str_ue |
1.8.3.1