httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@apache.org
Subject cvs commit: httpd-2.0/modules/ssl mod_ssl.c
Date Fri, 29 Mar 2002 07:22:43 GMT
dougm       02/03/28 23:22:43

  Modified:    modules/ssl mod_ssl.c
  Log:
  in proxy mode we need to SSL_connect rather than SSL_accept in
  ssl_hook_process_connection.
  
  Revision  Changes    Path
  1.58      +11 -0     httpd-2.0/modules/ssl/mod_ssl.c
  
  Index: mod_ssl.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ssl/mod_ssl.c,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- mod_ssl.c	29 Mar 2002 04:50:37 -0000	1.57
  +++ mod_ssl.c	29 Mar 2002 07:22:43 -0000	1.58
  @@ -364,6 +364,17 @@
       long verify_result;
   
       if (!SSL_is_init_finished(filter->pssl)) {
  +        if (sslconn->is_proxy) {
  +            if ((n = SSL_connect(filter->pssl)) <= 0) {
  +                ssl_log(c->base_server,
  +                        SSL_LOG_ERROR|SSL_ADD_SSLERR|SSL_ADD_ERRNO,
  +                        "SSL Proxy connect failed");
  +                return ssl_abort(filter, c);
  +            }
  +
  +            return APR_SUCCESS;
  +        }
  +
           if ((n = SSL_accept(filter->pssl)) <= 0) {
               err = SSL_get_error(filter->pssl, n);
   
  
  
  

Mime
View raw message