MIKEYPayload

Hold the common fields for all payloads

Constructors

this
this(gstsdp.types.MIKEYPayloadType type)

Make a new #GstMIKEYPayload with type.

Members

Functions

kemacAddSub
bool kemacAddSub(gstsdp.mikeypayload.MIKEYPayload newpay)

Add a new sub payload to payload.

kemacGetNSub
uint kemacGetNSub()

Get the number of sub payloads of payload. payload should be of type GST_MIKEY_PT_KEMAC.

kemacGetSub
gstsdp.mikeypayload.MIKEYPayload kemacGetSub(uint idx)

Get the sub payload of payload at idx. payload should be of type GST_MIKEY_PT_KEMAC.

kemacRemoveSub
bool kemacRemoveSub(uint idx)

Remove the sub payload at idx in payload.

kemacSet
bool kemacSet(gstsdp.types.MIKEYEncAlg encAlg, gstsdp.types.MIKEYMacAlg macAlg)

Set the KEMAC parameters. payload should point to a GST_MIKEY_PT_KEMAC payload.

keyDataSetInterval
bool keyDataSetInterval(ubyte[] vfData, ubyte[] vtData)

Set the key validity period in the GST_MIKEY_PT_KEY_DATA payload.

keyDataSetKey
bool keyDataSetKey(gstsdp.types.MIKEYKeyDataType keyType, ubyte[] keyData)

Set key_len bytes of key_data of type key_type as the key for the GST_MIKEY_PT_KEY_DATA payload.

keyDataSetSalt
bool keyDataSetSalt(ubyte[] saltData)

Set the salt key data. If salt_len is 0 and salt_data is null, the salt data will be removed.

keyDataSetSpi
bool keyDataSetSpi(ubyte[] spiData)

Set the SPI/MKI validity in the GST_MIKEY_PT_KEY_DATA payload.

pkeSet
bool pkeSet(gstsdp.types.MIKEYCacheType C, ubyte[] data)

Set the PKE values in payload. payload must be of type GST_MIKEY_PT_PKE.

randSet
bool randSet(ubyte[] rand)

Set the random values in a GST_MIKEY_PT_RAND payload.

spAddParam
bool spAddParam(ubyte type, ubyte[] val)

Add a new parameter to the GST_MIKEY_PT_SP payload with type, len and val.

spGetNParams
uint spGetNParams()

Get the number of security policy parameters in a GST_MIKEY_PT_SP payload.

spGetParam
gstsdp.types.MIKEYPayloadSPParam spGetParam(uint idx)

Get the Security Policy parameter in a GST_MIKEY_PT_SP payload at idx.

spRemoveParam
bool spRemoveParam(uint idx)

Remove the Security Policy parameters from a GST_MIKEY_PT_SP payload at idx.

spSet
bool spSet(uint policy, gstsdp.types.MIKEYSecProto proto)

Set the Security Policy parameters for payload.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.