diff options
author | Joshua Judson Rosen | 2015-02-17 00:37:08 -0500 |
---|---|---|
committer | Joshua Judson Rosen | 2015-02-17 00:37:08 -0500 |
commit | 714aebccbd7a4ab6ec0964d4580efd49171ba140 (patch) | |
tree | e71ac66a95848b1c0e8f47ea7d3df0e54c052d48 /src/client_realm_struct.c | |
parent | Nix mysleep(). (diff) | |
download | apf-714aebccbd7a4ab6ec0964d4580efd49171ba140.tar.gz |
Remove HTTP proxy support.
There are plenty of popular, readily-available external tools
that, frankly, provide better options for going through proxies--
both of the HTTP variety and others (corkscrew, httptunnel, socat...);
and dropping our internal implementation results in a significant
reduction in code complexity--including the complete elimination
of multithreading and all of the worries that go along with it.
Diffstat (limited to 'src/client_realm_struct.c')
-rw-r--r-- | src/client_realm_struct.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/client_realm_struct.c b/src/client_realm_struct.c index 5b4477e..4963671 100644 --- a/src/client_realm_struct.c +++ b/src/client_realm_struct.c @@ -59,12 +59,6 @@ ClientRealm_new() ClientRealm_free(&tmp); return NULL; } - tmp->httpProxyOptions = HttpProxyOptions_new(); - assert(tmp->httpProxyOptions != NULL); - if (tmp->httpProxyOptions == NULL) { - ClientRealm_free(&tmp); - return NULL; - } #ifdef HAVE_LIBDL tmp->userModule = Module_new(); assert(tmp->userModule != NULL); @@ -110,7 +104,6 @@ ClientRealm_free(ClientRealm** cr) ClientRealm_set_localDestinationName((*cr), NULL); ClientRealm_set_clientAddress((*cr), NULL); ClientRealm_set_masterSslFd((*cr), NULL); - ClientRealm_set_httpProxyOptions((*cr), NULL); ClientRealm_set_arOptions((*cr), NULL); ClientRealm_set_destinationPorts((*cr), NULL); ClientRealm_set_usersTable((*cr), NULL); @@ -507,26 +500,6 @@ ClientRealm_set_masterSslFd(ClientRealm* cr, SslFd* masterSslFd) } /* - * Function name: ClientRealm_set_httpProxyOptions - * Description: Set client realm's http proxy options. - * Arguments: cr - pointer to ClientRealm structure - * httpProxyOptions - client realm's http proxy options - */ - -void -ClientRealm_set_httpProxyOptions(ClientRealm* cr, HttpProxyOptions* httpProxyOptions) -{ - assert(cr != NULL); - if (cr == NULL) { - return; - } - if (cr->httpProxyOptions) { - HttpProxyOptions_free(&(cr->httpProxyOptions)); - } - cr->httpProxyOptions = httpProxyOptions; -} - -/* * Function name: ClientRealm_set_arOptions * Description: Set client realm's auto-reconnect options. * Arguments: cr - pointer to ClientRealm structure @@ -994,23 +967,6 @@ ClientRealm_get_masterSslFd(ClientRealm* cr) } /* - * Function name: ClientRealm_get_httpProxyOptions - * Description: Get client realm's http proxy options. - * Arguments: cr - pointer to ClientRealm structure - * Returns: Client realm's http proxy options. - */ - -HttpProxyOptions* -ClientRealm_get_httpProxyOptions(ClientRealm* cr) -{ - assert(cr != NULL); - if (cr == NULL) { - return NULL; - } - return cr->httpProxyOptions; -} - -/* * Function name: ClientRealm_get_arOptions * Description: Get client realm's auto-reconnect options. * Arguments: cr - pointer to ClientRealm structure |