summaryrefslogtreecommitdiff
path: root/tlscommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'tlscommon.h')
-rw-r--r--tlscommon.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tlscommon.h b/tlscommon.h
index 4f6eadc..de990ef 100644
--- a/tlscommon.h
+++ b/tlscommon.h
@@ -3,6 +3,11 @@
#include <openssl/ssl.h>
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#define ASN1_STRING_get0_data(o) ((o)->data)
+#define ASN1_STRING_length(o) ((o)->length)
+#endif
+
struct tls {
char *name;
char *cacertfile;