Skip to content

Commit

Permalink
don't set algorithm parameter, if digest is MD5
Browse files Browse the repository at this point in the history
  • Loading branch information
ireader committed Aug 9, 2017
1 parent 733f04a commit dcf275b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion librtsp/source/client/rtsp-client-auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ int rtsp_client_authenrization(struct rtsp_client_t* rtsp, const char* method, c
md5_A2(A2, method, uri, rtsp->auth.qop, entity);
md5_response(response, A1, A2, rtsp->auth.nonce, rtsp->nc, rtsp->cnonce, rtsp->auth.qop);

n = snprintf(buffer, sizeof(buffer), ", algorithm=MD5");
//n = snprintf(buffer, sizeof(buffer), ", algorithm=MD5");
n = snprintf(buffer, sizeof(buffer), ""); // default MD5
if (n + 1 < sizeof(buffer) && rtsp->auth.opaque[0])
n += snprintf(buffer + n, sizeof(buffer) - n, ", opaque=\"%s\", ", rtsp->auth.opaque);
if (n + 1 < sizeof(buffer) && rtsp->auth.qop[0])
Expand Down

0 comments on commit dcf275b

Please sign in to comment.