Changeset 5540
- Timestamp:
- Jan 23, 2017 5:18:21 AM (8 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r5537 r5540 7902 7902 7903 7903 # 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])7905 7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7906 7905 /* end confdefs.h. */ … … 7915 7914 _ACEOF 7916 7915 if 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; } 7918 if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then : 7919 $as_echo_n "(cached) " >&6 7920 else 7921 ac_check_lib_save_LIBS=$LIBS 7922 LIBS="-lcrypto $LIBS" 7923 cat 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 7930 extern "C" 7931 #endif 7932 char EVP_aes_128_gcm (); 7933 int 7934 main () 7935 { 7936 return EVP_aes_128_gcm (); 7937 ; 7938 return 0; 7939 } 7940 _ACEOF 7941 if ac_fn_c_try_link "$LINENO"; then : 7942 ac_cv_lib_crypto_EVP_aes_128_gcm=yes 7943 else 7944 ac_cv_lib_crypto_EVP_aes_128_gcm=no 7945 fi 7946 rm -f core conftest.err conftest.$ac_objext \ 7947 conftest$ac_exeext conftest.$ac_ext 7948 LIBS=$ac_check_lib_save_LIBS 7949 fi 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; } 7952 if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then : 7917 7953 ac_ssl_has_aes_gcm=1 7954 fi 7955 7918 7956 fi 7919 7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -
pjproject/trunk/aconfigure.ac
r5537 r5540 1564 1564 1565 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 1566 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <openssl/evp.h>]], 1568 1567 [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])]) 1570 1569 if test "x$ac_ssl_has_aes_gcm" = "x1"; then 1571 1570 AC_MSG_RESULT([OpenSSL has AES GCM support, SRTP will use OpenSSL])
Note: See TracChangeset
for help on using the changeset viewer.