Commit aefb20a
tls: copy client CAs and cert store on CertCb
Copy client CA certs and cert store when asynchronously selecting
`SecureContext` during `SNICallback`. We already copy private key,
certificate, and certificate chain, but the client CA certs were
missing.
Fix: #2772
PR-URL: #3537
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent 607f545 commit aefb20aCopy full SHA for aefb20a
File tree
Expand file treeCollapse file tree
4 files changed
+56
-11
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
4 files changed
+56
-11
lines changedOpen diff view settings
Collapse file
+29-2Lines changed: 29 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
129 | 129 | |
130 | 130 | |
131 | 131 | |
| 132 | + |
| 133 | + |
132 | 134 | |
133 | 135 | |
134 | 136 | |
| ||
2165 | 2167 | |
2166 | 2168 | |
2167 | 2169 | |
| 2170 | + |
| 2171 | + |
2168 | 2172 | |
2169 | 2173 | |
2170 | 2174 | |
| ||
2215 | 2219 | |
2216 | 2220 | |
2217 | 2221 | |
| 2222 | + |
| 2223 | + |
| 2224 | + |
| 2225 | + |
| 2226 | + |
| 2227 | + |
| 2228 | + |
| 2229 | + |
| 2230 | + |
| 2231 | + |
| 2232 | + |
| 2233 | + |
| 2234 | + |
| 2235 | + |
| 2236 | + |
| 2237 | + |
| 2238 | + |
| 2239 | + |
| 2240 | + |
| 2241 | + |
| 2242 | + |
| 2243 | + |
| 2244 | + |
| 2245 | + |
2218 | 2246 | |
2219 | 2247 | |
2220 | 2248 | |
| ||
2528 | 2556 | |
2529 | 2557 | |
2530 | 2558 | |
2531 | | - |
2532 | | - |
| 2559 | + |
2533 | 2560 | |
2534 | 2561 | |
2535 | 2562 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
279 | 279 | |
280 | 280 | |
281 | 281 | |
| 282 | + |
| 283 | + |
282 | 284 | |
283 | 285 | |
284 | 286 | |
|
Collapse file
+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
867 | 867 | |
868 | 868 | |
869 | 869 | |
870 | | - |
871 | | - |
| 870 | + |
872 | 871 | |
873 | 872 | |
874 | 873 | |
|
Collapse file
test/parallel/test-tls-sni-option.js
Copy file name to clipboardExpand all lines: test/parallel/test-tls-sni-option.js+24-7Lines changed: 24 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
| 29 | + |
| 30 | + |
29 | 31 | |
30 | 32 | |
31 | 33 | |
| ||
46 | 48 | |
47 | 49 | |
48 | 50 | |
49 | | - |
| 51 | + |
| 52 | + |
50 | 53 | |
51 | 54 | |
52 | 55 | |
| ||
66 | 69 | |
67 | 70 | |
68 | 71 | |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
69 | 79 | |
70 | 80 | |
71 | 81 | |
| ||
97 | 107 | |
98 | 108 | |
99 | 109 | |
100 | | - |
| 110 | + |
101 | 111 | |
102 | 112 | |
103 | 113 | |
| ||
144 | 154 | |
145 | 155 | |
146 | 156 | |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
152 | 169 | |
0 commit comments