- Timestamp:
- Jul 2, 2014 6:57:53 PM (10 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r4862 r4869 507 507 /* Determine SSL method to use */ 508 508 switch (ssock->param.proto) { 509 case PJ_SSL_SOCK_PROTO_DEFAULT:510 509 case PJ_SSL_SOCK_PROTO_TLS1: 511 510 ssl_method = (SSL_METHOD*)TLSv1_method(); … … 519 518 ssl_method = (SSL_METHOD*)SSLv3_method(); 520 519 break; 520 case PJ_SSL_SOCK_PROTO_DEFAULT: 521 521 case PJ_SSL_SOCK_PROTO_SSL23: 522 522 ssl_method = (SSL_METHOD*)SSLv23_method(); -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tls.c
r4862 r4869 275 275 pj_pool_t *pool; 276 276 pj_bool_t is_ipv6; 277 int af ;277 int af, sip_ssl_method; 278 278 struct tls_listener *listener; 279 279 pj_ssl_sock_param ssock_param; … … 368 368 has_listener = PJ_FALSE; 369 369 370 switch(listener->tls_setting.method) { 370 sip_ssl_method = listener->tls_setting.method; 371 if (sip_ssl_method==PJSIP_SSL_UNSPECIFIED_METHOD) 372 sip_ssl_method = PJSIP_SSL_DEFAULT_METHOD; 373 374 switch(sip_ssl_method) { 371 375 case PJSIP_TLSV1_METHOD: 372 376 ssock_param.proto = PJ_SSL_SOCK_PROTO_TLS1; … … 959 963 struct tls_listener *listener; 960 964 struct tls_transport *tls; 965 int sip_ssl_method; 961 966 pj_pool_t *pool; 962 967 pj_grp_lock_t *glock; … … 1022 1027 sizeof(listener->tls_setting.sockopt_params)); 1023 1028 1024 switch(listener->tls_setting.method) { 1029 sip_ssl_method = listener->tls_setting.method; 1030 if (sip_ssl_method==PJSIP_SSL_UNSPECIFIED_METHOD) 1031 sip_ssl_method = PJSIP_SSL_DEFAULT_METHOD; 1032 1033 switch(sip_ssl_method) { 1025 1034 case PJSIP_TLSV1_METHOD: 1026 1035 ssock_param.proto = PJ_SSL_SOCK_PROTO_TLS1;
Note: See TracChangeset
for help on using the changeset viewer.