Ignore:
Timestamp:
Jan 23, 2017 4:18:59 AM (7 years ago)
Author:
nanang
Message:

Re #1900: Merged changes from trunk.

Location:
pjproject/branches/projects/uwp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/uwp

  • pjproject/branches/projects/uwp/aconfigure.ac

    r5532 r5538  
    15561556                AC_CHECK_HEADER(openssl/ssl.h,[openssl_h_present=1]) 
    15571557                AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="-lcrypto $LIBS"]) 
    1558                 AC_CHECK_LIB(ssl,SSL_library_init,[libssl_present=1 && LIBS="-lssl $LIBS"]) 
     1558                AC_CHECK_LIB(ssl,SSL_CTX_new,[libssl_present=1 && LIBS="-lssl $LIBS"]) 
    15591559                if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then 
    15601560                        AC_MSG_RESULT([OpenSSL library found, SSL support enabled]) 
    15611561                         
    15621562                        # Check if SRTP should be compiled with OpenSSL 
    1563                         # support, to enable cryptos such as AES GCM 
    1564                         AC_CHECK_LIB(crypto,EVP_aes_128_gcm,[ac_ssl_has_aes_gcm=1]) 
     1563                        # support, to enable cryptos such as AES GCM. 
     1564                         
     1565                        # EVP_CIPHER_CTX is now opaque in OpenSSL 1.1.0, libsrtp 1.5.4 uses it as a transparent type. 
     1566                        # AC_CHECK_LIB(crypto,EVP_aes_128_gcm,[ac_ssl_has_aes_gcm=1]) 
     1567                        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <openssl/evp.h>]], 
     1568                                                          [EVP_CIPHER_CTX ctx;EVP_aes_128_gcm();])], 
     1569                                          [ac_ssl_has_aes_gcm=1]) 
    15651570                        if test "x$ac_ssl_has_aes_gcm" = "x1"; then 
    15661571                                AC_MSG_RESULT([OpenSSL has AES GCM support, SRTP will use OpenSSL]) 
Note: See TracChangeset for help on using the changeset viewer.