Lines Matching +full:require +full:- +full:common +full:- +full:first
23 const common = require('../common'); constant
25 if (!common.opensslCli)
26 common.skip('node compiled without OpenSSL CLI.');
28 if (!common.hasCrypto)
29 common.skip('missing crypto');
31 const tmpdir = require('../common/tmpdir');
36 // This test consists of three TLS requests --
37 // * The first one should result in a new connection because we don't have
40 // the session ticket we saved from the first connection.
45 const assert = require('assert');
46 const tls = require('tls');
47 const fs = require('fs');
48 const join = require('path').join;
49 const fixtures = require('../common/fixtures');
50 const spawn = require('child_process').spawn;
65 // `s_client` behaves incorrectly if we do not pass in both the `-sess_in`
66 // and the `-sess_out` flags, and the `-sess_in` argument must point to a
71 const ticketFileName = 'tls-session-ticket.txt';
77 // Expects a callback -- cb(connectionType : enum ['New'|'Reused'])
82 '-connect', `localhost:${common.PORT}`,
83 '-sess_in', sessionFileName,
84 '-sess_out', sessionFileName,
86 const client = spawn(common.opensslCli, flags, {
120 server.listen(common.PORT, () => {