(major = 0, minor = 0, patch = 0)
| 101 | |
| 102 | // Synthesize OPENSSL_VERSION_NUMBER format with the layout 0xMNN00PPSL |
| 103 | const opensslVersionNumber = (major = 0, minor = 0, patch = 0) => { |
| 104 | assert(major >= 0 && major <= 0xf); |
| 105 | assert(minor >= 0 && minor <= 0xff); |
| 106 | assert(patch >= 0 && patch <= 0xff); |
| 107 | return (major << 28) | (minor << 20) | (patch << 4); |
| 108 | }; |
| 109 | |
| 110 | let OPENSSL_VERSION_NUMBER; |
| 111 | const hasOpenSSL = (major = 0, minor = 0, patch = 0) => { |
no test coverage detected
searching dependent graphs…