From 424da308302bef604844d3110a39f2f03bf5358e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sat, 20 Oct 2012 23:18:01 +0300 Subject: rtsp: Support decryption of SRTP signalled via RFC 4568 (SDES) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This only takes care of decrypting incoming packets; the outgoing RTCP packets are not encrypted. This is enough for some use cases, and signalling crypto keys for use with outgoing RTCP packets doesn't fit as simply into the API. If the SDP demuxer is hooked up with custom IO, the return packets can be encrypted e.g. via the SRTP protocol. If the SRTP keys aren't available within the SDP, the decryption can be handled externally as well (when using custom IO). Signed-off-by: Martin Storsjö --- libavformat/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/Makefile') diff --git a/libavformat/Makefile b/libavformat/Makefile index 2d66330..7c0b926 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -40,7 +40,8 @@ OBJS-$(CONFIG_RTPDEC) += rdt.o \ rtpdec_qt.o \ rtpdec_svq3.o \ rtpdec_vp8.o \ - rtpdec_xiph.o + rtpdec_xiph.o \ + srtp.o OBJS-$(CONFIG_RTPENC_CHAIN) += rtpenc_chain.o rtp.o # muxers/demuxers -- cgit v1.1 From 2f3bada63e57345329c4f9b48e9b81b5cfc03d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 12 Dec 2012 00:22:48 +0200 Subject: lavf: Add a protocol for SRTP encryption/decryption MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is mostly useful for encryption together with the RTP muxer, but could also be set up as IO towards the peer with the SDP demuxer with custom IO. Signed-off-by: Martin Storsjö --- libavformat/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/Makefile') diff --git a/libavformat/Makefile b/libavformat/Makefile index 7c0b926..1f008a9 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -367,6 +367,7 @@ OBJS-$(CONFIG_RTMPTE_PROTOCOL) += rtmpproto.o rtmppkt.o OBJS-$(CONFIG_RTMPTS_PROTOCOL) += rtmpproto.o rtmppkt.o OBJS-$(CONFIG_RTP_PROTOCOL) += rtpproto.o OBJS-$(CONFIG_SCTP_PROTOCOL) += sctp.o +OBJS-$(CONFIG_SRTP_PROTOCOL) += srtpproto.o srtp.o OBJS-$(CONFIG_TCP_PROTOCOL) += tcp.o OBJS-$(CONFIG_TLS_PROTOCOL) += tls.o OBJS-$(CONFIG_UDP_PROTOCOL) += udp.o -- cgit v1.1