diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-04 15:09:26 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-04 15:09:26 +0000 |
commit | 1c5234c1b13693e7dfdf186c4eeed56b26b27a2b (patch) | |
tree | 3a4961cedd2401d26b6062a67c3cd8660d8592c8 /main/rtmpdump/akamai2.patch | |
parent | d43a4f23e6aa55883c2b0b318a0596ae52a664f7 (diff) | |
download | aports-1c5234c1b13693e7dfdf186c4eeed56b26b27a2b.tar.bz2 aports-1c5234c1b13693e7dfdf186c4eeed56b26b27a2b.tar.xz |
main/rtmpdump: fix for adobe auth against akamai servers
Diffstat (limited to 'main/rtmpdump/akamai2.patch')
-rw-r--r-- | main/rtmpdump/akamai2.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/main/rtmpdump/akamai2.patch b/main/rtmpdump/akamai2.patch new file mode 100644 index 0000000000..a4fc4720ac --- /dev/null +++ b/main/rtmpdump/akamai2.patch @@ -0,0 +1,28 @@ +http://lists.mplayerhq.hu/pipermail/rtmpdump/2012-December/002252.html + +Some servers (akamai) only include a 'challenge' parameter, no +'opaque' parameter, while others (wowza) include both 'opaque' +and 'challenge'. If 'opaque' is provided, it should be used here, +otherwise 'challenge', but never both. + +After this patch, adobe auth works against both wowza and akamai +servers. +--- + librtmp/rtmp.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c +index d64a0bb..7f1c7ff 100644 +--- a/librtmp/rtmp.c ++++ b/librtmp/rtmp.c +@@ -2609,7 +2609,7 @@ PublisherAuth(RTMP *r, AVal *description) + /* response = base64enc(md5(hash1 + opaque + challenge2)) */ + if (opaque.av_len) + MD5_Update(&md5ctx, opaque.av_val, opaque.av_len); +- if (challenge.av_len) ++ else if (challenge.av_len) + MD5_Update(&md5ctx, challenge.av_val, challenge.av_len); + MD5_Update(&md5ctx, challenge2, B64INT_LEN); + MD5_Final(md5sum_val, &md5ctx); +-- +1.7.9.4 |