diff --git a/src/Rtmp/RtmpProtocol.cpp b/src/Rtmp/RtmpProtocol.cpp index bc3e8750..d90237c7 100644 --- a/src/Rtmp/RtmpProtocol.cpp +++ b/src/Rtmp/RtmpProtocol.cpp @@ -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! diff --git a/src/Rtmp/RtmpProtocol.h b/src/Rtmp/RtmpProtocol.h index 60dd8292..e33da1e8 100644 --- a/src/Rtmp/RtmpProtocol.h +++ b/src/Rtmp/RtmpProtocol.h @@ -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();