mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-07 06:22:47 -05:00
Modernise the Socket/Plug vtable system.
Now I've got FROMFIELD, I can rework it so that structures providing an implementation of the Socket or Plug trait no longer have to have the vtable pointer as the very first thing in the structure. In particular, this means that the ProxySocket structure can now directly implement _both_ the Socket and Plug traits, which is always _logically_ how it's worked, but previously it had to be implemented via two separate structs linked to each other.
This commit is contained in:
4
cproxy.c
4
cproxy.c
@ -42,7 +42,7 @@ void proxy_socks5_offerencryptedauth(BinarySink *bs)
|
||||
put_byte(bs, 0x03); /* CHAP */
|
||||
}
|
||||
|
||||
int proxy_socks5_handlechap (Proxy_Socket p)
|
||||
int proxy_socks5_handlechap (ProxySocket *p)
|
||||
{
|
||||
|
||||
/* CHAP authentication reply format:
|
||||
@ -158,7 +158,7 @@ int proxy_socks5_handlechap (Proxy_Socket p)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int proxy_socks5_selectchap(Proxy_Socket p)
|
||||
int proxy_socks5_selectchap(ProxySocket *p)
|
||||
{
|
||||
char *username = conf_get_str(p->conf, CONF_proxy_username);
|
||||
char *password = conf_get_str(p->conf, CONF_proxy_password);
|
||||
|
Reference in New Issue
Block a user