File: nocproxy.c

package info (click to toggle)
putty 0.67-3%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,972 kB
  • sloc: ansic: 86,516; perl: 3,115; objc: 3,088; sh: 1,547; python: 1,038; makefile: 144
file content (36 lines) | stat: -rw-r--r-- 883 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Routines to refuse to do cryptographic interaction with proxies
 * in PuTTY. This is a stub implementation of the same interfaces
 * provided by cproxy.c, for use in PuTTYtel.
 */

#include <assert.h>
#include <ctype.h>
#include <string.h>

#define DEFINE_PLUG_METHOD_MACROS
#include "putty.h"
#include "network.h"
#include "proxy.h"

void proxy_socks5_offerencryptedauth(char * command, int * len)
{
    /* For telnet, don't add any new encrypted authentication routines */
}

int proxy_socks5_handlechap (Proxy_Socket p)
{

    plug_closing(p->plug, "Proxy error: Trying to handle a SOCKS5 CHAP request"
		 " in telnet-only build",
		 PROXY_ERROR_GENERAL, 0);
    return 1;
}

int proxy_socks5_selectchap(Proxy_Socket p)
{
    plug_closing(p->plug, "Proxy error: Trying to handle a SOCKS5 CHAP request"
		 " in telnet-only build",
		 PROXY_ERROR_GENERAL, 0);
    return 1;
}