MCPcopy
hub / github.com/plasma-umass/browsix / onOCSP

Function onOCSP

node/lib/_tls_wrap.js:128–142  ·  view source on GitHub ↗
(err, response)

Source from the content-addressed store, hash-verified

126
127 var once = false;
128 function onOCSP(err, response) {
129 if (once)
130 return cb(new Error('TLS OCSP callback was called 2 times'));
131 once = true;
132
133 if (err)
134 return cb(err);
135
136 if (!self._handle)
137 return cb(new Error('Socket is closed'));
138
139 if (response)
140 self._handle.setOCSPResponse(response);
141 cb(null);
142 }
143}
144
145

Callers

nothing calls this directly

Calls 1

cbFunction · 0.70

Tested by

no test coverage detected