#include "asterisk.h"
#include "asterisk/utils.h"
#include "include/srtp.h"
Go to the source code of this file.
Functions | |
sip_srtp * | sip_srtp_alloc (void) |
void | sip_srtp_destroy (struct sip_srtp *srtp) |
struct sip_srtp* sip_srtp_alloc | ( | void | ) |
Definition at line 35 of file srtp.c.
References ast_calloc.
Referenced by setup_srtp().
00036 { 00037 struct sip_srtp *srtp; 00038 00039 srtp = ast_calloc(1, sizeof(*srtp)); 00040 00041 return srtp; 00042 }
void sip_srtp_destroy | ( | struct sip_srtp * | srtp | ) |
Definition at line 44 of file srtp.c.
References ast_free, and sdp_crypto_destroy().
Referenced by __sip_destroy().
00045 { 00046 if (srtp->crypto) { 00047 sdp_crypto_destroy(srtp->crypto); 00048 } 00049 srtp->crypto = NULL; 00050 ast_free(srtp); 00051 }