libpurple/util.h

branch
soc.2008.masterpassword
changeset 34145
fa72f1e5cd77
parent 33773
7ca529729634
child 34171
a23f3228c465
equal deleted inserted replaced
34144:34e5e09a6291 34145:fa72f1e5cd77
1130 * @param len The length in bytes of the input string. Must not be 0. 1130 * @param len The length in bytes of the input string. Must not be 0.
1131 * 1131 *
1132 * @return A newly allocated ASCIIZ string. 1132 * @return A newly allocated ASCIIZ string.
1133 */ 1133 */
1134 char *purple_str_binary_to_ascii(const unsigned char *binary, guint len); 1134 char *purple_str_binary_to_ascii(const unsigned char *binary, guint len);
1135
1136 /**
1137 * Fills a NUL-terminated string with zeros and frees it.
1138 *
1139 * It should be used to free sensitive data, like passwords.
1140 *
1141 * @param str A NUL-terminated string to free, or a NULL-pointer.
1142 */
1143 void purple_str_wipe(gchar *str);
1135 /*@}*/ 1144 /*@}*/
1136 1145
1137 1146
1138 /**************************************************************************/ 1147 /**************************************************************************/
1139 /** @name URI/URL Functions */ 1148 /** @name URI/URL Functions */

mercurial