Changeset 3610


Ignore:
Timestamp:
Jul 7, 2011 8:39:53 AM (8 years ago)
Author:
nanang
Message:

Fixed #1321: Put OPENSSL_NO_SSL2 macro check for all usages of OpenSSL API SSLv2*().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjlib/src/pj/ssl_sock_ossl.c

    r3553 r3610  
    311311        if (!meth) 
    312312            meth = (SSL_METHOD*)SSLv3_server_method(); 
     313#ifndef OPENSSL_NO_SSL2 
    313314        if (!meth) 
    314315            meth = (SSL_METHOD*)SSLv2_server_method(); 
     316#endif 
    315317        pj_assert(meth); 
    316318 
     
    489491        ssl_method = (SSL_METHOD*)TLSv1_method(); 
    490492        break; 
     493#ifndef OPENSSL_NO_SSL2 
    491494    case PJ_SSL_SOCK_PROTO_SSL2: 
    492495        ssl_method = (SSL_METHOD*)SSLv2_method(); 
    493496        break; 
     497#endif 
    494498    case PJ_SSL_SOCK_PROTO_SSL3: 
    495499        ssl_method = (SSL_METHOD*)SSLv3_method(); 
Note: See TracChangeset for help on using the changeset viewer.