projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for EVP_EncryptInit_ex instead of SHA1_Version in OpenSSL.
[oweals/tinc.git]
/
m4
/
openssl.m4
diff --git
a/m4/openssl.m4
b/m4/openssl.m4
index f09130012c4110cefff92ebd37338a3f0c97e36f..8d4a24bf6586854f7e18e3181b513f21767d0221 100644
(file)
--- a/
m4/openssl.m4
+++ b/
m4/openssl.m4
@@
-28,13
+28,13
@@
AC_DEFUN([tinc_OPENSSL],
case $host_os in
*mingw*)
case $host_os in
*mingw*)
- AC_CHECK_LIB(crypto,
SHA1_version
,
+ AC_CHECK_LIB(crypto,
EVP_EncryptInit_ex
,
[LIBS="$LIBS -lcrypto -lgdi32 -lcrypt32"],
[AC_MSG_ERROR([OpenSSL libraries not found.])]
)
;;
*)
[LIBS="$LIBS -lcrypto -lgdi32 -lcrypt32"],
[AC_MSG_ERROR([OpenSSL libraries not found.])]
)
;;
*)
- AC_CHECK_LIB(crypto,
SHA1_version
,
+ AC_CHECK_LIB(crypto,
EVP_EncryptInit_ex
,
[LIBS="$LIBS -lcrypto"],
[AC_MSG_ERROR([OpenSSL libraries not found.])]
)
[LIBS="$LIBS -lcrypto"],
[AC_MSG_ERROR([OpenSSL libraries not found.])]
)