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

Function setKey

lib/internal/tls/secure-context.js:89–94  ·  view source on GitHub ↗
(context, key, passphrase, name)

Source from the content-addressed store, hash-verified

87}
88
89function setKey(context, key, passphrase, name) {
90 validateKeyOrCertOption(`${name}.key`, key);
91 if (passphrase !== undefined && passphrase !== null)
92 validateString(passphrase, `${name}.passphrase`);
93 context.setKey(key, passphrase);
94}
95
96function processCiphers(ciphers, name) {
97 ciphers = StringPrototypeSplit(ciphers || getDefaultCiphers(), ':');

Callers 1

configSecureContextFunction · 0.85

Calls 1

validateKeyOrCertOptionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…