Lines Matching defs:const
23 const common = require('../common');
31 const tmpdir = require('../common/tmpdir');
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;
52 const SESSION_TIMEOUT = 1;
54 const key = fixtures.readKey('rsa_private.pem');
55 const cert = fixtures.readKey('rsa_cert.crt');
56 const options = {
70 const sessionFileName = (function() {
71 const ticketFileName = 'tls-session-ticket.txt';
72 const tmpPath = join(tmpdir.path, ticketFileName);
80 const flags = [
86 const client = spawn(common.opensslCli, flags, {
96 const grepConnectionType = (line) => {
97 const matches = line.match(/(New|Reused), /);
103 const lines = clientOutput.split('\n');
112 const server = tls.createServer(options, (cleartext) => {