Ignore:
Timestamp:
Feb 15, 2008 8:08:06 AM (11 years ago)
Author:
bennylp
Message:

Ticket #481: Default TLS version should be TLSv1 (thanks Klaus Darilion)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_tls_ossl.c

    r1611 r1799  
    316316{ 
    317317    struct pjsip_tls_setting *opt = &lis->setting; 
     318    int method; 
    318319    char *lis_name = lis->factory.obj_name; 
    319320    SSL_METHOD *ssl_method; 
     
    327328 
    328329    /* Determine SSL method to use */ 
    329     switch (opt->method) { 
    330     case PJSIP_SSL_DEFAULT_METHOD: 
     330    method = opt->method; 
     331    if (method == PJSIP_SSL_UNSPECIFIED_METHOD) 
     332        method = PJSIP_SSL_DEFAULT_METHOD; 
     333 
     334    switch (method) { 
    331335    case PJSIP_SSLV23_METHOD: 
    332336        ssl_method = SSLv23_method(); 
Note: See TracChangeset for help on using the changeset viewer.