mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 22:55:52 +08:00
支持rtmp complex handshark
This commit is contained in:
parent
2d71e5d353
commit
df3d09219e
@ -273,6 +273,7 @@ void RtmpProtocol::handle_C1_simple(){
|
|||||||
handle_C2();
|
handle_C2();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
#ifdef ENABLE_OPENSSL
|
||||||
void RtmpProtocol::handle_C1_complex(){
|
void RtmpProtocol::handle_C1_complex(){
|
||||||
//参考自:http://blog.csdn.net/win_lin/article/details/13006803
|
//参考自:http://blog.csdn.net/win_lin/article/details/13006803
|
||||||
//skip c0,time,version
|
//skip c0,time,version
|
||||||
@ -426,6 +427,7 @@ void RtmpProtocol::send_complex_S0S1S2(int schemeType,const string &digest){
|
|||||||
handle_C2();
|
handle_C2();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
#endif //ENABLE_OPENSSL
|
||||||
void RtmpProtocol::handle_C2() {
|
void RtmpProtocol::handle_C2() {
|
||||||
if (m_strRcvBuf.size() < C1_HANDSHARK_SIZE) {
|
if (m_strRcvBuf.size() < C1_HANDSHARK_SIZE) {
|
||||||
//need more data!
|
//need more data!
|
||||||
|
@ -69,11 +69,13 @@ private:
|
|||||||
void handle_C0C1();
|
void handle_C0C1();
|
||||||
|
|
||||||
void handle_C1_simple();
|
void handle_C1_simple();
|
||||||
|
#ifdef ENABLE_OPENSSL
|
||||||
void handle_C1_complex();
|
void handle_C1_complex();
|
||||||
string get_C1_digest(const uint8_t *ptr,char **digestPos);
|
string get_C1_digest(const uint8_t *ptr,char **digestPos);
|
||||||
string get_C1_key(const uint8_t *ptr);
|
string get_C1_key(const uint8_t *ptr);
|
||||||
void check_C1_Digest(const string &digest,const string &data);
|
void check_C1_Digest(const string &digest,const string &data);
|
||||||
void send_complex_S0S1S2(int schemeType,const string &digest);
|
void send_complex_S0S1S2(int schemeType,const string &digest);
|
||||||
|
#endif //ENABLE_OPENSSL
|
||||||
|
|
||||||
void handle_C2();
|
void handle_C2();
|
||||||
void handle_rtmp();
|
void handle_rtmp();
|
||||||
|
Loading…
Reference in New Issue
Block a user