Changeset 5540


Ignore:
Timestamp:
Jan 23, 2017 5:18:21 AM (3 years ago)
Author:
nanang
Message:

Re #1932: Updated configure script for AES-GCM support detection.

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r5537 r5540  
    79027902 
    79037903                        # EVP_CIPHER_CTX is now opaque in OpenSSL 1.1.0, libsrtp 1.5.4 uses it as a transparent type. 
    7904                         # AC_CHECK_LIB(crypto,EVP_aes_128_gcm,[ac_ssl_has_aes_gcm=1]) 
    79057904                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
    79067905/* end confdefs.h.  */ 
     
    79157914_ACEOF 
    79167915if ac_fn_c_try_compile "$LINENO"; then : 
     7916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5 
     7917$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; } 
     7918if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then : 
     7919  $as_echo_n "(cached) " >&6 
     7920else 
     7921  ac_check_lib_save_LIBS=$LIBS 
     7922LIBS="-lcrypto  $LIBS" 
     7923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     7924/* end confdefs.h.  */ 
     7925 
     7926/* Override any GCC internal prototype to avoid an error. 
     7927   Use char because int might match the return type of a GCC 
     7928   builtin and then its argument prototype would still apply.  */ 
     7929#ifdef __cplusplus 
     7930extern "C" 
     7931#endif 
     7932char EVP_aes_128_gcm (); 
     7933int 
     7934main () 
     7935{ 
     7936return EVP_aes_128_gcm (); 
     7937  ; 
     7938  return 0; 
     7939} 
     7940_ACEOF 
     7941if ac_fn_c_try_link "$LINENO"; then : 
     7942  ac_cv_lib_crypto_EVP_aes_128_gcm=yes 
     7943else 
     7944  ac_cv_lib_crypto_EVP_aes_128_gcm=no 
     7945fi 
     7946rm -f core conftest.err conftest.$ac_objext \ 
     7947    conftest$ac_exeext conftest.$ac_ext 
     7948LIBS=$ac_check_lib_save_LIBS 
     7949fi 
     7950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5 
     7951$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; } 
     7952if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then : 
    79177953  ac_ssl_has_aes_gcm=1 
     7954fi 
     7955 
    79187956fi 
    79197957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
  • pjproject/trunk/aconfigure.ac

    r5537 r5540  
    15641564                         
    15651565                        # 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]) 
    15671566                        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <openssl/evp.h>]], 
    15681567                                                          [EVP_CIPHER_CTX ctx;EVP_aes_128_gcm();])], 
    1569                                           [ac_ssl_has_aes_gcm=1]) 
     1568                                          [AC_CHECK_LIB(crypto,EVP_aes_128_gcm,[ac_ssl_has_aes_gcm=1])]) 
    15701569                        if test "x$ac_ssl_has_aes_gcm" = "x1"; then 
    15711570                                AC_MSG_RESULT([OpenSSL has AES GCM support, SRTP will use OpenSSL]) 
Note: See TracChangeset for help on using the changeset viewer.