nocproxy.c 894 B

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