Prosody RTP processing: API: sm_vmprx_config_encryption_aes_cm

This function is only in Prosody version 2 (TiNG).

Prototype Definition

int sm_vmprx_config_encryption_aes_cm(struct sm_vmprx_config_encryption_aes_cm_parms *pp)

Parameters

*pp
a structure of the following type:
typedef struct sm_vmprx_config_encryption_aes_cm_parms {
	tSMVMPrxId vmprx;					/* in */
	tSM_INT keylen;						/* in */
	char *key;						/* in */
} SM_VMPRX_CONFIG_ENCRYPTION_AES_CM_PARMS;

Description

Configures a VMP[rx] to use AES-CM encryption, as defined in IETF RFC 3711.

This requires the module securertp to have been downloaded.

Fields

vmprx (Only in Prosody version 2 (TiNG))
The VMP[rx] to configure
keylen (Only in Prosody version 2 (TiNG))
The length of the encryption key in octets.
key (Only in Prosody version 2 (TiNG))
The encryption key.

Returns

0 if call completed successfully, otherwise a standard error such as:


This function is part of the Prosody RTP processing API.