Ignore:
Timestamp:
Sep 3, 2018 7:13:40 AM (4 years ago)
Author:
ming
Message:

Re #2100: Fixed duplication of crypto names and keys to use pj_strdup(). Otherwise, when the account/global config's input strings are modified (or deallocated) after being passed to PJSIP, then the crypto name matching will fail and we will generate error: PJMEDIA_SRTP_ENOTSUPCRYPTO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r5834 r5872  
    40784078 
    40794079/** 
     4080 * Duplicate SRTP transport setting. If the \a pool argument is NULL, 
     4081 * a simple memcpy() will be used. 
     4082 * 
     4083 * @param pool      Memory to duplicate strings. 
     4084 * @param dst       Destination setting. 
     4085 * @param src       Source setting. 
     4086 * @param check_str If set to TRUE, the function will check if strings 
     4087 *                  are identical before copying. Identical strings 
     4088 *                  will not be duplicated. 
     4089 *                  If set to FALSE, all strings will be duplicated. 
     4090 */ 
     4091PJ_DECL(void) pjsua_srtp_opt_dup(pj_pool_t *pool, pjsua_srtp_opt *dst, 
     4092                                 const pjsua_srtp_opt *src, 
     4093                                 pj_bool_t check_str); 
     4094 
     4095 
     4096/** 
    40804097 * Call this function to initialize account config with default values. 
    40814098 * 
Note: See TracChangeset for help on using the changeset viewer.