🔒 Repository is read-only – file editing is disabled.

recipes/utils/socat/socat-1.8.1.1-openssl4_fixes-1.patch main

22 linii Raw ← Powrót
12345678910111213141516171819202122
Submitted By:            Douglas R. Reno <renodr at linuxfromscratch dot org>
Date:                    2026-05-15
Initial Package Version: 1.8.1.1
Upstream Status:         Abandoned
Origin:                  Self
Description:             Fixes building against OpenSSL-4 by using the new
                         ASN1_STRING_length() and ASN1_STRING_get0_data()
                         functions.

--- socat-1.8.1.1.orig/xio-openssl.c	2025-12-08 01:44:32.000000000 -0600
+++ socat-1.8.1.1/xio-openssl.c	2026-05-07 17:51:55.561730650 -0500
@@ -1898,8 +1898,8 @@ static int openssl_handle_peer_certifica
 		  case GEN_IPADD:
 		     {
 			/* binary address format */
-			const unsigned char *data = pName->d.iPAddress->data;
-			size_t len = pName->d.iPAddress->length;
+			const unsigned char *data = ASN1_STRING_get0_data(pName->d.iPAddress);
+			size_t len = ASN1_STRING_length(pName->d.iPAddress);
 			char aBuffer[INET6_ADDRSTRLEN]; 	/* canonical peername */
 			struct in6_addr ip6bin;