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

version» Context lines:

pike.git/lib/modules/SSL.pmod/https.pike:106:       SSL.File ssl;    int sent;       void write_cb()    {    int bytes = ssl->write(request[sent..]);    if (bytes > 0) {    sent += bytes;    } else if (sent < 0) { -  exit(1, "Failed to write data: %s\n", strerror(ssl->errno())); +  exit(1, "Failed to write data: %s.\n", strerror(ssl->errno()));    }    if (sent == sizeof(request)) {    ssl->set_write_callback(UNDEFINED);    }    }       void got_data(mixed ignored, string data)    {    werror("Data: %O\n", data);    }
pike.git/lib/modules/SSL.pmod/https.pike:151:    ]);    string cert = Standards.X509.make_selfsigned_certificate(key, 3600*24, attrs, 0, hash);    ctx->add_cert(key, ({ cert }), ({ "*" }));   }      int main()   {   #ifdef HTTPS_CLIENT    Stdio.File con = Stdio.File();    if (!con->connect(HOST, PORT)) -  exit(1, "Failed to connect to server: %s\n", strerror(con->errno())); +  exit(1, "Failed to connect to server: %s.\n", strerror(con->errno()));       Client(con);    return -1;   #else    SSL.Context ctx = MyContext();       Crypto.Sign key;       common_name = gethostname();    common_name = (gethostbyname(common_name) || ({ common_name }))[0];