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

version» Context lines:

pike.git/lib/modules/SSL.pmod/client.pike:2:      // SSL Client example      import SSL.constants;      SSL.sslfile sslfile;      void write_callback(mixed id)   {    sslfile->set_write_callback(0); -  sslfile->write("GET / HTTP/1.0\r\n\r\n"); +  // sslfile->write("GET / HTTP/1.0\r\n\r\n");   }      void read_callback(mixed id, string s)   {    write(s);   }      int main(int argc, array(string) argv)   {    SSL.context context = SSL.context();
pike.git/lib/modules/SSL.pmod/client.pike:30:    });       context->random = Crypto.randomness.reasonably_random()->read;    Stdio.File socket = Stdio.File();    if(!socket->connect("pike.roxen.com", 443))    {    werror("couldn't connect\n");    exit(-1);    }    socket->set_nonblocking(); -  sslfile = SSL.sslfile(socket, context, 1); +  sslfile = SSL.sslfile(socket, context, 1,0);       sslfile->set_nonblocking(read_callback, write_callback, exit);       return -17;   }