Changeset 1712


Ignore:
Timestamp:
Jan 19, 2008 1:36:38 AM (11 years ago)
Author:
nanang
Message:

Ticket #452: changed libsrtp error string resolver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/users/nanang/pjmedia/src/pjmedia/errno.c

    r1710 r1712  
    2525 
    2626#if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 
    27     pj_str_t srtp_transport_getliberrstr(int err); 
     27    const char* get_libsrtp_errstr(int err); 
    2828#endif 
    2929 
     
    155155    PJ_BUILD_ERR( PJMEDIA_SRTP_ESDPINCRYPTOTAG, "Invalid SRTP crypto tag" ), 
    156156    PJ_BUILD_ERR( PJMEDIA_SRTP_ESDPINTRANSPORT, "Invalid SDP media transport for SRTP" ), 
    157     PJ_BUILD_ERR( PJMEDIA_SRTP_ESDPREQCRYPTO,   "SRTP crypto attribute required in SDP" ), 
     157    PJ_BUILD_ERR( PJMEDIA_SRTP_ESDPREQCRYPTO,   "SRTP crypto attribute required" ), 
    158158    PJ_BUILD_ERR( PJMEDIA_SRTP_ESDPREQSECTP,    "Secure transport required in SDP media descriptor" ) 
    159159}; 
     
    201201        pj_str_t msg; 
    202202         
    203         msg = srtp_transport_getliberrstr(err); 
    204  
    205         errstr.ptr = buf; 
     203        msg = pj_str((char*)get_libsrtp_errstr(err)); 
     204 
    206205        pj_strncpy_with_null(&errstr, &msg, bufsize); 
    207206        return errstr; 
Note: See TracChangeset for help on using the changeset viewer.