MCPcopy Index your code
hub / github.com/nodejs/node / opensslVersionNumber

Function opensslVersionNumber

test/common/crypto.js:103–108  ·  view source on GitHub ↗
(major = 0, minor = 0, patch = 0)

Source from the content-addressed store, hash-verified

101
102// Synthesize OPENSSL_VERSION_NUMBER format with the layout 0xMNN00PPSL
103const 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
110let OPENSSL_VERSION_NUMBER;
111const hasOpenSSL = (major = 0, minor = 0, patch = 0) => {

Callers 1

hasOpenSSLFunction · 0.85

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…