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

version» Context lines:

pike.git/lib/modules/SSL.pmod/client.pike:1:   #! /usr/bin/env pike   #pike __REAL_VERSION__      // SSL Client example    + #if constant(SSL.Cipher.CipherAlgorithm) +    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");   }   
pike.git/lib/modules/SSL.pmod/client.pike:37:    werror("couldn't connect\n");    exit(-1);    }    socket->set_nonblocking();    sslfile = SSL.sslfile(socket, context, 1,0);       sslfile->set_nonblocking(read_callback, write_callback, exit);       return -17;   } +  + #endif