This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 1.3.x
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
The following commit(s) were added to refs/heads/1.3.x by this push:
new cac190872 Fix build failures with OpenSSL 4.0.x
cac190872 is described below
commit cac190872139077d6c31efcfce3e1956acaf74ce
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 28ae84073..1b973a6df 100644
--- a/native/src/sslutils.c
+++ b/native/src/sslutils.c
@@ -717,8 +717,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 b17efe6bd..4cb49c270 100644
--- a/xdocs/miscellaneous/changelog.xml
+++ b/xdocs/miscellaneous/changelog.xml
@@ -32,6 +32,12 @@
</p>
</section>
<section name="1.3.7" rtext="in develoment">
+ <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="1.3.6" rtext="2026-02-11">
<changelog>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]