Commit 60039a2
crypto: add api to get openssl security level
Distros may compile with a different openssl security level than the
default. In addition there has been some discussion with respect
to shipping with a different default security security level in
different Node.js versions in order to main stabilty. Exposing the
default openssl security level with let us have tests that work in
these situations as well as allow applications to better cope with
the avialable crypto algorithms.
- add API to get openssl security level
- modify one test to use security level instead
of openssl version as an example
Signed-off-by: Michael Dawson <midawson@redhat.com>
PR-URL: #56601
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>1 parent 50ebd5f commit 60039a2Copy full SHA for 60039a2
File tree
Expand file treeCollapse file tree
4 files changed
+59
-4
lines changedOpen diff view settings
Filter options
- lib/internal/crypto
- src/crypto
- test/parallel
Expand file treeCollapse file tree
4 files changed
+59
-4
lines changedOpen diff view settings
Collapse file
lib/internal/crypto/util.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/util.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
| 35 | + |
35 | 36 | |
36 | 37 | |
37 | 38 | |
| ||
631 | 632 | |
632 | 633 | |
633 | 634 | |
| 635 | + |
634 | 636 | |
Collapse file
+27Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
31 | 31 | |
32 | 32 | |
33 | 33 | |
| 34 | + |
| 35 | + |
34 | 36 | |
35 | 37 | |
36 | 38 | |
| ||
201 | 203 | |
202 | 204 | |
203 | 205 | |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
204 | 227 | |
205 | 228 | |
206 | 229 | |
| ||
699 | 722 | |
700 | 723 | |
701 | 724 | |
| 725 | + |
| 726 | + |
| 727 | + |
702 | 728 | |
703 | 729 | |
704 | 730 | |
| ||
710 | 736 | |
711 | 737 | |
712 | 738 | |
| 739 | + |
713 | 740 | |
714 | 741 | |
715 | 742 | |
|
Collapse file
test/parallel/test-crypto-sec-level.js
Copy file name to clipboard+18Lines changed: 18 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 | + |
Collapse file
test/parallel/test-tls-dhe.js
Copy file name to clipboardExpand all lines: test/parallel/test-tls-dhe.js+12-4Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
31 | 30 | |
32 | 31 | |
33 | 32 | |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
34 | 40 | |
35 | 41 | |
36 | 42 | |
| ||
50 | 56 | |
51 | 57 | |
52 | 58 | |
53 | | - |
| 59 | + |
54 | 60 | |
55 | 61 | |
56 | 62 | |
| ||
114 | 120 | |
115 | 121 | |
116 | 122 | |
117 | | - |
| 123 | + |
| 124 | + |
| 125 | + |
118 | 126 | |
119 | 127 | |
120 | 128 | |
|
0 commit comments