pike.git / lib / modules / SSL.pmod / https.pike

version» Context lines:

pike.git/lib/modules/SSL.pmod/https.pike:63: Inside #if constant(SSL.Cipher.CipherAlgorithm)
   }       void read_callback(mixed id, string data)    {   #ifdef SSL3_DEBUG    werror("Received: '" + data + "'\n");   #endif    sslfile->set_write_callback(write_callback);    }    -  void create(object f) +  protected void create(object f)    {    sslfile = f;    sslfile->set_nonblocking(read_callback, 0, 0);    }   }      class no_random {    object arcfour = Crypto.Arcfour();    -  void create(string|void secret) +  protected void create(string|void secret)    {    if (!secret)    secret = sprintf("Foo!%4c", time());    arcfour->set_encrypt_key(Crypto.SHA1->hash(secret));    }       string read(int size)    {    return arcfour->crypt(replace(allocate(size), 0, "\021") * "");    }
pike.git/lib/modules/SSL.pmod/https.pike:149:    werror("Starting\n");    if (!bind(PORT, my_accept_callback))    {    perror("");    return 17;    }    else    return -17;   }    - void create() + protected void create()   {   #ifdef SSL3_DEBUG    werror("https->create\n");   #endif    sslport::create();   }      #else // constant(SSL.Cipher.CipherAlgorithm)   constant this_program_does_not_exist = 1;   #endif