aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtmpdump/akamai1.patch
blob: 9aa26facbcddfb7ddcacb4af3b7176c9b365502b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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