From 3cf6c9328250061600b78c8a7deb0edc850e739b Mon Sep 17 00:00:00 2001 From: James Yonan Date: Mon, 24 May 2010 22:51:16 +0000 Subject: Implemented http-proxy-override and http-proxy-fallback directives to make it easier for OpenVPN client UIs to start a pre-existing client config file with proxy options, or to adaptively fall back to a proxy connection if a direct connection fails. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5652 e7ae566f-a301-0410-adde-c780ea21d3b5 --- manage.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'manage.h') diff --git a/manage.h b/manage.h index a58c9a4..bb738ac 100644 --- a/manage.h +++ b/manage.h @@ -170,6 +170,9 @@ struct management_callback const unsigned long cid, struct buffer_list *pf_config); /* ownership transferred */ #endif +#if HTTP_PROXY_FALLBACK + bool (*http_proxy_fallback_cmd) (void *arg, const char *server, const char *port, const char *flags); +#endif }; /* @@ -502,5 +505,11 @@ management_bytes_server (struct management *man, #endif /* MANAGEMENT_DEF_AUTH */ +#if HTTP_PROXY_FALLBACK + +void management_http_proxy_fallback_notify (struct management *man, const char *type, const char *remote_ip_hint); + +#endif /* HTTP_PROXY_FALLBACK */ + #endif #endif -- cgit v1.2.3 From aaf72974672e4f2af2053247b63ef6f06bdc80c0 Mon Sep 17 00:00:00 2001 From: James Yonan Date: Tue, 1 Jun 2010 07:12:27 +0000 Subject: Implemented a key/value auth channel from client to server. Version 2.1.1i git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5668 e7ae566f-a301-0410-adde-c780ea21d3b5 --- manage.h | 1 + 1 file changed, 1 insertion(+) (limited to 'manage.h') diff --git a/manage.h b/manage.h index bb738ac..6a9ccd8 100644 --- a/manage.h +++ b/manage.h @@ -164,6 +164,7 @@ struct management_callback const char *reason, const char *client_reason, struct buffer_list *cc_config); /* ownership transferred */ + char *(*get_peer_info) (void *arg, const unsigned long cid); #endif #ifdef MANAGEMENT_PF bool (*client_pf) (void *arg, -- cgit v1.2.3