summaryrefslogtreecommitdiff
path: root/toxav/rtp.h
diff options
context:
space:
mode:
authormannol <eniz_vukovic@hotmail.com>2014-06-28 04:13:38 +0200
committermannol <eniz_vukovic@hotmail.com>2014-06-28 04:13:38 +0200
commitaeaf997ca57052a1589699c8ddfd9a75ca398180 (patch)
treee2c1e4857f94669c02c3caaec17757cf31da82bc /toxav/rtp.h
parentf4330658753e2ef01dfb32b0cebfe2b8d3cabfc9 (diff)
Removed redundant encryption and asserts
Diffstat (limited to 'toxav/rtp.h')
-rw-r--r--toxav/rtp.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/toxav/rtp.h b/toxav/rtp.h
index f4f3944d..63c8ce3d 100644
--- a/toxav/rtp.h
+++ b/toxav/rtp.h
@@ -105,18 +105,6 @@ typedef struct _RTPSession {
105 */ 105 */
106 RTPExtHeader *ext_header; 106 RTPExtHeader *ext_header;
107 107
108
109 /* Since these are only references of the
110 * call structure don't allocate or free
111 */
112
113 const uint8_t *encrypt_key;
114 const uint8_t *decrypt_key;
115 uint8_t *encrypt_nonce;
116 uint8_t *decrypt_nonce;
117
118 uint8_t *nonce_cycle;
119
120 RTPMessage *oldest_msg; 108 RTPMessage *oldest_msg;
121 RTPMessage *last_msg; /* tail */ 109 RTPMessage *last_msg; /* tail */
122 110
@@ -192,20 +180,10 @@ void rtp_free_msg ( RTPSession *session, RTPMessage *msg );
192 * @param payload_type Type of payload used to send. You can use values in toxmsi.h::MSICallType 180 * @param payload_type Type of payload used to send. You can use values in toxmsi.h::MSICallType
193 * @param messenger Tox* object. 181 * @param messenger Tox* object.
194 * @param friend_num Friend id. 182 * @param friend_num Friend id.
195 * @param encrypt_key Speaks for it self.
196 * @param decrypt_key Speaks for it self.
197 * @param encrypt_nonce Speaks for it self.
198 * @param decrypt_nonce Speaks for it self.
199 * @return RTPSession* Created control session. 183 * @return RTPSession* Created control session.
200 * @retval NULL Error occurred. 184 * @retval NULL Error occurred.
201 */ 185 */
202RTPSession *rtp_init_session ( int payload_type, 186RTPSession *rtp_init_session ( int payload_type, Messenger *messenger, int friend_num );
203 Messenger *messenger,
204 int friend_num,
205 const uint8_t *encrypt_key,
206 const uint8_t *decrypt_key,
207 const uint8_t *encrypt_nonce,
208 const uint8_t *decrypt_nonce );
209 187
210 188
211/** 189/**