summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;