Commit 3009980
crypto: add crypto::GetSSLCtx API for addon access to OpenSSL contexts
This intended to replace usage of the unsupported _external field,
offering an official API for native addons to access OpenSSL directly
while reducing the JS API and internal field exposure.
PR-URL: #62254
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent f5725ca commit 3009980Copy full SHA for 3009980
6 files changed
+172Lines changed: 172 additions & 0 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src
- crypto
- test/addons
- openssl-get-ssl-ctx
Expand file treeCollapse file tree
Open diff view settings
Collapse file
src/crypto/crypto_context.cc
Copy file name to clipboardExpand all lines: src/crypto/crypto_context.cc+25Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2443 | 2443 | |
2444 | 2444 | |
2445 | 2445 | |
| 2446 | + |
| 2447 | + |
| 2448 | + |
| 2449 | + |
| 2450 | + |
| 2451 | + |
| 2452 | + |
| 2453 | + |
| 2454 | + |
| 2455 | + |
| 2456 | + |
| 2457 | + |
| 2458 | + |
| 2459 | + |
| 2460 | + |
| 2461 | + |
| 2462 | + |
| 2463 | + |
| 2464 | + |
| 2465 | + |
| 2466 | + |
| 2467 | + |
| 2468 | + |
| 2469 | + |
| 2470 | + |
2446 | 2471 | |
2447 | 2472 | |
Collapse file
+16Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
124 | 124 | |
125 | 125 | |
126 | 126 | |
| 127 | + |
| 128 | + |
127 | 129 | |
128 | 130 | |
129 | 131 | |
| ||
1656 | 1658 | |
1657 | 1659 | |
1658 | 1660 | |
| 1661 | + |
| 1662 | + |
| 1663 | + |
| 1664 | + |
| 1665 | + |
| 1666 | + |
| 1667 | + |
| 1668 | + |
| 1669 | + |
| 1670 | + |
| 1671 | + |
| 1672 | + |
| 1673 | + |
| 1674 | + |
1659 | 1675 | |
1660 | 1676 | |
1661 | 1677 | |
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
| 15 | + |
15 | 16 | |
16 | 17 | |
17 | 18 | |
|
Collapse file
test/addons/openssl-get-ssl-ctx/binding.cc
Copy file name to clipboard+52Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 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 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
Collapse file
test/addons/openssl-get-ssl-ctx/binding.gyp
Copy file name to clipboard+29Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
Collapse file
test/addons/openssl-get-ssl-ctx/test.js
Copy file name to clipboard+49Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 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 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
0 commit comments