Commit 2f03f8b3 authored by johan's avatar johan

DTLS-SRTP code cleaning

- remove dev-debug traces
parent 4e06a438
......@@ -52,12 +52,8 @@ MS2_PUBLIC void ms_dtls_srtp_start(MSDtlsSrtpContext* context);
MS2_PUBLIC void ms_dtls_srtp_context_destroy(MSDtlsSrtpContext *ctx);
MS2_PUBLIC void ms_dtls_srtp_set_role(MSDtlsSrtpContext *context, MSDtlsSrtpRole role);
MS2_PUBLIC MSDtlsSrtpRole ms_dtls_srtp_get_role(MSDtlsSrtpContext *context);
MS2_PUBLIC void ms_dtls_srtp_set_peer_fingerprint(MSDtlsSrtpContext *context, const char *peer_fingerprint);
MS2_PUBLIC int ms_dtls_srtp_generate_self_signed_certificate(char *certif, char *pkey, char *fingerprint);
MS2_PUBLIC int ms_dtls_srtp_transport_modifier_new(MSDtlsSrtpContext* ctx, RtpTransportModifier **rtpt, RtpTransportModifier **rtcpt );
MS2_PUBLIC void ms_dtls_srtp_transport_modifier_destroy(RtpTransportModifier *tp);
#ifdef __cplusplus
}
#endif
......
......@@ -1362,12 +1362,10 @@ bool_t audio_stream_zrtp_enabled(const AudioStream *stream) {
}
void audio_stream_enable_dtls(AudioStream *stream, MSDtlsSrtpParams *params){
#ifdef HAVE_DTLS
if (stream->ms.sessions.dtls_context==NULL) {
printf("Start DTLS audio stream context\n");
ms_message("Start DTLS audio stream context in stream sessions [%p]", &(stream->ms.sessions));
stream->ms.sessions.dtls_context=ms_dtls_srtp_context_new(&(stream->ms.sessions), params);
}
#endif
}
static void configure_av_recorder(AudioStream *stream){
......
This diff is collapsed.
......@@ -1266,7 +1266,7 @@ void video_stream_enable_zrtp(VideoStream *vstream, AudioStream *astream, MSZrtp
void video_stream_enable_dtls(VideoStream *stream, MSDtlsSrtpParams *params){
if (stream->ms.sessions.dtls_context==NULL) {
printf("Start DTLS video stream context\n");
ms_message("Start DTLS video stream context in stream session [%p]", &(stream->ms.sessions));
stream->ms.sessions.dtls_context=ms_dtls_srtp_context_new(&(stream->ms.sessions), params);
}
}
......
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