Mercurial > pidgin
diff src/protocols/jabber/auth.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 | 67c4e9d39242 |
children | e9867cdeb0fd |
line wrap: on
line diff
--- a/src/protocols/jabber/auth.c Wed Oct 01 05:43:14 2003 +0000 +++ b/src/protocols/jabber/auth.c Wed Oct 01 05:56:58 2003 +0000 @@ -215,13 +215,13 @@ md5_append(&ctx, a1, strlen(a1)); md5_finish(&ctx, result); - ha1 = tobase16(result, 16); + ha1 = gaim_base16_encode(result, 16); md5_init(&ctx); md5_append(&ctx, a2, strlen(a2)); md5_finish(&ctx, result); - ha2 = tobase16(result, 16); + ha2 = gaim_base16_encode(result, 16); kd = g_strdup_printf("%s:%s:00000001:%s:auth:%s", ha1, nonce, cnonce, ha2); @@ -229,7 +229,7 @@ md5_append(&ctx, kd, strlen(kd)); md5_finish(&ctx, result); - z = tobase16(result, 16); + z = gaim_base16_encode(result, 16); g_free(x); g_free(y); @@ -249,7 +249,7 @@ char *enc_out; GHashTable *parts; - frombase64(enc_in, &dec_in, NULL); + gaim_base64_decode(enc_in, &dec_in, NULL); parts = parse_challenge(dec_in); @@ -299,7 +299,7 @@ g_free(auth_resp); g_free(cnonce); - enc_out = tobase64(response->str, response->len); + enc_out = gaim_base64_encode(response->str, response->len); gaim_debug(GAIM_DEBUG_MISC, "jabber", "decoded response (%d): %s\n", response->len, response->str);