diff options
author | james | 2008-06-11 10:48:50 +0000 |
---|---|---|
committer | james | 2008-06-11 10:48:50 +0000 |
commit | 4e9a51d78ffa0696cf7d14ff0292ca8863689f70 (patch) | |
tree | 0509760011393888bddef1bfc0330d6a5b670671 /proxy.c | |
parent | 90efcacba6378a4e29275cd6e9914d73d836a4a4 (diff) | |
download | openvpn-4e9a51d78ffa0696cf7d14ff0292ca8863689f70.zip openvpn-4e9a51d78ffa0696cf7d14ff0292ca8863689f70.tar.gz |
Merged connection profiles from
http://svn.openvpn.net/projects/openvpn/test/conn
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2993 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'proxy.c')
-rw-r--r-- | proxy.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -229,9 +229,8 @@ get_user_pass_http (struct http_proxy_info *p, const bool force) } struct http_proxy_info * -new_http_proxy (const struct http_proxy_options *o, - struct auto_proxy_info *auto_proxy_info, - struct gc_arena *gc) +http_proxy_new (const struct http_proxy_options *o, + struct auto_proxy_info *auto_proxy_info) { struct http_proxy_info *p; struct http_proxy_options opt; @@ -275,7 +274,7 @@ new_http_proxy (const struct http_proxy_options *o, ASSERT (legal_ipv4_port (o->port)); - ALLOC_OBJ_CLEAR_GC (p, struct http_proxy_info, gc); + ALLOC_OBJ_CLEAR (p, struct http_proxy_info); p->options = *o; /* parse authentication method */ @@ -310,6 +309,12 @@ new_http_proxy (const struct http_proxy_options *o, return p; } +void +http_proxy_close (struct http_proxy_info *hp) +{ + free (hp); +} + bool establish_http_proxy_passthru (struct http_proxy_info *p, socket_descriptor_t sd, /* already open to proxy */ |