/[monit]/monit/env.c
ViewVC logotype

Diff of /monit/env.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by chopp, Sat Nov 2 10:47:22 2002 UTC revision 1.12 by hauk, Sun Nov 3 08:43:50 2002 UTC
# Line 219  static void set_environment(void) { Line 219  static void set_environment(void) {
219        
220  }  }
221    
 /**  
  * Are we using SSL and is it correctly installed?  
  */  
 void use_ssl() {  
     
   if(! have_ssl()) {  
   
     return;  
   
   }  
     
   if(Run.httpdssl) {  
   
     /* If Run.httpdssl is TRUE and we don't have a PEM file something  
        went wrong -> ASSERT! */  
   
     ASSERT(Run.httpsslpem);  
       
     if(!check_file(Run.httpsslpem, "SSL server PEM file", S_IRWXU)) {  
   
       exit(1);  
   
     }  
   
   }  
     
   if(Run.httpdssl && Run.clientssl) {  
   
     /* If Run.clientssl is TRUE and we don't have a client PEM file  
        something went wrong -> ASSERT! */  
       
     ASSERT(Run.httpsslclientpem);  
       
     if(!check_file(Run.httpsslclientpem, "SSL client PEM file",  
                    S_IRWXU | S_IRGRP | S_IROTH)) {  
   
       exit(1);  
   
     }  
   
   }      
   
 }  

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26