diff options
Diffstat (limited to 'channels/sip/include/sdp_crypto.h')
-rw-r--r-- | channels/sip/include/sdp_crypto.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/sip/include/sdp_crypto.h b/channels/sip/include/sdp_crypto.h index b1c153438..aa553cb00 100644 --- a/channels/sip/include/sdp_crypto.h +++ b/channels/sip/include/sdp_crypto.h @@ -31,6 +31,7 @@ #include <asterisk/rtp_engine.h> struct sdp_crypto; +struct sip_srtp; /*! \brief Initialize an return an sdp_crypto struct * @@ -51,11 +52,12 @@ void sdp_crypto_destroy(struct sdp_crypto *crypto); * \param p A valid sdp_crypto struct * \param attr the a:crypto line from SDP * \param rtp The rtp instance associated with the SDP being parsed + * \param srtp SRTP structure * * \retval 0 success * \retval nonzero failure */ -int sdp_crypto_process(struct sdp_crypto *p, const char *attr, struct ast_rtp_instance *rtp); +int sdp_crypto_process(struct sdp_crypto *p, const char *attr, struct ast_rtp_instance *rtp, struct sip_srtp *srtp); /*! \brief Generate an SRTP a=crypto offer @@ -68,7 +70,7 @@ int sdp_crypto_process(struct sdp_crypto *p, const char *attr, struct ast_rtp_in * \retval 0 success * \retval nonzero failure */ -int sdp_crypto_offer(struct sdp_crypto *p); +int sdp_crypto_offer(struct sdp_crypto *p, int taglen); /*! \brief Return the a_crypto value of the sdp_crypto struct |