支持rtmp complex handshark

This commit is contained in:
xiongziliang 2017-05-16 11:51:18 +08:00
parent 2d71e5d353
commit df3d09219e
2 changed files with 4 additions and 0 deletions

View File

@ -273,6 +273,7 @@ void RtmpProtocol::handle_C1_simple(){
handle_C2();
};
}
#ifdef ENABLE_OPENSSL
void RtmpProtocol::handle_C1_complex(){
//参考自http://blog.csdn.net/win_lin/article/details/13006803
//skip c0,time,version
@ -426,6 +427,7 @@ void RtmpProtocol::send_complex_S0S1S2(int schemeType,const string &digest){
handle_C2();
};
}
#endif //ENABLE_OPENSSL
void RtmpProtocol::handle_C2() {
if (m_strRcvBuf.size() < C1_HANDSHARK_SIZE) {
//need more data!

View File

@ -69,11 +69,13 @@ private:
void handle_C0C1();
void handle_C1_simple();
#ifdef ENABLE_OPENSSL
void handle_C1_complex();
string get_C1_digest(const uint8_t *ptr,char **digestPos);
string get_C1_key(const uint8_t *ptr);
void check_C1_Digest(const string &digest,const string &data);
void send_complex_S0S1S2(int schemeType,const string &digest);
#endif //ENABLE_OPENSSL
void handle_C2();
void handle_rtmp();