Commit cafb20b
committed
openssl: make compatible with libressl
LibreSSL uses a mostly OpenSSL 1.0.1 compatible API, with the
alarmingly notable exception of the version API. When the library is
loaded on macOS with LibreSSL the verison check introduced in #42 the
gem was incompatible with LibreSSL.
This change may not be ideally forward-compatible if APIs change and
may need a new strategy eventually, but is not noticeably weaker than
the version based strategy. It is notably functional on both macOS
with LibreSSL 2.8.3, as well as remaining compatible with OpenSSL
1.1.1f on Ubuntu.1 parent 9f391d6 commit cafb20b
2 files changed
+5
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 25 | | |
29 | 26 | | |
30 | 27 | | |
| |||
52 | 49 | | |
53 | 50 | | |
54 | 51 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 52 | + | |
67 | 53 | | |
68 | 54 | | |
69 | | - | |
| 55 | + | |
70 | 56 | | |
71 | 57 | | |
72 | 58 | | |
| |||
391 | 377 | | |
392 | 378 | | |
393 | 379 | | |
394 | | - | |
| 380 | + | |
395 | 381 | | |
396 | 382 | | |
397 | 383 | | |
| |||
0 commit comments