Simplified ASN1_GetTimeT()

This commit also drops support for OpenSSL 1.1.0
(end of life for that release was August 31, 2018).
This commit is contained in:
Michal Trojnara
2020-06-07 17:54:10 +02:00
parent 772a878182
commit 0c9f53d30c
2 changed files with 10 additions and 36 deletions

View File

@ -93,17 +93,17 @@ AS_IF([test "x$have_gsf" = "xyes"],
PKG_CHECK_MODULES(
[OPENSSL],
[libcrypto >= 1.1.0],
[libcrypto >= 1.1.1],
,
[PKG_CHECK_MODULES(
[OPENSSL],
[openssl >= 1.1.0],
[openssl >= 1.1.1],
,
[AC_CHECK_LIB(
[crypto],
[EVP_MD_CTX_new],
[OPENSSL_LIBS="-lcrypto ${SOCKETS_LIBS} ${DL_LIBS}"],
[AC_MSG_ERROR([OpenSSL 1.1.0 or later is required. https://www.openssl.org/])],
[AC_MSG_ERROR([OpenSSL 1.1.1 or later is required. https://www.openssl.org/])],
[${DL_LIBS}]
)]
)]