- Timestamp:
- Apr 14, 2009 3:18:30 PM (16 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/transport_srtp.h
r2394 r2597 196 196 197 197 /** 198 * Initialize SRTP library. This function should be called before 199 * any SRTP functions, however calling #pjmedia_transport_srtp_create() 200 * will also invoke this function. This function will also register SRTP 201 * library deinitialization to #pj_atexit(), so the deinitialization 202 * of SRTP library will be performed automatically by PJLIB destructor. 203 */ 204 PJ_DECL(pj_status_t) pjmedia_srtp_init_lib(void); 205 206 207 /** 198 208 * Initialize SRTP setting with its default values. 199 209 * -
pjproject/trunk/pjmedia/src/pjmedia/transport_srtp.c
r2424 r2597 264 264 static void pjmedia_srtp_deinit_lib(void); 265 265 266 static pj_status_tpjmedia_srtp_init_lib(void)266 PJ_DEF(pj_status_t) pjmedia_srtp_init_lib(void) 267 267 { 268 268 static pj_bool_t initialized = PJ_FALSE; … … 270 270 if (initialized == PJ_FALSE) { 271 271 err_status_t err; 272 272 273 err = srtp_init(); 273 274 if (err != err_status_ok) { -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r2563 r2597 279 279 &pjsua_var.null_port); 280 280 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 281 282 #if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 283 /* Initialize SRTP library. */ 284 status = pjmedia_srtp_init_lib(); 285 if (status != PJ_SUCCESS) { 286 pjsua_perror(THIS_FILE, "Error initializing SRTP library", 287 status); 288 return status; 289 } 290 #endif 281 291 282 292 /* Perform NAT detection */
Note: See TracChangeset
for help on using the changeset viewer.