- Timestamp:
- Jul 7, 2017 2:52:44 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/transport_srtp_dtls.c
r5621 r5623 28 28 * Include OpenSSL headers 29 29 */ 30 #include <openssl/bn.h> 31 #include <openssl/err.h> 32 #include <openssl/rsa.h> 30 33 #include <openssl/ssl.h> 31 #include <openssl/err.h> 32 34 35 #if OPENSSL_VERSION_NUMBER >= 0x10100000L 36 # define X509_get_notBefore(x) X509_getm_notBefore(x) 37 # define X509_get_notAfter(x) X509_getm_notAfter(x) 38 #endif 33 39 34 40 /* Set to 1 to enable DTLS-SRTP debugging */ … … 370 376 371 377 /* Create DTLS context */ 372 ctx = SSL_CTX_new(DTLS v1_method());378 ctx = SSL_CTX_new(DTLS_method()); 373 379 if (ctx == NULL) { 374 380 return GET_SSL_STATUS(ds); … … 1032 1038 { 1033 1039 dtls_srtp *ds = (dtls_srtp *)tp; 1034 pjmedia_sdp_media *m_ rem, *m_loc;1040 pjmedia_sdp_media *m_loc; 1035 1041 pjmedia_sdp_attr *a; 1036 1042 pj_bool_t use_ice = PJ_FALSE; … … 1043 1049 PJ_UNUSED_ARG(sdp_pool); 1044 1050 1045 m_rem = sdp_remote ? sdp_remote->media[media_index] : NULL;1046 1051 m_loc = sdp_local->media[media_index]; 1047 1052 if (ds->srtp->offerer_side) { … … 1186 1191 { 1187 1192 dtls_srtp *ds = (dtls_srtp *)tp; 1188 pjmedia_sdp_media *m_rem, *m_loc;1189 1193 pj_ice_strans_state ice_state; 1190 1194 pj_status_t status = PJ_SUCCESS; … … 1195 1199 1196 1200 PJ_UNUSED_ARG(tmp_pool); 1197 1198 m_rem = sdp_remote->media[media_index]; 1199 m_loc = sdp_local->media[media_index]; 1201 PJ_UNUSED_ARG(sdp_local); 1200 1202 1201 1203 if (ds->srtp->offerer_side) {
Note: See TracChangeset
for help on using the changeset viewer.