proxy.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef TINC_PROXY_H
  2. #define TINC_PROXY_H
  3. /*
  4. proxy.h -- header for proxy.c
  5. Copyright (C) 2015 Guus Sliepen <guus@tinc-vpn.org>
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License along
  15. with this program; if not, write to the Free Software Foundation, Inc.,
  16. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  17. */
  18. #include "connection.h"
  19. typedef enum proxytype_t {
  20. PROXY_NONE = 0,
  21. PROXY_SOCKS4,
  22. PROXY_SOCKS4A,
  23. PROXY_SOCKS5,
  24. PROXY_HTTP,
  25. PROXY_EXEC,
  26. } proxytype_t;
  27. extern proxytype_t proxytype;
  28. extern char *proxyhost;
  29. extern char *proxyport;
  30. extern char *proxyuser;
  31. extern char *proxypass;
  32. extern bool send_proxyrequest(struct connection_t *c);
  33. extern int receive_proxy_meta(struct connection_t *c);
  34. #endif