This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
The following commit(s) were added to refs/heads/main by this push:
new ec142c065 Fix build failures with OpenSSL 4.0.x
ec142c065 is described below
commit ec142c065a2320e10214588a124c27ae74dd9145
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Mar 4 17:44:55 2026 +0000
Fix build failures with OpenSSL 4.0.x
---
native/src/sslutils.c | 4 ++--
xdocs/miscellaneous/changelog.xml | 6 ++++++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/native/src/sslutils.c b/native/src/sslutils.c
index 741f09035..a74659492 100644
--- a/native/src/sslutils.c
+++ b/native/src/sslutils.c
@@ -696,8 +696,8 @@ static char **decode_OCSP_url(ASN1_OCTET_STRING *os,
apr_pool_t *p)
len = ASN1_STRING_length(os);
- ocsp_urls = apr_palloc(p, len + 1);
- memcpy(ocsp_urls,os->data, len);
+ ocsp_urls = apr_palloc(p, len + 1);
+ memcpy(ocsp_urls, ASN1_STRING_get0_data(os), len);
ocsp_urls[len] = '\0';
if ((response = apr_pcalloc(p, sizeof(char *))) == NULL) {
diff --git a/xdocs/miscellaneous/changelog.xml
b/xdocs/miscellaneous/changelog.xml
index 8c768ff01..3e5b78de7 100644
--- a/xdocs/miscellaneous/changelog.xml
+++ b/xdocs/miscellaneous/changelog.xml
@@ -32,6 +32,12 @@
</p>
</section>
<section name="2.0.14" rtext="in development">
+ <changelog>
+ <scode>
+ Refactor access to ASN1_OCTET_STRING to use setters to fix errors when
+ building against the latest OpenSSL 4.0.x code. (markt)
+ </scode>
+ </changelog>
</section>
<section name="2.0.13" rtext="2026-02-11">
<changelog>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]