diff -r 57078c8dab3a -r c842a56b9967 libpurple/protocols/jabber/auth.c --- a/libpurple/protocols/jabber/auth.c Wed Sep 28 15:45:37 2016 -0500 +++ b/libpurple/protocols/jabber/auth.c Thu Sep 29 20:09:55 2016 -0500 @@ -263,7 +263,8 @@ x = purple_xmlnode_new_child(query, "digest"); s = g_strdup_printf("%s%s", js->stream_id, pw); - hash = jabber_calculate_data_hash(s, strlen(s), "sha1"); + hash = g_compute_checksum_for_string(G_CHECKSUM_SHA1, + s, -1); purple_xmlnode_insert_data(x, hash, -1); g_free(hash); g_free(s);