Mercurial > pidgin.yaz
diff src/util.c @ 7106:db6bd3e794d8
[gaim-migrate @ 7671]
tobase16(), frombase16(), tobase64(), frombase64() -> gaim_base16_encode(),
gaim_base16_decode(), gaim_base64_encode(), gaim_base64_decode().
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 01 Oct 2003 05:56:58 +0000 |
parents | 9d0e74b6ca68 |
children | 9220c7490cd1 |
line wrap: on
line diff
--- a/src/util.c Wed Oct 01 05:43:14 2003 +0000 +++ b/src/util.c Wed Oct 01 05:56:58 2003 +0000 @@ -351,7 +351,7 @@ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" "0123456789+/"; -char *tobase64(const unsigned char *in, size_t inlen) +char *gaim_base64_encode(const unsigned char *in, size_t inlen) { char *out, *rv; @@ -383,7 +383,7 @@ } -void frombase64(const char *text, char **data, int *size) +void gaim_base64_decode(const char *text, char **data, int *size) { char *out = NULL; char tmp = 0; @@ -451,7 +451,7 @@ /* * Converts raw data to a pretty, null-terminated base16 string. */ -unsigned char *tobase16(const unsigned char *data, int length) +unsigned char *gaim_base16_encode(const unsigned char *data, int length) { int i; unsigned char *ascii = NULL; @@ -470,7 +470,7 @@ /* * Converts a null-terminated string of hexidecimal to raw data. */ -int frombase16(const char *ascii, unsigned char **raw) +int gaim_base16_decode(const char *ascii, unsigned char **raw) { int len, i, accumulator=0; unsigned char *data;