mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Build: Refine build script.
This commit is contained in:
parent
21b9345387
commit
d9cf874033
4 changed files with 10 additions and 1 deletions
2
trunk/configure
vendored
2
trunk/configure
vendored
|
@ -83,7 +83,7 @@ END
|
||||||
# enable gdb debug
|
# enable gdb debug
|
||||||
GDBDebug=" -g -O0"
|
GDBDebug=" -g -O0"
|
||||||
# the warning level.
|
# the warning level.
|
||||||
WarnLevel=" -Wall -Wno-deprecated-declarations"
|
WarnLevel=" -Wall"
|
||||||
# the compile standard.
|
# the compile standard.
|
||||||
CppStd="-ansi"
|
CppStd="-ansi"
|
||||||
if [[ $SRS_CXX11 == YES ]]; then
|
if [[ $SRS_CXX11 == YES ]]; then
|
||||||
|
|
|
@ -726,6 +726,8 @@ SrsSslConnection::~SrsSslConnection()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
srs_error_t SrsSslConnection::handshake(string key_file, string crt_file)
|
srs_error_t SrsSslConnection::handshake(string key_file, string crt_file)
|
||||||
{
|
{
|
||||||
srs_error_t err = srs_success;
|
srs_error_t err = srs_success;
|
||||||
|
@ -867,6 +869,7 @@ srs_error_t SrsSslConnection::handshake(string key_file, string crt_file)
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
void SrsSslConnection::set_recv_timeout(srs_utime_t tm)
|
void SrsSslConnection::set_recv_timeout(srs_utime_t tm)
|
||||||
{
|
{
|
||||||
|
|
|
@ -114,6 +114,8 @@ void ssl_on_info(const SSL* dtls, int where, int ret)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
SSL_CTX* srs_build_dtls_ctx(SrsDtlsVersion version, std::string role)
|
SSL_CTX* srs_build_dtls_ctx(SrsDtlsVersion version, std::string role)
|
||||||
{
|
{
|
||||||
SSL_CTX* dtls_ctx;
|
SSL_CTX* dtls_ctx;
|
||||||
|
@ -188,6 +190,7 @@ SSL_CTX* srs_build_dtls_ctx(SrsDtlsVersion version, std::string role)
|
||||||
|
|
||||||
return dtls_ctx;
|
return dtls_ctx;
|
||||||
}
|
}
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
SrsDtlsCertificate::SrsDtlsCertificate()
|
SrsDtlsCertificate::SrsDtlsCertificate()
|
||||||
{
|
{
|
||||||
|
|
|
@ -54,6 +54,8 @@ SrsSslClient::~SrsSslClient()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
srs_error_t SrsSslClient::handshake()
|
srs_error_t SrsSslClient::handshake()
|
||||||
{
|
{
|
||||||
srs_error_t err = srs_success;
|
srs_error_t err = srs_success;
|
||||||
|
@ -171,6 +173,7 @@ srs_error_t SrsSslClient::handshake()
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
srs_error_t SrsSslClient::read(void* plaintext, size_t nn_plaintext, ssize_t* nread)
|
srs_error_t SrsSslClient::read(void* plaintext, size_t nn_plaintext, ssize_t* nread)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue