MCPcopy Index your code
hub / github.com/node-red/node-red / getDigestResponse

Function getDigestResponse

test/nodes/core/network/21-httprequest_spec.js:222–231  ·  view source on GitHub ↗
(req, algorithm, sess, realm, username, nonce, nc, cnonce, qop)

Source from the content-addressed store, hash-verified

220 }
221
222 function getDigestResponse(req, algorithm, sess, realm, username, nonce, nc, cnonce, qop) {
223 var ha1 = getDigest(algorithm, username + ':' + realm + ':' + getDigestPassword());
224 if (sess) {
225 ha1 = getDigest(algorithm, ha1 + ':' + nonce + ':' + cnonce)
226 }
227 let ha2 = getDigest(algorithm, req.method + ':' + req.path);
228 return qop
229 ? getDigest(algorithm, ha1 + ':' + nonce + ':' + nc + ':' + cnonce + ':' + qop + ':' + ha2)
230 : getDigest(algorithm, ha1 + ':' + nonce + ':' + ha2);
231 }
232
233 function handleDigestResponse(req, res, algorithm, sess, qop) {
234 let realm = "node-red";

Callers 1

handleDigestResponseFunction · 0.85

Calls 2

getDigestFunction · 0.85
getDigestPasswordFunction · 0.85

Tested by

no test coverage detected