]> granicus.if.org Git - apache/commitdiff
* modules/proxy/proxy_connect.c (proxy_connect_handler,
authorJoe Orton <jorton@apache.org>
Thu, 11 Nov 2004 11:37:25 +0000 (11:37 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 11 Nov 2004 11:37:25 +0000 (11:37 +0000)
proxy_connect_canon): Drop ap_ prefix, make static, remove
forward-declarations.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105749 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_connect.c

index fb672db1926e7b7da7dc55d77741d4fe8749b682..520e037d8be349cc7c2c1b44efc5d8b3ded3a850 100644 (file)
 
 module AP_MODULE_DECLARE_DATA proxy_connect_module;
 
-int ap_proxy_connect_canon(request_rec *r, char *url);
-int ap_proxy_connect_handler(request_rec *r, proxy_worker *worker,
-                             proxy_server_conf *conf, 
-                             char *url, const char *proxyname, 
-                             apr_port_t proxyport);
-
 /*  
  * This handles Netscape CONNECT method secure proxy requests.
  * A connection is opened to the specified host and data is
@@ -51,8 +45,7 @@ int ap_proxy_connect_handler(request_rec *r, proxy_worker *worker,
  * FIXME: no check for r->assbackwards, whatever that is.
  */
 
-static int
-allowed_port(proxy_server_conf *conf, int port)
+static int allowed_port(proxy_server_conf *conf, int port)
 {
     int i;
     int *list = (int *) conf->allowed_connect_ports->elts;
@@ -65,7 +58,7 @@ allowed_port(proxy_server_conf *conf, int port)
 }
 
 /* canonicalise CONNECT URLs. */
-int ap_proxy_connect_canon(request_rec *r, char *url)
+static int proxy_connect_canon(request_rec *r, char *url)
 {
 
     if (r->method_number != M_CONNECT) {
@@ -78,10 +71,10 @@ int ap_proxy_connect_canon(request_rec *r, char *url)
 }
 
 /* CONNECT handler */
-int ap_proxy_connect_handler(request_rec *r, proxy_worker *worker,
-                             proxy_server_conf *conf, 
-                             char *url, const char *proxyname, 
-                             apr_port_t proxyport)
+static int proxy_connect_handler(request_rec *r, proxy_worker *worker,
+                                 proxy_server_conf *conf, 
+                                 char *url, const char *proxyname, 
+                                 apr_port_t proxyport)
 {
     apr_pool_t *p = r->pool;
     apr_socket_t *sock;
@@ -390,8 +383,8 @@ int ap_proxy_connect_handler(request_rec *r, proxy_worker *worker,
 
 static void ap_proxy_connect_register_hook(apr_pool_t *p)
 {
-    proxy_hook_scheme_handler(ap_proxy_connect_handler, NULL, NULL, APR_HOOK_MIDDLE);
-    proxy_hook_canon_handler(ap_proxy_connect_canon, NULL, NULL, APR_HOOK_MIDDLE);
+    proxy_hook_scheme_handler(proxy_connect_handler, NULL, NULL, APR_HOOK_MIDDLE);
+    proxy_hook_canon_handler(proxy_connect_canon, NULL, NULL, APR_HOOK_MIDDLE);
 }
 
 module AP_MODULE_DECLARE_DATA proxy_connect_module = {