Merge pull request #691 from ZoneMinder/rtsp_auth_fixes

this fixes Digest Auth for the mjpeg stream on a TV-IP302PI
This commit is contained in:
Andrew Bauer 2015-02-04 13:46:37 -06:00
commit 92b3cdbadb
1 changed files with 2 additions and 1 deletions

View File

@ -114,9 +114,10 @@ std::string Authenticator::getAuthHeader(std::string method, std::string uri)
if ( ! fQop.empty() ) { if ( ! fQop.empty() ) {
result += ", qop=" + fQop; result += ", qop=" + fQop;
result += ", nc=" + stringtf("%08x",nc); result += ", nc=" + stringtf("%08x",nc);
result += ", cnonce=" + fCnonce; result += ", cnonce=\"" + fCnonce + "\"";
} }
result += ", response=\"" + computeDigestResponse(method, uri) + "\""; result += ", response=\"" + computeDigestResponse(method, uri) + "\"";
result += ", algorithm=\"MD5\"";
//Authorization: Digest username="zm", //Authorization: Digest username="zm",
// realm="NC-336PW-HD-1080P", // realm="NC-336PW-HD-1080P",