#include "asterisk.h"
#include "asterisk/utils.h"
#include "include/srtp.h"
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 setup_srtp().
00040 { 00041 struct sip_srtp *srtp; 00042 00043 srtp = ast_calloc(1, sizeof(*srtp)); 00044 00045 return srtp; 00046 }
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().
00049 { 00050 if (srtp->crypto) { 00051 sdp_crypto_destroy(srtp->crypto); 00052 } 00053 srtp->crypto = NULL; 00054 ast_free(srtp); 00055 }