diff -r 34e5e09a6291 -r fa72f1e5cd77 libpurple/util.h --- a/libpurple/util.h Tue Mar 26 17:08:15 2013 +0100 +++ b/libpurple/util.h Thu Mar 28 09:49:16 2013 +0100 @@ -1132,6 +1132,15 @@ * @return A newly allocated ASCIIZ string. */ char *purple_str_binary_to_ascii(const unsigned char *binary, guint len); + +/** + * Fills a NUL-terminated string with zeros and frees it. + * + * It should be used to free sensitive data, like passwords. + * + * @param str A NUL-terminated string to free, or a NULL-pointer. + */ +void purple_str_wipe(gchar *str); /*@}*/