public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libwebsockets] rawhide: Migrated to OpenSSL 4.0: use ASN1_STRING accessors instead of direct struct access
@ 2026-06-12 19:43 Dmitry Belyavskiy
0 siblings, 0 replies; only message in thread
From: Dmitry Belyavskiy @ 2026-06-12 19:43 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libwebsockets
Branch : rawhide
Commit : 71349c84f35059bca04a0dcb547c8a70e441b13c
Author : Dmitry Belyavskiy <beldmit@gmail.com>
Date : 2026-04-30T16:15:39+02:00
Stats : +36/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libwebsockets/c/71349c84f35059bca04a0dcb547c8a70e441b13c?branch=rawhide
Log:
Migrated to OpenSSL 4.0: use ASN1_STRING accessors instead of direct struct access
---
diff --git a/libwebsockets-openssl4.patch b/libwebsockets-openssl4.patch
new file mode 100644
index 0000000..9efd4f7
--- /dev/null
+++ b/libwebsockets-openssl4.patch
@@ -0,0 +1,35 @@
+--- a/lib/tls/openssl/openssl-x509.c 2026-03-17 17:35:25.000000000 +0100
++++ b/lib/tls/openssl/openssl-x509.c 2026-04-30 16:13:58.860937942 +0200
+@@ -39,7 +39,7 @@
+ {
+ #if !defined(LWS_PLAT_OPTEE)
+
+- const char *p = (const char *)as->data;
++ const char *p = (const char *)ASN1_STRING_get0_data(as);
+ struct tm t;
+
+ /* [YY]YYMMDDHHMMSSZ */
+@@ -226,8 +226,8 @@
+ if (!akid || !akid->keyid)
+ return 1;
+ val = akid->keyid;
+- dp = (const unsigned char *)val->data;
+- xlen = val->length;
++ dp = ASN1_STRING_get0_data(val);
++ xlen = ASN1_STRING_length(val);
+
+ buf->ns.len = (int)xlen;
+ if (len < (size_t)buf->ns.len)
+@@ -337,10 +337,10 @@
+ #if defined(USE_WOLFSSL)
+ return 1;
+ #else
+- dp = (const unsigned char *)val->data;
++ dp = ASN1_STRING_get0_data(val);
+
+ if (ASN1_get_object(&dp, &xlen,
+- &tag, &xclass, val->length) & 0x80)
++ &tag, &xclass, ASN1_STRING_length(val)) & 0x80)
+ return -1;
+
+ if (tag != V_ASN1_OCTET_STRING) {
diff --git a/libwebsockets.spec b/libwebsockets.spec
index d52d89a..94fd703 100644
--- a/libwebsockets.spec
+++ b/libwebsockets.spec
@@ -17,6 +17,7 @@ Summary: Lightweight C library for Websockets
License: LicenseRef-Callaway-LGPLv2 AND LicenseRef-Callaway-Public-Domain AND LicenseRef-Callaway-BSD AND LicenseRef-Callaway-MIT AND Zlib
URL: http://libwebsockets.org
Source0: https://github.com/warmcat/libwebsockets/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch0: libwebsockets-openssl4.patch
BuildRequires: cmake
BuildRequires: gcc-g++
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-12 19:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-12 19:43 [rpms/libwebsockets] rawhide: Migrated to OpenSSL 4.0: use ASN1_STRING accessors instead of direct struct access Dmitry Belyavskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox