summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-12-13 16:44:21 +0100
committerSimon Rettberg2019-12-13 16:44:21 +0100
commitd2770d24b6852f92926a39773eec83e08fa2ee88 (patch)
tree9db968a5484ba9e227b26d7d6ae7599cf81f44e3
parentlibowfat >= 0.32 moves headers to libowfat/ subdir (diff)
downloadldadp-d2770d24b6852f92926a39773eec83e08fa2ee88.tar.gz
ldadp-d2770d24b6852f92926a39773eec83e08fa2ee88.tar.xz
ldadp-d2770d24b6852f92926a39773eec83e08fa2ee88.zip
Compat hack for OpenSSL < 1.1.0
-rw-r--r--openssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl.c b/openssl.c
index 7611c0c..bc49eb8 100644
--- a/openssl.c
+++ b/openssl.c
@@ -4,6 +4,10 @@
#include <openssl/conf.h>
#include <openssl/x509v3.h>
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#define ASN1_STRING_get0_data ASN1_STRING_data
+#endif
+
static BOOL initDone = FALSE;
static const EVP_MD *sha1 = NULL;