Skip to content

Fix OCSP detection during build (9.1.x)#9755

Closed
midchildan wants to merge 1 commit intoapache:9.1.xfrom
midchildan:build/fix-ocsp/9.1
Closed

Fix OCSP detection during build (9.1.x)#9755
midchildan wants to merge 1 commit intoapache:9.1.xfrom
midchildan:build/fix-ocsp/9.1

Conversation

@midchildan
Copy link
Copy Markdown
Contributor

Backport of #9754 targeting 9.1. Looking at downstream packages listed in Repology, it's mostly packages for 9.1 and 9.2 releases that seem to be affected by the problem.

https://repology.org/projects/?search=trafficserver

The configure script fails to detect OCSP support when building ATS with
OpenSSL 3.0.

This isn't a problem in the `master` branch, which copied OpenSSL's OCSP code
into ATS itself in apache#9624. However, this remains a problem on existing releases
and downstream packages seem to be affected by it. Here's a list of the few I
checked:

- Alpine
- Debian 12
- Fedora 37
- Homebrew
- Nixpkgs

This happens because OpenSSL 3.0 made changes to its APIs that affected how ATS
detects OCSP support. ATS checks the existence of a few functions, including
`OCSP_REQ_CTX_add1_header` and `OCSP_REQ_CTX_set1_req`, by attempting to link to
them using `AC_CHECK_FUNCS`. In OpenSSL 3.0, these functions were turned into
macros making them uneligible for detection with `AC_CHECK_FUNCS`.

This change fixes that problem by instead using `AC_LANG_PROGRAM` to check that
code using the aforementioned functions compile. This approach works for OpenSSL
both before and after 3.0.
@midchildan midchildan requested a review from bryancall as a code owner May 28, 2023 16:33
@midchildan midchildan changed the title Fix OCSP detection during build Fix OCSP detection during build (9.1.x) May 28, 2023
@bryancall bryancall added the TLS label Jun 2, 2023
@bryancall
Copy link
Copy Markdown
Contributor

We normally don't backport changes to branches that we no longer maintain or do releases on. Is it necessary to have this backported to this branch?

@midchildan
Copy link
Copy Markdown
Contributor Author

I wasn't familiar with the backport policies, so I created the PR based solely on Repology data. I'll close this PR if this is the case.

@midchildan midchildan closed this Jun 6, 2023
@midchildan midchildan deleted the build/fix-ocsp/9.1 branch June 6, 2023 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants