Commit 51ad965
Merge #182
182: Initial changes for async support r=jethrogb a=AdrianCX
Splitting #163 into separate parts.
Also rebased since `@raoulstrackx` already helped with some pieces of the PR above.
Code does the following:
- Minor update to comments on Pk (revisited the latest code to check if any issues, none found)
- verify with sig len 0 makes mbedtls assume default siglen and potentially overflow instead of stopping.
- EntropyHolder can have different sources, either shared or not (request from another older PR)
- Ported ALPN changes from `@mzohreva` branch - NullTerminatedList
- Split off HandshakeContext and made it a sort of base class to Context so we can use it safely. (lots of ideas from `@jethrogb` here)
- Made Context < T > as opposed to using Any, makes life easier for async and a lot of other use cases.
Co-authored-by: Adrian Cruceru <adrian.cruceru@fortanix.com>File tree
5 files changed
+250
-94
lines changed- mbedtls
- src
- pk
- rng
- ssl
- tests
5 files changed
+250
-94
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
835 | 840 | | |
836 | 841 | | |
837 | 842 | | |
| |||
868 | 873 | | |
869 | 874 | | |
870 | 875 | | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
871 | 881 | | |
872 | 882 | | |
873 | 883 | | |
| |||
913 | 923 | | |
914 | 924 | | |
915 | 925 | | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
916 | 931 | | |
917 | 932 | | |
918 | 933 | | |
| |||
1274 | 1289 | | |
1275 | 1290 | | |
1276 | 1291 | | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
1277 | 1304 | | |
1278 | 1305 | | |
1279 | 1306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
| |||
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
33 | | - | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
66 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
67 | 91 | | |
| 92 | + | |
68 | 93 | | |
69 | 94 | | |
70 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
103 | 143 | | |
104 | 144 | | |
105 | 145 | | |
| |||
116 | 156 | | |
117 | 157 | | |
118 | 158 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 159 | + | |
122 | 160 | | |
123 | 161 | | |
124 | 162 | | |
| |||
154 | 192 | | |
155 | 193 | | |
156 | 194 | | |
157 | | - | |
| 195 | + | |
158 | 196 | | |
159 | 197 | | |
160 | 198 | | |
| |||
184 | 222 | | |
185 | 223 | | |
186 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
187 | 237 | | |
188 | 238 | | |
189 | 239 | | |
| |||
232 | 282 | | |
233 | 283 | | |
234 | 284 | | |
235 | | - | |
| 285 | + | |
236 | 286 | | |
| 287 | + | |
237 | 288 | | |
238 | 289 | | |
239 | 290 | | |
240 | 291 | | |
241 | | - | |
242 | 292 | | |
243 | 293 | | |
244 | 294 | | |
| |||
316 | 366 | | |
317 | 367 | | |
318 | 368 | | |
319 | | - | |
320 | | - | |
321 | | - | |
| 369 | + | |
322 | 370 | | |
323 | 371 | | |
324 | | - | |
| 372 | + | |
325 | 373 | | |
326 | 374 | | |
327 | 375 | | |
| |||
0 commit comments