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 2
2
const common = require ( '../common' ) ;
3
3
if ( ! common . hasCrypto )
4
4
common . skip ( 'missing crypto' ) ;
5
+ const fixtures = require ( '../common/fixtures' ) ;
5
6
6
7
const assert = require ( 'assert' ) ;
7
8
const tls = require ( 'tls' ) ;
8
9
const fs = require ( 'fs' ) ;
9
10
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' ) ;
12
13
13
14
let ntests = 0 ;
14
15
let nsuccess = 0 ;
15
16
16
17
function loadDHParam ( n ) {
17
- let path = common . fixturesDir ;
18
+ let path = fixtures . fixturesDir ;
18
19
if ( n !== 'error' ) path += '/keys' ;
19
20
return fs . readFileSync ( `${ path } /dh${ n } .pem` ) ;
20
21
}
You can’t perform that action at this time.
0 commit comments