Mercurial > pidgin.yaz
comparison libpurple/util.h @ 18023:2188c95d0311
applied changes from 4b489c7fd0ca6d775558656ce19ba53d7209bb26
through ff100777af0314cd00df42f69ae90121a3eee728
- Add purple_base16_encode_chunked
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Wed, 30 May 2007 03:59:52 +0000 |
parents | b8b2e35ec7c6 |
children | c588a4a9d287 |
comparison
equal
deleted
inserted
replaced
18022:b1e453e4e62a | 18023:2188c95d0311 |
---|---|
115 * @return The raw data. Must be g_free'd when no longer needed. | 115 * @return The raw data. Must be g_free'd when no longer needed. |
116 * | 116 * |
117 * @see purple_base16_encode() | 117 * @see purple_base16_encode() |
118 */ | 118 */ |
119 guchar *purple_base16_decode(const char *str, gsize *ret_len); | 119 guchar *purple_base16_decode(const char *str, gsize *ret_len); |
120 | |
121 /** | |
122 * Converts a chunk of binary data to a chunked base-16 representation | |
123 * (handy for key fingerprints) | |
124 * | |
125 * Example output: 01:23:45:67:89:AB:CD:EF | |
126 * | |
127 * @param data The data to convert. | |
128 * @param len The length of the data. | |
129 * | |
130 * @return The base-16 string in the ASCII chunked encoding. Must be | |
131 * g_free'd when no longer needed. | |
132 */ | |
133 gchar *purple_base16_encode_chunked(const guchar *data, gsize len); | |
134 | |
120 | 135 |
121 /*@}*/ | 136 /*@}*/ |
122 | 137 |
123 /**************************************************************************/ | 138 /**************************************************************************/ |
124 /** @name Base64 Functions */ | 139 /** @name Base64 Functions */ |