Roxen.git / server / plugins / protocols / prot_https.pike

version» Context lines:

Roxen.git/server/plugins/protocols/prot_https.pike:1:   // This is a ChiliMoon protocol module.   // Copyright © 2001, Roxen IS.    - // $Id: prot_https.pike,v 2.12 2004/06/04 08:29:30 _cvs_stephen Exp $ + // $Id: prot_https.pike,v 2.13 2004/06/04 08:33:20 _cvs_stephen Exp $      // --- Debug defines ---      #ifdef SSL3_DEBUG   # define SSL3_WERR(X ...) werror("SSL3: " X)   #else   # define SSL3_WERR(X ...)   #endif      inherit SSLProtocol;
Roxen.git/server/plugins/protocols/prot_https.pike:75:    name = req[1..sizeof(req)-2] * " ";    foreach(map(lines[1..], `/, ":"), array header)    {    if ( (sizeof(header) >= 2) &&    (lower_case(header[0]) == "host") )    prefix = "https://" + header[1] - " ";    }    }    if (prefix) {    if (prefix[-1] == '/') -  prefix = prefix[..strlen(prefix)-2]; +  prefix = prefix[..sizeof(prefix)-2];    prefix = prefix + ":" + port;    } else {    /* default_prefix (aka MyWorldLocation) already contains the    * portnumber.    */    if (!(prefix = default_prefix)) {    /* This case is most unlikely to occur,    * but better safe than sorry...    */    string ip = (f->query_address(1)/" ")[0];