pidgin: 6d537782: Add support for printing out the TEXT-ME...
datallah at pidgin.im
datallah at pidgin.im
Thu Sep 11 18:35:34 EDT 2008
-----------------------------------------------------------------
Revision: 6d53778240fe04225c89fcd3495e89facc71bee5
Ancestor: 81dff419c8d1b9ad4ab4c0445844b21410505890
Author: datallah at pidgin.im
Date: 2008-09-11T22:30:04
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6d53778240fe04225c89fcd3495e89facc71bee5
Modified files:
libpurple/proxy.c
ChangeLog:
Add support for printing out the TEXT-MESSAGE in SOCKS5 CHAP auth.
-------------- next part --------------
============================================================
--- libpurple/proxy.c 0168a30adf1d8a95d1aa807783b605ae48a101a2
+++ libpurple/proxy.c b7dbb41f68625d6ea47613e3198d6ddfe6d382a9
@@ -1578,6 +1578,10 @@ s5_parse_chap_msg(PurpleProxyConnectData
_("Authentication failed"));
}
return -1;
+ case 0x01:
+ /* We've already validated that cmdbuf[1] is sane. */
+ purple_debug_info("socks5 proxy", "Received TEXT-MESSAGE of '%.*s'\n", (int) cmdbuf[1], buf);
+ break;
case 0x03:
purple_debug_info("socks5 proxy", "Received CHALLENGE\n");
/* Server wants our credentials */
@@ -1589,6 +1593,7 @@ s5_parse_chap_msg(PurpleProxyConnectData
hmacmd5_chap(buf, cmdbuf[1],
purple_proxy_info_get_password(connect_data->gpi),
connect_data->write_buffer + 4);
+ /* TODO: What about USER-IDENTITY? */
connect_data->write_buffer[0] = 0x01;
connect_data->write_buffer[1] = 0x01;
connect_data->write_buffer[2] = 0x04;
More information about the Commits
mailing list