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