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

Function getSessionServerIdentity

lib/internal/tls/wrap.js:119–124  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

117const kTLSSessionStatePrefix = Buffer.from('\0nodejs:tls:session:1\0');
118
119function getSessionServerIdentity(options) {
120 return options?.servername ||
121 options?.host ||
122 options?.socket?._host ||
123 'localhost';
124}
125
126function wrapSessionState(session, options) {
127 if (!Buffer.isBuffer(session) || options?.isServer)

Callers 3

wrapSessionStateFunction · 0.85
getSessionForReuseFunction · 0.85
onConnectSecureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…