Ignore:
Timestamp:
Feb 1, 2008 2:47:31 PM (16 years ago)
Author:
bennylp
Message:

More ticket #61: removed const from rtp and rtcp callback function declaration to allow in-place packet modification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/transport_srtp.h

    r1748 r1763  
    226226 
    227227/** 
     228 * This is a utility function to decrypt SRTP packet using SRTP transport. 
     229 * This function is not part of SRTP transport's API, but it can be used 
     230 * to decrypt SRTP packets from non-network (for example, from a saved file) 
     231 * without having to use the transport framework. See pcaputil.c in the 
     232 * samples collection on how to use this function. 
     233 * 
     234 * @param tp            The SRTP transport. 
     235 * @param is_rtp        Set to non-zero if the packet is SRTP, otherwise set 
     236 *                      to zero if the packet is SRTCP. 
     237 * @param pkt           On input, it contains SRTP or SRTCP packet. On 
     238 *                      output, it contains the decrypted RTP/RTCP packet. 
     239 * @param pkt_len       On input, specify the length of the buffer. On 
     240 *                      output, it will be filled with the actual length 
     241 *                      of decrypted packet. 
     242 * 
     243 * @return              PJ_SUCCESS on success. 
     244 */ 
     245PJ_DECL(pj_status_t) pjmedia_transport_srtp_decrypt_pkt(pjmedia_transport *tp, 
     246                                                        pj_bool_t is_rtp, 
     247                                                        void *pkt, 
     248                                                        int *pkt_len); 
     249 
     250 
     251/** 
    228252 * Query member transport of SRTP. 
    229253 * 
Note: See TracChangeset for help on using the changeset viewer.