Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-04-13 21:55:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bc756d6ad985fdade11736004c3b512d41584b1f
bc756d6a
1 parent
9a036958
fix simple handshake bug #46, copy c1 to s2. change to 0.9.63
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
10 行增加
和
4 行删除
trunk/src/core/srs_core.hpp
trunk/src/rtmp/srs_protocol_handshake.cpp
trunk/src/rtmp/srs_protocol_rtmp.cpp
trunk/src/rtmp/srs_protocol_rtmp.hpp
trunk/src/core/srs_core.hpp
查看文件 @
bc756d6
...
...
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR "0"
#define VERSION_MINOR "9"
#define VERSION_REVISION "6
2
"
#define VERSION_REVISION "6
3
"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "srs"
...
...
trunk/src/rtmp/srs_protocol_handshake.cpp
查看文件 @
bc756d6
...
...
@@ -1001,7 +1001,7 @@ int SrsSimpleHandshake::handshake_with_client(SrsHandshakeBytes* hs_bytes, ISrsP
}
srs_verbose
(
"check c0 success, required plain text."
);
if
((
ret
=
hs_bytes
->
create_s0s1s2
())
!=
ERROR_SUCCESS
)
{
if
((
ret
=
hs_bytes
->
create_s0s1s2
(
hs_bytes
->
c0c1
+
1
))
!=
ERROR_SUCCESS
)
{
return
ret
;
}
...
...
trunk/src/rtmp/srs_protocol_rtmp.cpp
查看文件 @
bc756d6
...
...
@@ -275,7 +275,7 @@ int SrsHandshakeBytes::create_c0c1()
return
ret
;
}
int
SrsHandshakeBytes
::
create_s0s1s2
()
int
SrsHandshakeBytes
::
create_s0s1s2
(
const
char
*
c1
)
{
int
ret
=
ERROR_SUCCESS
;
...
...
@@ -294,6 +294,12 @@ int SrsHandshakeBytes::create_s0s1s2()
*
(
int32_t
*
)(
s0s1s2
+
1
+
4
)
=
*
(
int32_t
*
)(
c0c1
+
1
);
}
// if c1 specified, copy c1 to s2.
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/46
if
(
c1
)
{
memcpy
(
s0s1s2
+
1537
,
c1
,
1536
);
}
return
ret
;
}
...
...
trunk/src/rtmp/srs_protocol_rtmp.hpp
查看文件 @
bc756d6
...
...
@@ -137,7 +137,7 @@ public:
virtual
int
read_s0s1s2
(
ISrsProtocolReaderWriter
*
io
);
virtual
int
read_c2
(
ISrsProtocolReaderWriter
*
io
);
virtual
int
create_c0c1
();
virtual
int
create_s0s1s2
();
virtual
int
create_s0s1s2
(
const
char
*
c1
=
NULL
);
virtual
int
create_c2
();
};
...
...
请
注册
或
登录
后发表评论