winlin

fix bug of utest build.

@@ -26,6 +26,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -26,6 +26,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 #include <srs_core_autofree.hpp> 26 #include <srs_core_autofree.hpp>
27 #include <srs_protocol_utility.hpp> 27 #include <srs_protocol_utility.hpp>
28 28
  29 +#ifdef SRS_AUTO_SSL
  30 +
29 // verify the sha256 31 // verify the sha256
30 VOID TEST(HandshakeTest, OpensslSha256) 32 VOID TEST(HandshakeTest, OpensslSha256)
31 { 33 {
@@ -237,3 +239,5 @@ VOID TEST(HandshakeTest, BytesEqual) @@ -237,3 +239,5 @@ VOID TEST(HandshakeTest, BytesEqual)
237 EXPECT_TRUE(srs_bytes_equals(a1, a2, 1)); 239 EXPECT_TRUE(srs_bytes_equals(a1, a2, 1));
238 EXPECT_FALSE(srs_bytes_equals(a1, b2, 1)); 240 EXPECT_FALSE(srs_bytes_equals(a1, b2, 1));
239 } 241 }
  242 +
  243 +#endif
@@ -31,6 +31,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -31,6 +31,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 31
32 #include <srs_protocol_rtmp.hpp> 32 #include <srs_protocol_rtmp.hpp>
33 #include <srs_protocol_handshake.hpp> 33 #include <srs_protocol_handshake.hpp>
  34 +
  35 +#ifdef SRS_AUTO_SSL
34 using namespace srs; 36 using namespace srs;
  37 +#endif
35 38
36 #endif 39 #endif