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

Function setTicketKeys

test/parallel/test-tls-ticket.js:75–82  ·  view source on GitHub ↗
(keys)

Source from the content-addressed store, hash-verified

73 // Rotation can occur right away if the session was reused, the keys were
74 // already decrypted or we wouldn't have a reused session.
75 function setTicketKeys(keys) {
76 if (c.isSessionReused())
77 server.setTicketKeys(keys);
78 else
79 s.once('session', () => {
80 server.setTicketKeys(keys);
81 });
82 }
83 if (counter === 1) {
84 previousKey = server.getTicketKeys();
85 assert.strictEqual(previousKey.compare(keys), 0);

Callers 1

createServerFunction · 0.85

Calls 1

onceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…