1 /*
2 * Copyright (c) 2014, Ericsson AB. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without modification,
5 * are permitted provided that the following conditions are met:
6 *
7 * 1. Redistributions of source code must retain the above copyright notice, this
8 * list of conditions and the following disclaimer.
9 *
10 * 2. Redistributions in binary form must reproduce the above copyright notice, this
11 * list of conditions and the following disclaimer in the documentation and/or other
12 * materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
18 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
23 * OF SUCH DAMAGE.
24 */
25
26 #ifdef HAVE_CONFIG_H
27 #include "config.h"
28 #endif
29
30 #include "gstdtlsdec.h"
31 #include "gstdtlsenc.h"
32 #include "gstdtlssrtpenc.h"
33 #include "gstdtlssrtpdec.h"
34 #include "gstdtlssrtpdemux.h"
35
36 #include <gst/gst.h>
37
38 static gboolean
plugin_init(GstPlugin * plugin)39 plugin_init (GstPlugin * plugin)
40 {
41 return gst_element_register (plugin, "dtlsenc", GST_RANK_NONE,
42 GST_TYPE_DTLS_ENC)
43 && gst_element_register (plugin, "dtlsdec", GST_RANK_NONE,
44 GST_TYPE_DTLS_DEC)
45 && gst_element_register (plugin, "dtlssrtpdec", GST_RANK_NONE,
46 GST_TYPE_DTLS_SRTP_DEC)
47 && gst_element_register (plugin, "dtlssrtpenc", GST_RANK_NONE,
48 GST_TYPE_DTLS_SRTP_ENC)
49 && gst_element_register (plugin, "dtlssrtpdemux", GST_RANK_NONE,
50 GST_TYPE_DTLS_SRTP_DEMUX);
51 }
52
53 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
54 GST_VERSION_MINOR,
55 dtls,
56 "DTLS decoder and encoder plugins",
57 plugin_init, PACKAGE_VERSION, "BSD", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
58