Ignore:
Timestamp:
May 9, 2019 7:24:57 AM (5 years ago)
Author:
nanang
Message:

Re #1298: Updated PJMEDIA* to use PJ_ERROR consistently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_srtp_sdes.c

    r5929 r5982  
    129129                                 crypto_suites[cs_idx].cipher_key_len); 
    130130            if (err != 1) { 
    131                 PJ_LOG(5,(THIS_FILE, "Failed generating random key")); 
     131                PJ_LOG(4,(THIS_FILE, "Failed generating random key " 
     132                          "(native err=%d)", err)); 
    132133                return PJMEDIA_ERRNO_FROM_LIBSRTP(1); 
    133134            } 
     
    160161 
    161162    /* Key transmitted via SDP should be base64 encoded. */ 
    162     status = pj_base64_encode((pj_uint8_t*)crypto->key.ptr, (int)crypto->key.slen, 
     163    status = pj_base64_encode((pj_uint8_t*)crypto->key.ptr, 
     164                              (int)crypto->key.slen, 
    163165                              b64_key, &b64_key_len); 
    164166    if (status != PJ_SUCCESS) { 
    165         PJ_LOG(5,(THIS_FILE, "Failed encoding plain key to base64")); 
     167        PJ_PERROR(4,(THIS_FILE, status, 
     168                     "Failed encoding plain key to base64")); 
    166169        return status; 
    167170    } 
     
    259262                              &itmp); 
    260263    if (status != PJ_SUCCESS) { 
    261         PJ_LOG(4,(THIS_FILE, "Failed decoding crypto key from base64")); 
     264        PJ_PERROR(4,(THIS_FILE, status, 
     265                     "Failed decoding crypto key from base64")); 
    262266        return status; 
    263267    } 
Note: See TracChangeset for help on using the changeset viewer.