File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
2- var common = require ( '../common' ) ;
2+ const common = require ( '../common' ) ;
33
44if ( ! common . opensslCli ) {
55 common . skip ( 'node compiled without OpenSSL CLI.' ) ;
@@ -11,25 +11,25 @@ if (!common.hasCrypto) {
1111 return ;
1212}
1313
14- var assert = require ( 'assert' ) ;
15- var exec = require ( 'child_process' ) . exec ;
16- var tls = require ( 'tls' ) ;
17- var fs = require ( 'fs' ) ;
14+ const assert = require ( 'assert' ) ;
15+ const exec = require ( 'child_process' ) . exec ;
16+ const tls = require ( 'tls' ) ;
17+ const fs = require ( 'fs' ) ;
1818
19- var options = {
19+ const options = {
2020 key : fs . readFileSync ( common . fixturesDir + '/keys/agent2-key.pem' ) ,
2121 cert : fs . readFileSync ( common . fixturesDir + '/keys/agent2-cert.pem' ) ,
2222 ciphers : 'DES-CBC3-SHA'
2323} ;
2424
25- var reply = 'I AM THE WALRUS' ; // something recognizable
26- var response = '' ;
25+ const reply = 'I AM THE WALRUS' ; // something recognizable
26+ let response = '' ;
2727
2828process . on ( 'exit' , function ( ) {
2929 assert . notEqual ( response . indexOf ( reply ) , - 1 ) ;
3030} ) ;
3131
32- var server = tls . createServer ( options , common . mustCall ( function ( conn ) {
32+ const server = tls . createServer ( options , common . mustCall ( function ( conn ) {
3333 conn . end ( reply ) ;
3434} ) ) ;
3535
You can’t perform that action at this time.
0 commit comments