public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dmitry Belyavskiy <beldmit@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libwebsockets] rawhide: Migrated to OpenSSL 4.0: use ASN1_STRING accessors instead of direct struct access
Date: Fri, 12 Jun 2026 19:43:13 GMT [thread overview]
Message-ID: <178129339367.1.7467269292721155012.rpms-libwebsockets-71349c84f350@fedoraproject.org> (raw)
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++
reply other threads:[~2026-06-12 19:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178129339367.1.7467269292721155012.rpms-libwebsockets-71349c84f350@fedoraproject.org \
--to=beldmit@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox