mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Do handshake although ssl done.
This commit is contained in:
parent
2f50c4eb1a
commit
dd9a9b05d1
2 changed files with 28 additions and 25 deletions
|
@ -101,7 +101,10 @@ private:
|
|||
BIO* bio_out;
|
||||
|
||||
ISrsDtlsCallback* callback;
|
||||
bool handshake_done;
|
||||
|
||||
// Whether the handhshake is done, for us only.
|
||||
// @remark For us only, means peer maybe not done, we also need to handle the DTLS packet.
|
||||
bool handshake_done_for_us;
|
||||
|
||||
// @remark: dtls_role_ default value is DTLS_SERVER.
|
||||
SrsDtlsRole role_;
|
||||
|
@ -123,7 +126,7 @@ public:
|
|||
private:
|
||||
srs_error_t do_on_dtls(char* data, int nb_data);
|
||||
srs_error_t do_handshake();
|
||||
void trace(uint8_t* data, int length, bool incoming);
|
||||
void trace(uint8_t* data, int length, bool incoming, int ssl_err);
|
||||
public:
|
||||
srs_error_t get_srtp_key(std::string& recv_key, std::string& send_key);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue