- Timestamp:
- May 9, 2019 7:24:57 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/transport_srtp_sdes.c
r5929 r5982 129 129 crypto_suites[cs_idx].cipher_key_len); 130 130 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)); 132 133 return PJMEDIA_ERRNO_FROM_LIBSRTP(1); 133 134 } … … 160 161 161 162 /* 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, 163 165 b64_key, &b64_key_len); 164 166 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")); 166 169 return status; 167 170 } … … 259 262 &itmp); 260 263 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")); 262 266 return status; 263 267 }
Note: See TracChangeset
for help on using the changeset viewer.