Prosody RTP processing: API: sm_vmptx_config_authentication_hmac_sha1

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

Prototype Definition

int sm_vmptx_config_authentication_hmac_sha1(struct sm_vmptx_config_authentication_hmac_sha1_parms *pp)

Parameters

*pp
a structure of the following type:
typedef struct sm_vmptx_config_authentication_hmac_sha1_parms {
	tSMVMPtxId vmptx;					/* in */
	tSM_INT keylen;						/* in */
	char *key;						/* in */
	tSM_INT taglen;						/* in */
} SM_VMPTX_CONFIG_AUTHENTICATION_HMAC_SHA1_PARMS;

Description

Configures a VMP[tx] to use HMAC-SHA1 authentication, as defined in IETF RFC 3711.

This requires the module securertp to have been downloaded.

Fields

vmptx (Only in Prosody version 2 (TiNG))
The VMP[tx] to configure
keylen (Only in Prosody version 2 (TiNG))
The length of the authentication key in octets.
key (Only in Prosody version 2 (TiNG))
The authentication key.
taglen (Only in Prosody version 2 (TiNG))
The length of the authentication tag in bits.

Returns

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


This function is part of the Prosody RTP processing API.