"Fossies" - the Fresh Open Source Software Archive

Member "putty-0.73/nocproxy.c" (22 Sep 2019, 894 Bytes) of package /linux/misc/putty-0.73.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "nocproxy.c" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 0.72_vs_0.73.

    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 #include "putty.h"
   12 #include "network.h"
   13 #include "proxy.h"
   14 
   15 void proxy_socks5_offerencryptedauth(BinarySink *bs)
   16 {
   17     /* For telnet, don't add any new encrypted authentication routines */
   18 }
   19 
   20 int proxy_socks5_handlechap (ProxySocket *p)
   21 {
   22 
   23     plug_closing(p->plug, "Proxy error: Trying to handle a SOCKS5 CHAP request"
   24                  " in telnet-only build",
   25                  PROXY_ERROR_GENERAL, 0);
   26     return 1;
   27 }
   28 
   29 int proxy_socks5_selectchap(ProxySocket *p)
   30 {
   31     plug_closing(p->plug, "Proxy error: Trying to handle a SOCKS5 CHAP request"
   32                  " in telnet-only build",
   33                  PROXY_ERROR_GENERAL, 0);
   34     return 1;
   35 }