mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SquashSRS4: Refine DTLS init, use specified API by role
This commit is contained in:
parent
de65a331f1
commit
dc93836489
5 changed files with 37 additions and 17 deletions
|
@ -563,7 +563,7 @@ VOID TEST(KernelRTCTest, StringDumpHexTest)
|
|||
}
|
||||
}
|
||||
|
||||
extern SSL_CTX* srs_build_dtls_ctx(SrsDtlsVersion version);
|
||||
extern SSL_CTX* srs_build_dtls_ctx(SrsDtlsVersion version, std::string role);
|
||||
|
||||
class MockDtls
|
||||
{
|
||||
|
@ -625,7 +625,7 @@ srs_error_t MockDtls::initialize(std::string role, std::string version)
|
|||
version_ = SrsDtlsVersionAuto;
|
||||
}
|
||||
|
||||
dtls_ctx = srs_build_dtls_ctx(version_);
|
||||
dtls_ctx = srs_build_dtls_ctx(version_, role);
|
||||
dtls = SSL_new(dtls_ctx);
|
||||
srs_assert(dtls);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue