mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Merge commit '6454c44f9f74dbaed17d32cf0eaec185386c27fa'
* commit '6454c44f9f74dbaed17d32cf0eaec185386c27fa': rtmpproto: Fix limelight authentication with abbreviated app names Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
5f9b1aae50
@ -1609,6 +1609,8 @@ static int do_llnw_auth(RTMPContext *rt, const char *user, const char *nonce)
|
|||||||
av_md5_update(md5, method, strlen(method));
|
av_md5_update(md5, method, strlen(method));
|
||||||
av_md5_update(md5, ":/", 2);
|
av_md5_update(md5, ":/", 2);
|
||||||
av_md5_update(md5, rt->app, strlen(rt->app));
|
av_md5_update(md5, rt->app, strlen(rt->app));
|
||||||
|
if (!strchr(rt->app, '/'))
|
||||||
|
av_md5_update(md5, "/_definst_", strlen("/_definst_"));
|
||||||
av_md5_final(md5, hash);
|
av_md5_final(md5, hash);
|
||||||
ff_data_to_hex(hashstr2, hash, 16, 1);
|
ff_data_to_hex(hashstr2, hash, 16, 1);
|
||||||
hashstr2[32] = '\0';
|
hashstr2[32] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user