summaryrefslogtreecommitdiffstats
path: root/main/rtmpdump/akamai1.patch
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2013-03-08 14:04:18 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2013-03-08 14:04:18 +0000
commit5b1108f6f694ac443f39032500cbdcb346e0f5f9 (patch)
treec09c08a3e0be0134fd5b3d07e41ac0d42e8eb5c8 /main/rtmpdump/akamai1.patch
parent0388dc6fe9087601aa10c748f6e61a3adf455fe7 (diff)
parent34fedfa778a0df3632ccac2a9dc5cbd01f15ff07 (diff)
downloadaports-fcolista-5b1108f6f694ac443f39032500cbdcb346e0f5f9.tar.bz2
aports-fcolista-5b1108f6f694ac443f39032500cbdcb346e0f5f9.tar.xz
Merge git://dev.alpinelinux.org/aports
Diffstat (limited to 'main/rtmpdump/akamai1.patch')
-rw-r--r--main/rtmpdump/akamai1.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/main/rtmpdump/akamai1.patch b/main/rtmpdump/akamai1.patch
new file mode 100644
index 0000000000..9aa26facbc
--- /dev/null
+++ b/main/rtmpdump/akamai1.patch
@@ -0,0 +1,28 @@
+http://lists.mplayerhq.hu/pipermail/rtmpdump/2012-December/002251.html
+
+From: Björn Axelsson <bjorn.axelsson at intinor.se>
+
+This was broken in e42b5d09. This makes adobe auth against
+akamai servers work again.
+---
+ librtmp/rtmp.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c
+index b966710..d64a0bb 100644
+--- a/librtmp/rtmp.c
++++ b/librtmp/rtmp.c
+@@ -2514,8 +2514,8 @@ PublisherAuth(RTMP *r, AVal *description)
+ #define RESPONSE_LEN 32
+ #define CHALLENGE2_LEN 16
+ #define SALTED2_LEN (32+8+8+8)
+-#define B64DIGEST_LEN 22 /* 16 byte digest => 22 b64 chars */
+-#define B64INT_LEN 6 /* 4 byte int => 6 b64 chars */
++#define B64DIGEST_LEN 24 /* 16 byte digest => 22 b64 chars + 2 chars padding */
++#define B64INT_LEN 8 /* 4 byte int => 6 b64 chars + 2 chars padding */
+ #define HEXHASH_LEN (2*MD5_DIGEST_LENGTH)
+ char response[RESPONSE_LEN];
+ char challenge2[CHALLENGE2_LEN];
+--
+1.7.9.4
+