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

version» Context lines:

pike.git/lib/modules/SSL.pmod/https.pike:53: Inside #if constant(SSL.Cipher.CipherAlgorithm)
   "oWECIQDrmq//unoW1+/+D3JQMGC1KT4HJprhfxBsEoNrmyIhSwIhANG9c0bdpJse\n"    "VJA0y6nxLeB9pyoGWNZrAB4636jTOigRAiBhLQlAqhJnT6N+H7LfnkSVFDCwVFz3\n"    "eygz2yL3hCH8pwIhAKE6vEHuodmoYCMWorT5tGWM0hLpHCN/z3Btm38BGQSxAiAz\n"    "jwsOclu4b+H8zopfzpAaoB8xMcbs0heN+GNNI0h/dQ==\n");      class conn {    import Stdio;       object sslfile;    -  string message = "<html><head><title>SSL-3 server</title></head>\n" +  string message = +  "HTTP/1.0 200 Ok\r\n" +  "Connection: close\r\n" +  "Content-Length: 132\r\n" +  "Content-Type: text/html; charset=ISO-8859-1\r\n" +  "Date: Thu, 01 Jan 1970 00:00:01 GMT\r\n" +  "Server: Bare-Bones\r\n" +  "\r\n" +  "<html><head><title>SSL-3 server</title></head>\n"    "<body><h1>This is a minimal SSL-3 http server</h1>\n"    "<hr><it>/nisse</it></body></html>\n";    int index = 0;       void write_callback()    {    if (index < sizeof(message))    {    int written = sslfile->write(message[index..]);    if (written > 0)
pike.git/lib/modules/SSL.pmod/https.pike:192: Inside #if constant(SSL.Cipher.CipherAlgorithm) and #if 0
   werror("n = %s\np = %s\nq = %s\npq = %s\n",    n->digits(), p->digits(), q->digits(), (p*q)->digits());       rsa = Crypto.RSA();    rsa->set_public_key(n, e);    rsa->set_private_key(d);   #else /* !0 */    // FIXME: Is this correct?    rsa = Standards.PKCS.RSA.parse_private_key(my_key);   #endif /* 0 */ +  // Make sure all cipher suites are available. +  rsa_mode();    certificates = ({ my_certificate });    random = no_random()->read;    werror("Starting\n");    if (!bind(PORT, my_accept_callback))    {    perror("");    return 17;    }    else {    werror("Listening on port %d.\n", PORT);    return -17;    }   #endif   }      #else // constant(SSL.Cipher.CipherAlgorithm)   constant this_program_does_not_exist = 1;   #endif