mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: delete SrsDTLS single instance
This commit is contained in:
parent
f3f9636d80
commit
9addade2b4
5 changed files with 30 additions and 44 deletions
|
@ -58,19 +58,16 @@ public:
|
|||
bool is_ecdsa();
|
||||
};
|
||||
|
||||
// @global dtls certficate for rtc module.
|
||||
SrsDtlsCertificate* _rtc_dtls_certificate = new SrsDtlsCertificate();
|
||||
// @global config object.
|
||||
extern SrsDtlsCertificate* _srs_rtc_dtls_certificate;
|
||||
|
||||
class SrsDtls
|
||||
{
|
||||
private:
|
||||
static SrsDtls* _instance;
|
||||
private:
|
||||
public:
|
||||
SrsDtls();
|
||||
virtual ~SrsDtls();
|
||||
public:
|
||||
static SrsDtls* instance();
|
||||
SSL_CTX* build_dtls_ctx();
|
||||
static SSL_CTX* build_dtls_ctx();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue