1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix bug #59: edge for FMS, always use schema1(digest-key) for FMS, or connect failed.

This commit is contained in:
winlin 2014-05-08 11:51:49 +08:00
parent b2aab8804b
commit fa9870db96
3 changed files with 4 additions and 2 deletions

View file

@ -1188,7 +1188,8 @@ int SrsComplexHandshake::handshake_with_server(SrsHandshakeBytes* hs_bytes, ISrs
// sign c1
c1s1 c1;
if ((ret = c1.c1_create(srs_schema0)) != ERROR_SUCCESS) {
// @remark, FMS requires the schema1(digest-key), or connect failed.
if ((ret = c1.c1_create(srs_schema1)) != ERROR_SUCCESS) {
return ret;
}
c1.dump(hs_bytes->c0c1 + 1);

View file

@ -43,6 +43,7 @@ namespace srs
*/
enum srs_schema_type {
srs_schema0 = 0, // key-digest sequence
// @remark, FMS requires the schema1(digest-key), or connect failed.
srs_schema1 = 1, // digest-key sequence
srs_schema_invalid = 2,
};