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

refine code, failed when specified complex but no ssl for srslibrtmp

This commit is contained in:
winlin 2015-01-07 13:37:23 +08:00
parent 0e03d019a8
commit 89a3cf9efe
2 changed files with 10 additions and 5 deletions

View file

@ -602,6 +602,11 @@ int __srs_rtmp_connect_server(srs_rtmp_t rtmp)
int __srs_rtmp_do_complex_handshake(srs_rtmp_t rtmp)
{
#ifndef SRS_AUTO_SSL
// complex handshake requires ssl
return ERROR_RTMP_HS_SSL_REQUIRE;
#endif
int ret = ERROR_SUCCESS;
srs_assert(rtmp != NULL);