Changeset 5261 for pjproject/trunk/pjmedia/src/pjmedia/transport_srtp.c
- Timestamp:
- Mar 15, 2016 3:57:39 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/transport_srtp.c
r5219 r5261 48 48 #else 49 49 # include <srtp.h> 50 # include <crypto_kernel.h> 50 51 #endif 51 52 … … 88 89 /* plain RTP/RTCP (no cipher & no auth) */ 89 90 {"NULL", NULL_CIPHER, 0, NULL_AUTH, 0, 0, 0, sec_serv_none}, 91 92 /* cipher AES_CM_256, auth HMAC_SHA1, auth tag len = 10 octets */ 93 {"AES_CM_256_HMAC_SHA1_80", AES_ICM, 46, HMAC_SHA1, 20, 10, 10, 94 sec_serv_conf_and_auth}, 95 96 /* cipher AES_CM_256, auth HMAC_SHA1, auth tag len = 10 octets */ 97 {"AES_CM_256_HMAC_SHA1_32", AES_ICM, 46, HMAC_SHA1, 20, 4, 10, 98 sec_serv_conf_and_auth}, 99 100 /* cipher AES_CM_192, auth HMAC_SHA1, auth tag len = 10 octets */ 101 //{"AES_CM_192_HMAC_SHA1_80", AES_ICM, 38, HMAC_SHA1, 20, 10, 10, 102 //sec_serv_conf_and_auth}, 103 104 /* cipher AES_CM_192, auth HMAC_SHA1, auth tag len = 4 octets */ 105 //{"AES_CM_192_HMAC_SHA1_80", AES_ICM, 38, HMAC_SHA1, 20, 4, 10, 106 //sec_serv_conf_and_auth}, 90 107 91 108 /* cipher AES_CM, auth HMAC_SHA1, auth tag len = 10 octets */ … … 337 354 PJ_UNUSED_ARG(endpt); 338 355 339 #if defined(PJMEDIA_EXTERNAL_SRTP) && (PJMEDIA_EXTERNAL_SRTP != 0) 356 #if !defined(PJMEDIA_SRTP_HAS_DEINIT) && !defined(PJMEDIA_SRTP_HAS_SHUTDOWN) 357 # define PJMEDIA_SRTP_HAS_SHUTDOWN 1 358 #endif 340 359 341 360 # if defined(PJMEDIA_SRTP_HAS_DEINIT) && PJMEDIA_SRTP_HAS_DEINIT!=0 … … 346 365 err = err_status_ok; 347 366 # endif 348 349 #else350 err = srtp_deinit();351 #endif352 367 if (err != err_status_ok) { 353 368 PJ_LOG(4, (THIS_FILE, "Failed to deinitialize libsrtp: %s", … … 1170 1185 pj_str_t input; 1171 1186 char *token; 1172 pj_size_t token_len;1173 1187 pj_str_t tmp; 1174 1188 pj_status_t status; 1175 int itmp ;1189 int itmp, token_len; 1176 1190 1177 1191 pj_bzero(crypto, sizeof(*crypto));
Note: See TracChangeset
for help on using the changeset viewer.