zrtp: Remove old deprecated functions, clean up code
This commit is contained in:
parent
efe7d98ca5
commit
19cc31cd4a
|
@ -96,11 +96,4 @@ rtp_error_t uvgrtp::zrtp_msg::commit::parse_msg(uvgrtp::zrtp_msg::zrtp_commit* c
|
|||
memcpy(session.r_msg.commit.second, msg, len);
|
||||
|
||||
return RTP_OK;
|
||||
}
|
||||
|
||||
rtp_error_t uvgrtp::zrtp_msg::commit::parse_msg(uvgrtp::zrtp_msg::receiver& receiver, zrtp_session_t& session)
|
||||
{
|
||||
(void)receiver;
|
||||
(void)session;
|
||||
return RTP_OK;
|
||||
}
|
||||
}
|
|
@ -47,9 +47,7 @@ namespace uvgrtp {
|
|||
commit(zrtp_session_t& session);
|
||||
~commit();
|
||||
|
||||
/* TODO: */
|
||||
virtual rtp_error_t parse_msg(uvgrtp::zrtp_msg::zrtp_commit* commit, zrtp_session_t& session, size_t len);
|
||||
virtual rtp_error_t parse_msg(uvgrtp::zrtp_msg::receiver& receiver, zrtp_session_t& session);
|
||||
rtp_error_t parse_msg(uvgrtp::zrtp_msg::zrtp_commit* commit, zrtp_session_t& session, size_t len);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,13 +72,6 @@ uvgrtp::zrtp_msg::confirm::confirm(zrtp_session_t& session, int part):
|
|||
uvgrtp::zrtp_msg::confirm::~confirm()
|
||||
{}
|
||||
|
||||
rtp_error_t uvgrtp::zrtp_msg::confirm::parse_msg(uvgrtp::zrtp_msg::receiver& receiver, zrtp_session_t& session)
|
||||
{
|
||||
(void)receiver;
|
||||
(void)session;
|
||||
return RTP_OK;
|
||||
}
|
||||
|
||||
rtp_error_t uvgrtp::zrtp_msg::confirm::parse_msg(uvgrtp::zrtp_msg::zrtp_confirm* confirm, zrtp_session_t& session)
|
||||
{
|
||||
allocate_rframe(sizeof(zrtp_confirm));
|
||||
|
|
|
@ -52,8 +52,6 @@ namespace uvgrtp {
|
|||
confirm(zrtp_session_t& session, int part);
|
||||
~confirm();
|
||||
|
||||
/* TODO: */
|
||||
virtual rtp_error_t parse_msg(uvgrtp::zrtp_msg::receiver& receiver, zrtp_session_t& session);
|
||||
virtual rtp_error_t parse_msg(uvgrtp::zrtp_msg::zrtp_confirm* confirm, zrtp_session_t& session);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -127,11 +127,4 @@ rtp_error_t uvgrtp::zrtp_msg::dh_key_exchange::parse_msg(uvgrtp::zrtp_msg::zrtp_
|
|||
memcpy(session.r_msg.dh.second, msg, len);
|
||||
|
||||
return RTP_OK;
|
||||
}
|
||||
|
||||
rtp_error_t uvgrtp::zrtp_msg::dh_key_exchange::parse_msg(uvgrtp::zrtp_msg::receiver& receiver, zrtp_session_t& session)
|
||||
{
|
||||
(void)receiver;
|
||||
(void)session;
|
||||
return RTP_OK;
|
||||
}
|
||||
}
|
|
@ -41,8 +41,6 @@ namespace uvgrtp {
|
|||
dh_key_exchange(struct zrtp_dh *dh);
|
||||
~dh_key_exchange();
|
||||
|
||||
/* TODO: */
|
||||
virtual rtp_error_t parse_msg(uvgrtp::zrtp_msg::receiver& receiver, zrtp_session_t& session);
|
||||
virtual rtp_error_t parse_msg(uvgrtp::zrtp_msg::zrtp_dh* dh, zrtp_session_t& session, size_t len);
|
||||
|
||||
};
|
||||
|
|
|
@ -114,10 +114,3 @@ rtp_error_t uvgrtp::zrtp_msg::hello::parse_msg(uvgrtp::zrtp_msg::zrtp_hello* hel
|
|||
|
||||
return RTP_OK;
|
||||
}
|
||||
|
||||
rtp_error_t uvgrtp::zrtp_msg::hello::parse_msg(uvgrtp::zrtp_msg::receiver& receiver, zrtp_session_t& session)
|
||||
{
|
||||
(void)receiver;
|
||||
(void)session;
|
||||
return RTP_OK;
|
||||
}
|
||||
|
|
|
@ -62,7 +62,6 @@ namespace uvgrtp {
|
|||
~hello();
|
||||
|
||||
/* TODO: */
|
||||
virtual rtp_error_t parse_msg(uvgrtp::zrtp_msg::receiver& receiver, zrtp_session_t& session);
|
||||
virtual rtp_error_t parse_msg(uvgrtp::zrtp_msg::zrtp_hello* hello, zrtp_session_t& session, size_t len);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -24,14 +24,3 @@ uvgrtp::zrtp_msg::hello_ack::hello_ack(zrtp_session_t& session)
|
|||
|
||||
uvgrtp::zrtp_msg::hello_ack::~hello_ack()
|
||||
{}
|
||||
|
||||
rtp_error_t uvgrtp::zrtp_msg::hello_ack::parse_msg(uvgrtp::zrtp_msg::receiver& receiver,
|
||||
zrtp_session_t& session)
|
||||
{
|
||||
(void)receiver;
|
||||
(void)session;
|
||||
|
||||
// TODO?
|
||||
|
||||
return RTP_OK;
|
||||
}
|
||||
|
|
|
@ -30,9 +30,6 @@ namespace uvgrtp {
|
|||
public:
|
||||
hello_ack(zrtp_session_t& session);
|
||||
~hello_ack();
|
||||
|
||||
virtual rtp_error_t parse_msg(uvgrtp::zrtp_msg::receiver& receiver,
|
||||
zrtp_session_t& session);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -27,9 +27,6 @@ namespace uvgrtp {
|
|||
|
||||
rtp_error_t send_msg(std::shared_ptr<uvgrtp::socket> socket, sockaddr_in& addr, sockaddr_in6& addr6);
|
||||
|
||||
virtual rtp_error_t parse_msg(uvgrtp::zrtp_msg::receiver& receiver,
|
||||
zrtp_session_t& session) = 0;
|
||||
|
||||
static ssize_t header_length_to_packet(uint16_t header_len);
|
||||
static uint16_t packet_to_header_len(ssize_t packet);
|
||||
|
||||
|
|
Loading…
Reference in New Issue