View | Details | Raw Unified | Return to bug 275568
Collapse All | Expand All

(-)b/devel/gdcm/files/patch-Source_Common_gdcmOpenSSLCryptographicMessageSyntax.cxx (+25 lines)
Added Link Here
1
--- Source/Common/gdcmOpenSSLCryptographicMessageSyntax.cxx.orig	2023-12-04 07:33:11 UTC
2
+++ Source/Common/gdcmOpenSSLCryptographicMessageSyntax.cxx
3
@@ -24,6 +24,22 @@
4
 #include <openssl/err.h>
5
 #include <openssl/rand.h>
6
 
7
+#if LIBRESSL_VERSION_NUMBER >= 0x3080200fL
8
+// implementation copied from LibreSSL before removal in 3.8.2
9
+static void *BUF_memdup(const void *data, size_t siz)
10
+{
11
+  void *ret = NULL;
12
+  if (data != NULL)
13
+    {
14
+    if ((ret = malloc(siz)) == NULL)
15
+      ERR_PUT_error(ERR_LIB_BUF,(0xfff),ERR_R_MALLOC_FAILURE,__FILE__,__LINE__);
16
+    else
17
+      (void) memcpy(ret, data, siz);
18
+    }
19
+  return ret;
20
+}
21
+#endif
22
+
23
 namespace gdcm
24
 {
25
 

Return to bug 275568