Mercurial > pidgin
diff libpurple/proxy.c @ 24107:71fecd0f4ce6
Add support for printing out the TEXT-MESSAGE in SOCKS5 CHAP auth.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 11 Sep 2008 22:30:04 +0000 |
parents | 1fb2e7951f9b |
children | 0bd896cd1b90 |
line wrap: on
line diff
--- a/libpurple/proxy.c Thu Sep 11 22:00:23 2008 +0000 +++ b/libpurple/proxy.c Thu Sep 11 22:30:04 2008 +0000 @@ -1578,6 +1578,10 @@ _("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 @@ 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;