Thu Sep 7 01:03:39 2017

Asterisk developer's documentation


srtp.c File Reference

#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)

Function Documentation

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 }


Generated on 7 Sep 2017 for Asterisk - The Open Source Telephony Project by  doxygen 1.6.1