Commit 60c6cb1
Adapt Envoy source code for OpenSSL compatibility
This commit modifies Envoy's C++ source code to work with OpenSSL through
the bssl-compat layer, handling differences in SSL/TLS implementations.
TLS/SSL changes:
- Handle OpenSSL opaque structures (use EVP functions instead of direct access)
- Add RTLD_DEEPBIND flag when loading OpenSSL shared libraries
- Fix alert code and error code mappings between BoringSSL and OpenSSL
- Adjust default TLS versions, ciphers, and curves for FIPS compatibility
- Add EAGAIN handling in SslSocket::doRead/doWrite methods
- Fix BIO initialization and error handling
Context and configuration:
- Set TLSv1.3 as max version for FIPS mode
- Implement SSL_CTX_set_compliance_policy for certificate validation
- Remove calls to unimplemented BoringSSL-specific functions
- Adjust certificate verification callbacks for OpenSSL
Test adaptations:
- Update expected fingerprints and byte counts to match OpenSSL
- Fix test values for TLS inspector, JA4 fingerprinting
- Adjust SSL version tests for OpenSSL defaults
- Disable async certificate validation tests (not supported with OpenSSL)
- Disable some QUIC tests (QUIC not supported in OpenSSL build)
- Fix hot restart tests for OpenSSL version string
Version reporting:
- Report "OpenSSL" instead of "BoringSSL" in version string
Build fixes:
- Comment out QUIC code compilation where needed
- Add -latomic linker flag for clang
- Fix maxmind and luajit2 builds for s390x/ppc64le
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Jonh Wendell <jwendell@redhat.com>1 parent b86721d commit 60c6cb1
41 files changed
Lines changed: 406 additions & 221 deletions
File tree
- source
- common
- quic
- runtime
- tls
- cert_validator
- ocsp
- version
- extensions
- filters
- common/lua
- listener/tls_inspector
- geoip_providers/maxmind
- test
- common
- network
- quic
- platform
- stream_info
- tls
- integration
- extensions
- access_loggers/grpc
- filters/listener/tls_inspector
- quic
- connection_id_generator/quic_lb
- proof_source
- integration
- filters
- python
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
107 | 102 | | |
108 | 103 | | |
109 | 104 | | |
| |||
603 | 598 | | |
604 | 599 | | |
605 | 600 | | |
606 | | - | |
607 | | - | |
608 | | - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
609 | 605 | | |
610 | 606 | | |
611 | | - | |
| 607 | + | |
612 | 608 | | |
613 | 609 | | |
614 | 610 | | |
| |||
704 | 700 | | |
705 | 701 | | |
706 | 702 | | |
707 | | - | |
708 | | - | |
| 703 | + | |
| 704 | + | |
709 | 705 | | |
710 | | - | |
| 706 | + | |
711 | 707 | | |
712 | 708 | | |
713 | 709 | | |
714 | 710 | | |
715 | | - | |
| 711 | + | |
716 | 712 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
146 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
147 | 153 | | |
148 | 154 | | |
149 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
159 | 160 | | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
381 | | - | |
382 | | - | |
| 383 | + | |
| 384 | + | |
383 | 385 | | |
384 | 386 | | |
385 | 387 | | |
| |||
389 | 391 | | |
390 | 392 | | |
391 | 393 | | |
392 | | - | |
393 | | - | |
| 394 | + | |
| 395 | + | |
394 | 396 | | |
395 | | - | |
| 397 | + | |
| 398 | + | |
396 | 399 | | |
397 | 400 | | |
398 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
86 | 99 | | |
87 | 100 | | |
88 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
185 | 186 | | |
| 187 | + | |
186 | 188 | | |
187 | 189 | | |
188 | 190 | | |
| |||
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
| 329 | + | |
327 | 330 | | |
328 | 331 | | |
329 | 332 | | |
| |||
333 | 336 | | |
334 | 337 | | |
335 | 338 | | |
| 339 | + | |
336 | 340 | | |
337 | 341 | | |
338 | 342 | | |
| |||
362 | 366 | | |
363 | 367 | | |
364 | 368 | | |
| 369 | + | |
365 | 370 | | |
366 | 371 | | |
367 | 372 | | |
| |||
561 | 566 | | |
562 | 567 | | |
563 | 568 | | |
| 569 | + | |
564 | 570 | | |
565 | 571 | | |
566 | 572 | | |
| 573 | + | |
567 | 574 | | |
568 | 575 | | |
569 | 576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
21 | 45 | | |
22 | 46 | | |
23 | 47 | | |
| |||
61 | 85 | | |
62 | 86 | | |
63 | 87 | | |
64 | | - | |
| 88 | + | |
65 | 89 | | |
66 | 90 | | |
67 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
68 | 104 | | |
69 | 105 | | |
70 | 106 | | |
| |||
75 | 111 | | |
76 | 112 | | |
77 | 113 | | |
| 114 | + | |
78 | 115 | | |
79 | 116 | | |
80 | 117 | | |
| |||
83 | 120 | | |
84 | 121 | | |
85 | 122 | | |
| 123 | + | |
| 124 | + | |
86 | 125 | | |
87 | 126 | | |
88 | 127 | | |
| |||
99 | 138 | | |
100 | 139 | | |
101 | 140 | | |
| 141 | + | |
102 | 142 | | |
103 | 143 | | |
104 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 91 | + | |
| 92 | + | |
94 | 93 | | |
95 | | - | |
96 | | - | |
| 94 | + | |
97 | 95 | | |
98 | 96 | | |
99 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
93 | | - | |
94 | | - | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
104 | | - | |
105 | | - | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | | - | |
| 110 | + | |
| 111 | + | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| |||
0 commit comments