Commit ef6ddcb4 authored by Nils Goroll's avatar Nils Goroll

backwards compatibility with oder openssls

parent c58bd1e9
......@@ -22,6 +22,11 @@ AC_CHECK_LIB([crypto], [PEM_read_RSA_PUBKEY])
test "$ac_cv_lib_crypto_PEM_read_RSA_PUBKEY" == "no" && \
AC_MSG_ERROR([Need libcrypto.])
AC_CHECK_LIB([crypto],
[EVP_MD_CTX_free],
[AC_DEFINE([HAVE_EVP_MD_CTX_FREE], [],
[Libcrypto has EVP_MD_CTX_free])])
AC_CHECK_PROGS(BASE64, [base64], [no])
test "$BASE64" == "no" && AC_MSG_ERROR([Required program 'base64' not found.])
......
......@@ -51,6 +51,10 @@ fini(void)
{
}
#ifndef HAVE_EVP_MD_CTX_FREE
#define EVP_MD_CTX_free(x) EVP_MD_CTX_destroy(x)
#define EVP_MD_CTX_new() EVP_MD_CTX_create()
#endif
struct vmod_crypto_verifier {
unsigned magic;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment