1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

SquashSRS4: Fix DTLS warnings for HTTP api

This commit is contained in:
winlin 2021-04-05 08:29:29 +08:00
parent fcf72b48f9
commit 237c1e4d3d
2 changed files with 73 additions and 1 deletions

View file

@ -190,6 +190,25 @@ protected:
virtual bool is_dtls_client();
};
class SrsDtlsEmptyImpl : public SrsDtlsImpl
{
public:
SrsDtlsEmptyImpl();
virtual ~SrsDtlsEmptyImpl();
public:
virtual srs_error_t initialize(std::string version, std::string role);
virtual srs_error_t start_active_handshake();
virtual bool should_reset_timer();
virtual srs_error_t on_dtls(char* data, int nb_data);
public:
srs_error_t get_srtp_key(std::string& recv_key, std::string& send_key);
void callback_by_ssl(std::string type, std::string desc);
protected:
virtual srs_error_t on_final_out_data(uint8_t* data, int size);
virtual srs_error_t on_handshake_done();
virtual bool is_dtls_client();
};
class SrsDtls
{
private: