* Remove XepXfer->rx_len, which is always 0.
* Rewrite Bonjour SOCKS5 communication using Gio.
The `bonjour_sock5_request_cb` function is confusing, incrementing `xf->sock5_req_state`, and then calling itself again to get to the next part of the switch. Using individual callback functions is required by Gio, but also hopefully clearer.
Testing Done:
Compile only.
Reviewed at https://reviews.imfreedom.org/r/215/
/*
silcpurple_pk.c
Author: Pekka Riikonen <priikone@silcnet.org>
Copyright (C) 2004 - 2007 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#include"internal.h"
#include"glibcompat.h" /* for purple_g_stat on win32 */
PURPLE_BEGIN_IGNORE_CAST_ALIGN
#include"silc.h"
PURPLE_END_IGNORE_CAST_ALIGN
#include"silcclient.h"
#include"silcpurple.h"
/************************* Public Key Verification ***************************/