aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libtls-standalone/tls_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'testing/libtls-standalone/tls_compat.h')
-rw-r--r--testing/libtls-standalone/tls_compat.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/libtls-standalone/tls_compat.h b/testing/libtls-standalone/tls_compat.h
new file mode 100644
index 0000000000..6f91171cf8
--- /dev/null
+++ b/testing/libtls-standalone/tls_compat.h
@@ -0,0 +1,25 @@
+#include <openssl/opensslv.h>
+#include <openssl/x509_vfy.h>
+
+#ifndef LIBTLS_TLS_COMPAT_H
+#define LIBTLS_TLS_COMPAT_H
+
+#ifndef X509_V_FLAG_NO_CHECK_TIME
+#define X509_V_FLAG_NO_CHECK_TIME 0
+#endif
+
+#ifndef SSL_OP_NO_CLIENT_RENEGOTIATION
+#define SSL_OP_NO_CLIENT_RENEGOTIATION 0
+#endif
+
+int SSL_CTX_load_verify_mem(SSL_CTX *ctx, void *buf, int len);
+
+int ASN1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode);
+
+int SSL_CTX_use_certificate_chain_mem(SSL_CTX *, char *buf, off_t);
+
+int SSL_CTX_set1_groups(SSL_CTX *ctx, int *glist, int glistlen);
+
+#define SSL_CTX_set_dh_auto(...)
+
+#endif