Tweak client version based on encryption status
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Sat, 24 Apr 2010 11:30:39 +0000 (11:30 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Sat, 24 Apr 2010 11:30:39 +0000 (11:30 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@446 400ebc74-4327-4243-bc38-086b20814532

librtmp/handshake.h

index f5be0b9..52f74ff 100644 (file)
@@ -374,13 +374,16 @@ HandShake(RTMP * r, bool FP9HandShake)
   if (FP9HandShake)
     {
       /* set version to at least 9.0.115.0 */
-#ifdef FP10
-      clientsig[4] = 128;
-      clientsig[6] = 3;
-#else
-      clientsig[4] = 9;
-      clientsig[6] = 124;
-#endif
+      if (encrypted)
+       {
+         clientsig[4] = 128;
+         clientsig[6] = 3;
+       }
+      else
+        {
+         clientsig[4] = 10;
+         clientsig[6] = 45;
+       }
       clientsig[5] = 0;
       clientsig[7] = 2;