
Go to the source code of this file.
Functions | |
| struct sip_srtp * | sip_srtp_alloc (void) |
| void | sip_srtp_destroy (struct sip_srtp *srtp) |
| struct sip_srtp* sip_srtp_alloc | ( | void | ) | [read] |
Definition at line 39 of file srtp.c.
References ast_calloc.
Referenced by dialog_initialize_dtls_srtp(), process_sdp(), and setup_srtp().
{
struct sip_srtp *srtp;
srtp = ast_calloc(1, sizeof(*srtp));
return srtp;
}
| void sip_srtp_destroy | ( | struct sip_srtp * | srtp | ) |
Definition at line 48 of file srtp.c.
References ast_free, and sdp_crypto_destroy().
Referenced by __sip_destroy().
{
if (srtp->crypto) {
sdp_crypto_destroy(srtp->crypto);
}
srtp->crypto = NULL;
ast_free(srtp);
}