summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2017-07-04 08:28:54 +0300
committerDmitry Kozlov <xeb@mail.ru>2017-07-04 08:28:54 +0300
commite8dda21218a0bcb5363490a35e2cfed798421f2c (patch)
tree480eadc22fc15a54a862d359cff2e4a133e902f7 /crypto
parent928aefd7779593961beca41376dd829c26d58de5 (diff)
downloadaccel-ppp-e8dda21218a0bcb5363490a35e2cfed798421f2c.tar.gz
accel-ppp-e8dda21218a0bcb5363490a35e2cfed798421f2c.zip
support for openssl-1.1
Diffstat (limited to 'crypto')
-rw-r--r--crypto/crypto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/crypto.h b/crypto/crypto.h
index 3fbc3282..9e2e8401 100644
--- a/crypto/crypto.h
+++ b/crypto/crypto.h
@@ -7,7 +7,12 @@
#include <openssl/md5.h>
#include <openssl/sha.h>
#include <openssl/des.h>
+#include <openssl/evp.h>
+#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined (LIBRESSL_VERSION_NUMBER)
+#define EVP_MD_CTX_new EVP_MD_CTX_create
+#define EVP_MD_CTX_free EVP_MD_CTX_destroy
+#endif
#else
#ifdef CRYPTO_TOMCRYPT