OSDN Git Service

Add protection for password edit controls.
[ffftp/ffftp.git] / putty / NOCPROXY.C
1 /*\r
2  * Routines to refuse to do cryptographic interaction with proxies\r
3  * in PuTTY. This is a stub implementation of the same interfaces\r
4  * provided by cproxy.c, for use in PuTTYtel.\r
5  */\r
6 \r
7 #include <assert.h>\r
8 #include <ctype.h>\r
9 #include <string.h>\r
10 \r
11 #define DEFINE_PLUG_METHOD_MACROS\r
12 #include "putty.h"\r
13 #include "network.h"\r
14 #include "proxy.h"\r
15 \r
16 void proxy_socks5_offerencryptedauth(char * command, int * len)\r
17 {\r
18     /* For telnet, don't add any new encrypted authentication routines */\r
19 }\r
20 \r
21 int proxy_socks5_handlechap (Proxy_Socket p)\r
22 {\r
23 \r
24     plug_closing(p->plug, "Proxy error: Trying to handle a SOCKS5 CHAP request"\r
25                  " in telnet-only build",\r
26                  PROXY_ERROR_GENERAL, 0);\r
27     return 1;\r
28 }\r
29 \r
30 int proxy_socks5_selectchap(Proxy_Socket p)\r
31 {\r
32     plug_closing(p->plug, "Proxy error: Trying to handle a SOCKS5 CHAP request"\r
33                  " in telnet-only build",\r
34                  PROXY_ERROR_GENERAL, 0);\r
35     return 1;\r
36 }\r