(major = 0, minor = 0, patch = 0)
| 109 | |
| 110 | let OPENSSL_VERSION_NUMBER; |
| 111 | const hasOpenSSL = (major = 0, minor = 0, patch = 0) => { |
| 112 | if (!common.hasCrypto) return false; |
| 113 | if (OPENSSL_VERSION_NUMBER === undefined) { |
| 114 | const regexp = /(?<m>\d+)\.(?<n>\d+)\.(?<p>\d+)/; |
| 115 | const { m, n, p } = process.versions.openssl.match(regexp).groups; |
| 116 | OPENSSL_VERSION_NUMBER = opensslVersionNumber(m, n, p); |
| 117 | } |
| 118 | return OPENSSL_VERSION_NUMBER >= opensslVersionNumber(major, minor, patch); |
| 119 | }; |
| 120 | |
| 121 | let opensslCli = null; |
| 122 |
searching dependent graphs…