blob: 3c8e37b0c4344342f1f98a84a95ab54c671729e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-openssl__compat.h,v 1.1 2019/05/03 11:04:34 hauke Exp $
Provide compatibility shims for building with openssl 1.0
--- openssl_compat.h.orig 2019-05-03 10:46:27.814125691 +0000
+++ openssl_compat.h
@@ -0,0 +1,18 @@
+/*
+ * OpenSSL Compatibility Shims for pre-1.1.0
+ *
+*/
+#ifndef RADMIND_OPENSSL_SHIMS
+#define RADMIND_OPENSSL_SHIMS
+
+#include <openssl/opensslv.h>
+
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#include <string.h>
+#include <openssl/engine.h>
+
+EVP_MD_CTX *EVP_MD_CTX_new(void);
+void EVP_MD_CTX_free(EVP_MD_CTX *ctx);
+
+#endif /* OPENSSL_VERSION_NUMBER */
+#endif /* RADMIND_OPENSSL_SHIMS */
|