# dtlssrtpdec

This element decodes SRTP packets with a key received from DTLS. Before 1.28 the default X509 PEM certificate was encoded using a RSA 2048 bits private key. Since 1.28 the default certificate is encoded using a ECDSA P-256 private key.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBin
                        ╰──GstDtlsSrtpBin
                            ╰──dtlssrtpdec

## Implemented interfaces

    GstChildProxy

## Factory details

Authors: – Patrik Oldsberg

Classification: – `Decoder/Network/DTLS/SRTP`

Rank – none

Plugin – dtls

Package – GStreamer Bad Plug-ins

## Pad Templates

### `data_src`

    ANY

Presence – request

Direction – src

Object type – GstPad

### `rtcp_src`

    application/x-rtcp:

Presence – always

Direction – src

Object type – GstPad

### `rtp_src`

    application/x-rtp:

Presence – always

Direction – src

Object type – GstPad

### `sink`

    ANY

Presence – always

Direction – sink

Object type – GstPad

## Properties

### connection-state

    “connection-state” GstDtlsConnectionState *

Current connection state

Flags : Read

Default value : closed (1)

### peer-pem

    “peer-pem” gchararray

The X509 certificate received in the DTLS handshake, in PEM format

Flags : Read

Default value : NULL

### pem

    “pem” gchararray

A string containing a X509 certificate and private key in PEM format

Flags : Read / Write

Default value : NULL

The results of the search are