Commit 33cb77a
authored
cmake: limit GENERAL_NAME bssl probe (#13008)
CMake can report HAVE_GENERAL_NAME_IN_BSSL_NAMESPACE on plain
OpenSSL builds. In a build, the probe succeeded with
OpenSSL 3.x even though SSLLIB_IS_BORINGSSL and SSLLIB_IS_AWSLC were
both false. That made OCSP stapling in src/iocore/net/OCSPStapling.cc
take the bssl::GENERAL_NAME path, and the final traffic_server link
failed with an undefined reference to bssl::GENERAL_NAME_it().
The probe is not safe to run for non-BoringSSL libraries. OpenSSL 3.x
headers allow bssl::GENERAL_NAME_it() to be declared syntactically, but
libcrypto only exports the global GENERAL_NAME_it symbol, so a
compile-only try_compile can false-positive.
Only run the probe for BoringSSL-family builds and force the cache
entry off for plain OpenSSL builds.1 parent 3e5eff6 commit 33cb77a
1 file changed
Lines changed: 22 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
609 | 618 | | |
610 | 619 | | |
611 | 620 | | |
| |||
0 commit comments