(req, algorithm, sess, realm, username, nonce, nc, cnonce, qop)
| 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"; |
no test coverage detected