Commit 9b30bc4
tls: fix getEphemeralKeyInfo to support X25519
`EVP_PKEY_EC` only covers ANSI X9.62 curves not IETF ones(curve25519
and curve448). This fixes to add support of X25519 in
`tlsSocket.getEphemeralKeyInfo()`.
X448 should be added in the future upgrade to OpenSSL-1.1.1.
PR-URL: #20273
Fixes: #20262
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>1 parent e45e5b8 commit 9b30bc4Copy full SHA for 9b30bc4
File tree
Expand file treeCollapse file tree
3 files changed
+25
-7
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
3 files changed
+25
-7
lines changedOpen diff view settings
Collapse file
+16-5Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2096 | 2096 | |
2097 | 2097 | |
2098 | 2098 | |
2099 | | - |
| 2099 | + |
| 2100 | + |
2100 | 2101 | |
2101 | 2102 | |
2102 | 2103 | |
2103 | 2104 | |
2104 | 2105 | |
2105 | 2106 | |
2106 | 2107 | |
| 2108 | + |
| 2109 | + |
| 2110 | + |
2107 | 2111 | |
2108 | | - |
2109 | | - |
2110 | | - |
| 2112 | + |
| 2113 | + |
| 2114 | + |
| 2115 | + |
| 2116 | + |
| 2117 | + |
| 2118 | + |
| 2119 | + |
| 2120 | + |
2111 | 2121 | |
2112 | 2122 | |
2113 | 2123 | |
2114 | 2124 | |
2115 | | - |
| 2125 | + |
2116 | 2126 | |
2117 | 2127 | |
2118 | 2128 | |
2119 | 2129 | |
| 2130 | + |
2120 | 2131 | |
2121 | 2132 | |
2122 | 2133 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
| 47 | + |
| 48 | + |
47 | 49 | |
48 | 50 | |
49 | 51 | |
|
Collapse file
test/parallel/test-tls-client-getephemeralkeyinfo.js
Copy file name to clipboardExpand all lines: test/parallel/test-tls-client-getephemeralkeyinfo.js+7-2Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
82 | 82 | |
83 | 83 | |
84 | 84 | |
85 | | - |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
86 | 91 | |
87 | 92 | |
88 | 93 | |
89 | 94 | |
90 | 95 | |
91 | 96 | |
92 | 97 | |
93 | | - |
| 98 | + |
94 | 99 | |
0 commit comments