| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2004efd commit eaa30e4
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,6 @@ const fixtures = require('../common/fixtures'); | |||
| 6 | 6 | ||
| 7 | 7 | const assert = require('assert'); | |
| 8 | 8 | const tls = require('tls'); | |
| 9 | - const fs = require('fs'); | ||
| 10 | 9 | ||
| 11 | 10 | const key = fixtures.readKey('agent2-key.pem'); | |
| 12 | 11 | const cert = fixtures.readKey('agent2-cert.pem'); | |
@@ -15,9 +14,7 @@ let ntests = 0; | |||
| 15 | 14 | let nsuccess = 0; | |
| 16 | 15 | ||
| 17 | 16 | function loadDHParam(n) { | |
| 18 | - let path = fixtures.fixturesDir; | ||
| 19 | - if (n !== 'error') path += '/keys'; | ||
| 20 | - return fs.readFileSync(`${path}/dh${n}.pem`); | ||
| 17 | + return fixtures.readKey(`dh${n}.pem`); | ||
| 21 | 18 | } | |
| 22 | 19 | ||
| 23 | 20 | const cipherlist = { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,10 +14,7 @@ let nsuccess = 0; | |||
| 14 | 14 | let nerror = 0; | |
| 15 | 15 | ||
| 16 | 16 | function loadDHParam(n) { | |
| 17 | - const params = [`dh${n}.pem`]; | ||
| 18 | - if (n !== 'error') | ||
| 19 | - params.unshift('keys'); | ||
| 20 | - return fixtures.readSync(params); | ||
| 17 | + return fixtures.readKey(`dh${n}.pem`); | ||
| 21 | 18 | } | |
| 22 | 19 | ||
| 23 | 20 | function test(size, err, next) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments