mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Reorder functions
This commit is contained in:
parent
f79dcc9ae3
commit
e7261e1ca6
2 changed files with 70 additions and 69 deletions
|
@ -112,6 +112,9 @@ public:
|
|||
virtual ~SrsDtls();
|
||||
public:
|
||||
srs_error_t initialize(std::string role, std::string version);
|
||||
private:
|
||||
SSL_CTX* build_dtls_ctx();
|
||||
public:
|
||||
// As DTLS client, start handshake actively, send the ClientHello packet.
|
||||
srs_error_t start_active_handshake();
|
||||
// When got DTLS packet, may handshake packets or application data.
|
||||
|
@ -123,8 +126,6 @@ private:
|
|||
void trace(uint8_t* data, int length, bool incoming);
|
||||
public:
|
||||
srs_error_t get_srtp_key(std::string& recv_key, std::string& send_key);
|
||||
private:
|
||||
SSL_CTX* build_dtls_ctx();
|
||||
};
|
||||
|
||||
class SrsSRTP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue