Commit b0cfac6
Undefine
This fixes a linkage error about `ossl_ssl_type` on platforms which do
not have socket, like WASI.
Even before this patch, some items are disabled under `OPENSSL_NO_SOCK` since
ruby/ruby@ee22fad
However, due to some new use of OpenSSL::SSL::Socket over the past few years,
the build under `OPENSSL_NO_SOCK` had been broken.
This patch guards whole `OpenSSL::SSL` items by `OPENSSL_NO_SOCK`.
[ky: adjusted to apply on top of my previous commit that removed the
OpenSSL::ExtConfig, and added a guard to lib/openssl/ssl.rb.]OpenSSL::SSL for no socket platforms1 parent eed3894 commit b0cfac6
3 files changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
1537 | 1538 | | |
1538 | 1539 | | |
1539 | 1540 | | |
1540 | | - | |
1541 | 1541 | | |
1542 | 1542 | | |
1543 | 1543 | | |
| |||
2565 | 2565 | | |
2566 | 2566 | | |
2567 | 2567 | | |
| 2568 | + | |
2568 | 2569 | | |
2569 | 2570 | | |
2570 | 2571 | | |
| |||
2939 | 2940 | | |
2940 | 2941 | | |
2941 | 2942 | | |
2942 | | - | |
2943 | | - | |
2944 | | - | |
2945 | 2943 | | |
2946 | 2944 | | |
2947 | 2945 | | |
| |||
2976 | 2974 | | |
2977 | 2975 | | |
2978 | 2976 | | |
2979 | | - | |
2980 | 2977 | | |
2981 | 2978 | | |
2982 | 2979 | | |
| |||
3138 | 3135 | | |
3139 | 3136 | | |
3140 | 3137 | | |
| 3138 | + | |
3141 | 3139 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
| 303 | + | |
302 | 304 | | |
303 | 305 | | |
304 | 306 | | |
| |||
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
| 312 | + | |
310 | 313 | | |
311 | 314 | | |
312 | 315 | | |
| |||
324 | 327 | | |
325 | 328 | | |
326 | 329 | | |
| 330 | + | |
327 | 331 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
540 | 543 | | |
541 | 544 | | |
542 | 545 | | |
| 546 | + | |
| 547 | + | |
0 commit comments