Method

PurpleMediaBackendset_encryption_parameters

since: 2.11

Declaration [src]

gboolean
purple_media_backend_set_encryption_parameters (
  PurpleMediaBackend* self,
  const gchar* sess_id,
  const gchar* cipher,
  const gchar* auth,
  const gchar* key,
  gsize key_len
)

Description [src]

Sets the encryption parameters of our media in the session.

Available since: 2.11

Parameters

sess_id

Type: const gchar*

The session id of the session to set parameters of.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
cipher

Type: const gchar*

The cipher to use to encrypt our media in the session.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
auth

Type: const gchar*

The algorithm to use to compute authentication codes for our media frames.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
key

Type: const gchar*

The encryption key.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
key_len

Type: gsize

Byte length of the encryption key.

Return value

Type: gboolean

TRUE if the settings were successfully applied, otherwise FALSE.