nocproxy.c 1005 B

12345678910111213141516171819202122232425262728293031323334
  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. const bool socks5_chap_available = false;
  13. const bool http_digest_available = false;
  14. strbuf *chap_response(ptrlen challenge, ptrlen password)
  15. {
  16. unreachable("CHAP is not built into this binary");
  17. }
  18. /* dummy arrays to prevent link error */
  19. const char *const httphashnames[] = { NULL };
  20. const bool httphashaccepted[] = { false };
  21. void http_digest_response(BinarySink *bs, ptrlen username, ptrlen password,
  22. ptrlen realm, ptrlen method, ptrlen uri, ptrlen qop,
  23. ptrlen nonce, ptrlen opaque, uint32_t nonce_count,
  24. HttpDigestHash hash, bool hash_username)
  25. {
  26. unreachable("HTTP DIGEST is not built into this binary");
  27. }