httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/ssl mod_ssl.c ssl_engine_init.c
Date Mon, 13 Jan 2003 17:10:55 GMT
wrowe       2003/01/13 09:10:55

  Modified:    modules/ssl Tag: APACHE_2_0_BRANCH mod_ssl.c
                        ssl_engine_init.c
  Log:
    After introducing tests in the cmds, we lose the absolute authority
    of the CRYPTO_malloc_init() which must happen the moment we load the
    module and prior to *any* ssl library fn invocation.
  
    Moved the CRYPTO_malloc_init() into the ssl_register_hooks() function,
    the absolute first call made into any loaded module.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.74.2.1  +3 -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.74
  retrieving revision 1.74.2.1
  diff -u -r1.74 -r1.74.2.1
  --- mod_ssl.c	5 Nov 2002 20:47:01 -0000	1.74
  +++ mod_ssl.c	13 Jan 2003 17:10:55 -0000	1.74.2.1
  @@ -212,6 +212,9 @@
                                  apr_pool_t *plog,
                                  apr_pool_t *ptemp)
   {
  +    /* Preregister the malloc callbacks so cmds can make library calls */
  +    CRYPTO_malloc_init();
  +
       /* Register us to handle mod_log_config %c/%x variables */
       ssl_var_log_config_register(pconf);
   #if 0 /* XXX */
  
  
  
  1.106.2.2 +0 -1      httpd-2.0/modules/ssl/ssl_engine_init.c
  
  Index: ssl_engine_init.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_engine_init.c,v
  retrieving revision 1.106.2.1
  retrieving revision 1.106.2.2
  diff -u -r1.106.2.1 -r1.106.2.2
  --- ssl_engine_init.c	23 Dec 2002 09:10:15 -0000	1.106.2.1
  +++ ssl_engine_init.c	13 Jan 2003 17:10:55 -0000	1.106.2.2
  @@ -114,7 +114,6 @@
       ap_log_error(APLOG_MARK, APLOG_INFO, 0, s,
                    "Init: Initializing %s library", SSL_LIBRARY_NAME);
   
  -    CRYPTO_malloc_init();
       SSL_load_error_strings();
       SSL_library_init();
   }
  
  
  

Mime
View raw message