Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.813 2002/10/28 19:24:53 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.814 2002/11/25 10:34:31 anders Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN   #include <roxen.h>   #include <config.h>   #include <module.h>   #include <variables.h>
Roxen.git/server/base_server/roxen.pike:1589: Inside #if constant(SSL.sslfile)
   port = pn;    ip = i;       restore();       object privs = Privs("Reading cert file");    int key_matches;    string f, f2;    ctx->certificates = ({});    -  foreach( query_option("ssl_cert_file")/",", string cert_file ) +  foreach( map(query_option("ssl_cert_file")/",", String.trim_whites), +  string cert_file )    {    if( catch{ f = lopen(cert_file, "r")->read(); } )    { -  report_error(LOC_M(8,"SSL3: Reading cert-file failed!")+"\n"); +  report_error(LOC_M(8,"SSL3: Reading cert-file '%s' failed!")+"\n", +  cert_file);    return;    }       if( strlen(query_option("ssl_key_file")) &&    catch{ f2 = lopen(query_option("ssl_key_file"),"r")->read(); } )    { -  report_error(LOC_M(9, "SSL3: Reading key-file failed!")+"\n"); +  report_error(LOC_M(9, "SSL3: Reading key-file '%s' failed!")+"\n", +  query_option("ssl_key_file"));    return;    }       object msg = Tools.PEM.pem_msg()->init( f );    object part = msg->parts["CERTIFICATE"] || msg->parts["X509 CERTIFICATE"];    string cert;       if (!part || !(cert = part->decoded_body()))    {    report_error(LOC_M(10, "SSL3: No certificate found.")+"\n");