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

version» Context lines:

pike.git/lib/modules/SSL.pmod/https.pike:1:   #pike __REAL_VERSION__    - /* $Id: https.pike,v 1.15 2004/02/03 13:52:40 nilsson Exp $ + /* $Id: https.pike,v 1.16 2004/02/06 19:02:29 grubba Exp $    *    * dummy https server    */      //! Dummy HTTPS server      #define PORT 25678      import Stdio;   
pike.git/lib/modules/SSL.pmod/https.pike:73:    }   }      class no_random {    object arcfour = Crypto.Arcfour();       void create(string|void secret)    {    if (!secret)    secret = sprintf("Foo!%4c", time()); -  arcfour->set_encrypt_key(Crypto.SHA->hash(secret)); +  arcfour->set_encrypt_key(Crypto.SHA1->hash(secret));    }       string read(int size)    {    return arcfour->crypt(replace(allocate(size), 0, "\021") * "");    }   }      /* PKCS#1 Private key structure: