Commit c300a580 authored by johan's avatar johan

DTLS code cleaning

parent 378392df
......@@ -45,7 +45,7 @@ typedef struct MSDtlsSrtpParams {
typedef struct _MSDtlsSrtpContext MSDtlsSrtpContext;
MS2_PUBLIC bool_t ms_dtls_available(void);
MS2_PUBLIC bool_t ms_dtls_srtp_available(void);
MS2_PUBLIC MSDtlsSrtpContext* ms_dtls_srtp_context_new(struct _MSMediaStreamSessions *sessions, MSDtlsSrtpParams *params);
MS2_PUBLIC void ms_dtls_srtp_start(MSDtlsSrtpContext* context);
......
......@@ -107,7 +107,7 @@ void ms_dtls_srtp_set_stream_sessions(MSDtlsSrtpContext *dtls_context, MSMediaSt
dtls_context->stream_sessions = stream_sessions;
}
}
bool_t ms_dtls_available(){return TRUE;}
bool_t ms_dtls_srtp_available(){return TRUE;}
static int ms_dtls_srtp_rtp_process_on_send(struct _RtpTransportModifier *t, mblk_t *msg){
return msgdsize(msg);
......@@ -823,6 +823,6 @@ void ms_dtls_srtp_transport_modifier_destroy(RtpTransportModifier *tp) {
#else /* HAVE_DTLS */
bool_t ms_dtls_available(){return FALSE;}
bool_t ms_dtls_srtp_available(){return FALSE;}
#endif /* HAVE_DTLS */
......@@ -245,7 +245,7 @@ void media_stream_enable_adaptive_jittcomp(MediaStream *stream, bool_t enabled)
}
bool_t media_stream_dtls_supported(void){
return ms_dtls_available();
return ms_dtls_srtp_available();
}
/*deprecated*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment