Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1: - // $Id: module.pmod,v 1.23 2000/09/28 02:07:12 per Exp $ + // $Id: module.pmod,v 1.24 2000/09/28 02:24:30 per Exp $      #include <module.h>   #include <roxen.h>      // Locale macros   static inline string getloclang() {    return roxenp()->locale->get();   }      //<locale-token project="roxen_config"> LOCALE </locale-token>
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1204:    warning += "Changed " + protocol + " to http\n";    protocol = "http";    }    if( protocol != lower_case( protocol ) )    {    warning += "Changed "+protocol+" to "+ lower_case( protocol )+"\n";    protocol = lower_case( protocol );    }    if(!nofhttp) // it's a port, not a URL    { - #if constant(Crypto) && constant(Crypto.rsa) && constant(Standards) && constant(Standards.PKCS.RSA) && constant(SSL) && constant(SSL.sslfile) + #if constant(SSL.sslfile)    /* All is A-OK */   #else    if( (protocol == "https" || protocol == "ftps") ) -  { -  warning += -  "SSL support not available in this Pike version. " -  "Transformed "+protocol+" to "; -  protocol = protocol[ ..strlen(protocol)-2 ]; -  warning += protocol+".\n"; -  } +  warning += "SSL support not available in this Pike version.\n" +  "Please use "+protocol[..strlen(protocol)-2]+" instead.\n";   #endif    }    int pno;    if( sscanf( host, "%s:%d", host, pno ) == 2)    if( roxenp()->protocols[ lower_case( protocol ) ]    && (pno == roxenp()->protocols[ lower_case( protocol ) ]->default_port ))    warning += "Removed the "    "default port number ("+pno+") from "+port+"\n";    else    host = host+":"+pno;