httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: httpd-2.0/modules/arch/netware mod_nw_ssl.c
Date Mon, 24 Nov 2003 20:36:55 GMT
bnicholes    2003/11/24 12:36:55

  Modified:    modules/arch/netware mod_nw_ssl.c
  Log:
  Hook the default_port so that mod_nw_ssl will return the correct port rather
  than defaulting to 80
  
  Revision  Changes    Path
  1.13      +9 -0      httpd-2.0/modules/arch/netware/mod_nw_ssl.c
  
  Index: mod_nw_ssl.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/arch/netware/mod_nw_ssl.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- mod_nw_ssl.c	2 Jun 2003 15:24:30 -0000	1.12
  +++ mod_nw_ssl.c	24 Nov 2003 20:36:55 -0000	1.13
  @@ -556,6 +556,14 @@
       return NULL;
   }
   
  +static apr_port_t nwssl_hook_default_port(const request_rec *r)
  +{
  +    if (isSecure(r))
  +        return DEFAULT_HTTPS_PORT;
  +
  +    return 0;
  +}
  +
   int ssl_proxy_enable(conn_rec *c)
   {
       apr_table_set(c->notes, "nwconv-ssl", "Y");
  @@ -585,6 +593,7 @@
       ap_hook_post_config(nwssl_post_config, NULL, NULL, APR_HOOK_MIDDLE);
       ap_hook_fixups(nwssl_hook_Fixup, NULL, NULL, APR_HOOK_MIDDLE);
       ap_hook_http_method(nwssl_hook_http_method,   NULL,NULL, APR_HOOK_MIDDLE);
  +    ap_hook_default_port  (nwssl_hook_default_port,  NULL,NULL, APR_HOOK_MIDDLE);
   
       APR_REGISTER_OPTIONAL_FN(ssl_proxy_enable);
       APR_REGISTER_OPTIONAL_FN(ssl_engine_disable);
  
  
  

Mime
View raw message