Commit e079d20
authored
Fix OCSP detection during build (#9754)
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 #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.1 parent 7226cba commit e079d20
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
286 | 294 | | |
287 | | - | |
288 | | - | |
| 295 | + | |
289 | 296 | | |
290 | 297 | | |
291 | 298 | | |
| |||
0 commit comments