Ignore:
Timestamp:
Aug 19, 2014 2:18:07 AM (7 years ago)
Author:
ming
Message:

Re #1751 (misc): Fixed compilation error due to the lack of the SSLv2 methods.
The fix will autodetect this and define OPENSSL_NO_SSL2 if necessary. Related to #1321.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r4881 r4892  
    15221522                        #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) 
    15231523                        AC_DEFINE(PJ_HAS_SSL_SOCK, 1) 
     1524                        AC_CHECK_LIB(ssl,SSLv2_method,[libssl_no_ssl2=1]) 
     1525                        if test "x$libssl_no_ssl2" != "x1"; then 
     1526                                CFLAGS="$CFLAGS -DOPENSSL_NO_SSL2=1" 
     1527                        fi 
    15241528                else 
    15251529                        AC_MSG_RESULT([** OpenSSL libraries not found, disabling SSL support **]) 
Note: See TracChangeset for help on using the changeset viewer.