File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 22const common = require ( '../common' ) ;
33if ( ! common . hasCrypto )
44 common . skip ( 'missing crypto' ) ;
5+ const fixtures = require ( '../common/fixtures' ) ;
56
67const assert = require ( 'assert' ) ;
78const tls = require ( 'tls' ) ;
89const fs = require ( 'fs' ) ;
910
10- const key = fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent2-key.pem` ) ;
11- const cert = fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent2-cert.pem` ) ;
11+ const key = fixtures . readKey ( ' agent2-key.pem' ) ;
12+ const cert = fixtures . readKey ( ' agent2-cert.pem' ) ;
1213
1314let ntests = 0 ;
1415let nsuccess = 0 ;
1516
1617function loadDHParam ( n ) {
17- let path = common . fixturesDir ;
18+ let path = fixtures . fixturesDir ;
1819 if ( n !== 'error' ) path += '/keys' ;
1920 return fs . readFileSync ( `${ path } /dh${ n } .pem` ) ;
2021}
You can’t perform that action at this time.
0 commit comments