You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by hs...@apache.org on 2023/07/06 10:43:19 UTC
[incubator-teaclave-crates] branch main updated: Add tonic 0.9.2 and rustls 0.21.2
This is an automated email from the ASF dual-hosted git repository.
hsun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-crates.git
The following commit(s) were added to refs/heads/main by this push:
new 9ca099c Add tonic 0.9.2 and rustls 0.21.2
9ca099c is described below
commit 9ca099caa1508c3b7ab1a54899f390f9232f10ff
Author: GeminiCarrie <sp...@163.com>
AuthorDate: Thu Jul 6 15:44:00 2023 +0800
Add tonic 0.9.2 and rustls 0.21.2
---
README.md | 2 +
rustls-0.21.2/.github/codecov.yml | 8 +
rustls-0.21.2/.github/dependabot.yml | 11 +
rustls-0.21.2/.github/workflows/build.yml | 267 ++
rustls-0.21.2/.github/workflows/cifuzz.yml | 26 +
rustls-0.21.2/.github/workflows/connect-tests.yml | 46 +
rustls-0.21.2/.gitignore | 13 +
rustls-0.21.2/.rustfmt.toml | 1 +
rustls-0.21.2/CODE_OF_CONDUCT.md | 5 +
rustls-0.21.2/CONTRIBUTING.md | 56 +
rustls-0.21.2/Cargo.toml | 9 +
rustls-0.21.2/LICENSE | 10 +
rustls-0.21.2/LICENSE-APACHE | 201 +
rustls-0.21.2/LICENSE-ISC | 15 +
rustls-0.21.2/LICENSE-MIT | 25 +
rustls-0.21.2/README.md | 297 ++
rustls-0.21.2/RELEASE_NOTES.md | 279 ++
rustls-0.21.2/RELEASING.md | 36 +
rustls-0.21.2/SECURITY.md | 18 +
rustls-0.21.2/admin/bench-measure.mk | 44 +
rustls-0.21.2/admin/bench-range | 20 +
rustls-0.21.2/admin/capture-certdata | 62 +
rustls-0.21.2/admin/coverage | 10 +
rustls-0.21.2/admin/pull-readme | 12 +
rustls-0.21.2/admin/pull-usage | 17 +
rustls-0.21.2/admin/rustls-logo-web.png | Bin 0 -> 85971 bytes
rustls-0.21.2/audit/TLS-01-report.pdf | Bin 0 -> 192473 bytes
rustls-0.21.2/bogo/.gitignore | 3 +
rustls-0.21.2/bogo/README.md | 47 +
rustls-0.21.2/bogo/check.py | 47 +
rustls-0.21.2/bogo/config.json | 403 ++
rustls-0.21.2/bogo/fetch-and-build | 23 +
rustls-0.21.2/bogo/keys/cert.pem | 17 +
rustls-0.21.2/bogo/keys/ecdsa_p256_cert.pem | 9 +
rustls-0.21.2/bogo/keys/ecdsa_p256_key.pem | 5 +
rustls-0.21.2/bogo/keys/ecdsa_p384_cert.pem | 10 +
rustls-0.21.2/bogo/keys/ecdsa_p384_key.pem | 6 +
rustls-0.21.2/bogo/keys/key.pem | 28 +
rustls-0.21.2/bogo/keys/rsa_1024_cert.pem | 12 +
rustls-0.21.2/bogo/keys/rsa_1024_key.pem | 16 +
rustls-0.21.2/bogo/keys/rsa_chain_cert.pem | 38 +
rustls-0.21.2/bogo/keys/rsa_chain_key.pem | 28 +
rustls-0.21.2/bogo/regen-certs | 122 +
rustls-0.21.2/bogo/runme | 26 +
rustls-0.21.2/connect-tests/Cargo.toml | 23 +
rustls-0.21.2/connect-tests/tests/badssl.rs | 137 +
rustls-0.21.2/connect-tests/tests/common/mod.rs | 355 ++
rustls-0.21.2/connect-tests/tests/topsites.rs | 83 +
rustls-0.21.2/examples/Cargo.toml | 28 +
rustls-0.21.2/examples/src/bin/limitedclient.rs | 62 +
.../examples/src/bin/simple_0rtt_client.rs | 83 +
rustls-0.21.2/examples/src/bin/simpleclient.rs | 64 +
rustls-0.21.2/examples/src/bin/tlsclient-mio.rs | 511 +++
rustls-0.21.2/examples/src/bin/tlsserver-mio.rs | 673 +++
rustls-0.21.2/fuzz/.gitignore | 3 +
rustls-0.21.2/fuzz/Cargo.toml | 46 +
rustls-0.21.2/fuzz/README.md | 26 +
rustls-0.21.2/fuzz/corpus/client/tls12-server.bin | Bin 0 -> 6077 bytes
rustls-0.21.2/fuzz/corpus/client/tls13-server.bin | Bin 0 -> 4696 bytes
.../corpus/message/Alert.10280050250016901720.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.10990289312340337901.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.11416797448165465899.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.11453208220996012273.bin | Bin 0 -> 13 bytes
.../corpus/message/Alert.11565037296979808272.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.11760376156357150936.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.12245208494696599323.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.12355157071787079801.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.12375939412686290950.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.12378204967172258450.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.12615425949843913652.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.12786326721221384799.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.13339784566695133300.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.13361831451407093096.bin | Bin 0 -> 7 bytes
.../corpus/message/Alert.13518407338280213965.bin | Bin 0 -> 7 bytes
.../corpus/message/Alert.13944372952187732560.bin | Bin 0 -> 7 bytes
.../corpus/message/Alert.14329079313034565007.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.14763597747152221220.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.15529719457323058694.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.16757745138222651512.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.17041130500670955403.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.17076052668804544911.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.17808584441538747011.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.1926005331368283096.bin | Bin 0 -> 23 bytes
.../corpus/message/Alert.2519011641324364265.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.3043772687617154178.bin | Bin 0 -> 23 bytes
.../corpus/message/Alert.3312711214589330727.bin | Bin 0 -> 23 bytes
.../corpus/message/Alert.3846875027962666933.bin | Bin 0 -> 7 bytes
.../corpus/message/Alert.3913777692829914411.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.4452180125344520836.bin | Bin 0 -> 23 bytes
.../corpus/message/Alert.4742310320599043602.bin | Bin 0 -> 7 bytes
.../corpus/message/Alert.5389179157252855041.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.5456718882703404602.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.6121018813528470199.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.6263407189670520235.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.7573777073329161362.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.7765214894001215959.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.8003974926653128830.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.8040902803342244309.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.9395714526513626176.bin | Bin 0 -> 31 bytes
.../corpus/message/Alert.9705133744397563296.bin | Bin 0 -> 31 bytes
.../ApplicationData.1679947195649814466.bin | 34 +
.../ApplicationData.9982215765603175582.bin | 60 +
.../ChangeCipherSpec.5130871619167228381.bin | Bin 0 -> 6 bytes
.../message/Handshake.10011143024461322467.bin | Bin 0 -> 269 bytes
.../message/Handshake.10077665702210867505.bin | Bin 0 -> 176 bytes
.../message/Handshake.10098879893470023836.bin | Bin 0 -> 98 bytes
.../message/Handshake.1014094126958255749.bin | Bin 0 -> 45 bytes
.../message/Handshake.10141290723738510057.bin | Bin 0 -> 195 bytes
.../message/Handshake.10141834381331746219.bin | Bin 0 -> 41 bytes
.../message/Handshake.10209460977184754837.bin | Bin 0 -> 16389 bytes
.../message/Handshake.10218605480040858007.bin | Bin 0 -> 70 bytes
.../message/Handshake.10240025107753113811.bin | Bin 0 -> 3717 bytes
.../message/Handshake.10371497117445277776.bin | Bin 0 -> 66 bytes
.../message/Handshake.10371726514864811512.bin | Bin 0 -> 208 bytes
.../message/Handshake.10404861134591260329.bin | Bin 0 -> 42 bytes
.../message/Handshake.10435794347579708741.bin | Bin 0 -> 21 bytes
.../message/Handshake.10446208266497761172.bin | Bin 0 -> 195 bytes
.../message/Handshake.10456857047407384689.bin | Bin 0 -> 45 bytes
.../message/Handshake.10458215951434834175.bin | Bin 0 -> 42 bytes
.../message/Handshake.10552517710869239241.bin | Bin 0 -> 41 bytes
.../message/Handshake.10558811065537550384.bin | Bin 0 -> 195 bytes
.../message/Handshake.10613091849924479756.bin | Bin 0 -> 41 bytes
.../message/Handshake.10659216864320865342.bin | Bin 0 -> 98 bytes
.../message/Handshake.10681270166105325453.bin | Bin 0 -> 87 bytes
.../message/Handshake.10688022178565531040.bin | Bin 0 -> 42 bytes
.../message/Handshake.10698695949247460925.bin | Bin 0 -> 21 bytes
.../message/Handshake.10742438438534962209.bin | Bin 0 -> 305 bytes
.../message/Handshake.10874002327852371828.bin | Bin 0 -> 16 bytes
.../message/Handshake.10883949373270779757.bin | Bin 0 -> 333 bytes
.../message/Handshake.10916777788113490974.bin | Bin 0 -> 21 bytes
.../message/Handshake.11036929536862183793.bin | Bin 0 -> 45 bytes
.../message/Handshake.11133859442970323138.bin | Bin 0 -> 13 bytes
.../message/Handshake.11200934711857544531.bin | Bin 0 -> 338 bytes
.../message/Handshake.11252751319713410600.bin | Bin 0 -> 21 bytes
.../message/Handshake.11262390920595632125.bin | Bin 0 -> 98 bytes
.../message/Handshake.11263729003567826431.bin | Bin 0 -> 305 bytes
.../message/Handshake.1128253234623654886.bin | Bin 0 -> 2555 bytes
.../message/Handshake.11311319071620970474.bin | Bin 0 -> 37 bytes
.../message/Handshake.11402577742008484913.bin | Bin 0 -> 41 bytes
.../message/Handshake.11420916514041666430.bin | Bin 0 -> 16389 bytes
.../message/Handshake.11436898661660187192.bin | Bin 0 -> 94 bytes
.../message/Handshake.11476587042910458435.bin | Bin 0 -> 338 bytes
.../message/Handshake.11577081787284137323.bin | Bin 0 -> 45 bytes
.../message/Handshake.11599548177419428055.bin | Bin 0 -> 195 bytes
.../message/Handshake.11729926090369047740.bin | Bin 0 -> 21 bytes
.../message/Handshake.11734105735310423560.bin | Bin 0 -> 4328 bytes
.../message/Handshake.11768011845890387011.bin | Bin 0 -> 207 bytes
.../message/Handshake.11797635867773909803.bin | Bin 0 -> 3784 bytes
.../message/Handshake.11831695944078976098.bin | Bin 0 -> 1046 bytes
.../message/Handshake.11864301203407148532.bin | Bin 0 -> 3133 bytes
.../message/Handshake.11897948021151086611.bin | Bin 0 -> 214 bytes
.../message/Handshake.1189983604093770200.bin | Bin 0 -> 191 bytes
.../message/Handshake.11899913542638122182.bin | Bin 0 -> 70 bytes
.../message/Handshake.1201340471094163820.bin | Bin 0 -> 45 bytes
.../message/Handshake.12049357286072587683.bin | Bin 0 -> 269 bytes
.../message/Handshake.12050074869185469294.bin | Bin 0 -> 269 bytes
.../message/Handshake.12095880389901769183.bin | Bin 0 -> 4451 bytes
.../message/Handshake.12097987555572946602.bin | Bin 0 -> 21 bytes
.../message/Handshake.12108739684593654595.bin | Bin 0 -> 305 bytes
.../message/Handshake.1210891782701783637.bin | Bin 0 -> 84 bytes
.../message/Handshake.12229778010996579180.bin | Bin 0 -> 86 bytes
.../message/Handshake.12272542168539556446.bin | Bin 0 -> 21 bytes
.../message/Handshake.12324399657563551716.bin | Bin 0 -> 21 bytes
.../message/Handshake.12419794187727158761.bin | Bin 0 -> 207 bytes
.../message/Handshake.12461674601026577652.bin | Bin 0 -> 87 bytes
.../message/Handshake.12542921702091737503.bin | Bin 0 -> 41 bytes
.../message/Handshake.12575443973166284515.bin | Bin 0 -> 70 bytes
.../message/Handshake.12619619622709153468.bin | Bin 0 -> 290 bytes
.../message/Handshake.12713618516910133238.bin | Bin 0 -> 3553 bytes
.../message/Handshake.12791027514067409694.bin | Bin 0 -> 16389 bytes
.../message/Handshake.12821925002150674327.bin | Bin 0 -> 21 bytes
.../message/Handshake.12866691055333988812.bin | Bin 0 -> 21 bytes
.../message/Handshake.12881350425646542526.bin | Bin 0 -> 21 bytes
.../message/Handshake.12906714218699487516.bin | Bin 0 -> 195 bytes
.../message/Handshake.12923847857105388415.bin | Bin 0 -> 45 bytes
.../message/Handshake.12933585682510177240.bin | Bin 0 -> 176 bytes
.../message/Handshake.12933927063134556696.bin | Bin 0 -> 338 bytes
.../message/Handshake.12962951870000222901.bin | Bin 0 -> 98 bytes
.../message/Handshake.12987742379477651587.bin | Bin 0 -> 195 bytes
.../message/Handshake.12992305617680129286.bin | Bin 0 -> 42 bytes
.../message/Handshake.13032428774562074898.bin | Bin 0 -> 45 bytes
.../message/Handshake.1309579295029779311.bin | Bin 0 -> 45 bytes
.../message/Handshake.13135207830642795575.bin | Bin 0 -> 208 bytes
.../message/Handshake.13146595373118622951.bin | Bin 0 -> 338 bytes
.../message/Handshake.13208116316761918660.bin | Bin 0 -> 195 bytes
.../message/Handshake.13252009950983403856.bin | Bin 0 -> 37 bytes
.../message/Handshake.13254954579228851613.bin | Bin 0 -> 290 bytes
.../message/Handshake.13276329037903871174.bin | Bin 0 -> 21 bytes
.../message/Handshake.13373545972366589631.bin | Bin 0 -> 70 bytes
.../message/Handshake.13401359172328241694.bin | Bin 0 -> 21 bytes
.../message/Handshake.13422631897482703892.bin | Bin 0 -> 195 bytes
.../message/Handshake.13448396166617358694.bin | Bin 0 -> 41 bytes
.../message/Handshake.13462900989360483027.bin | Bin 0 -> 195 bytes
.../message/Handshake.13490041212957887113.bin | Bin 0 -> 41 bytes
.../message/Handshake.13508856728571080946.bin | Bin 0 -> 191 bytes
.../message/Handshake.13527476206349948098.bin | Bin 0 -> 45 bytes
.../message/Handshake.13553527446655009046.bin | Bin 0 -> 269 bytes
.../message/Handshake.13567655794415259226.bin | Bin 0 -> 338 bytes
.../message/Handshake.13572499048018428911.bin | Bin 0 -> 41 bytes
.../message/Handshake.13584197101871325906.bin | Bin 0 -> 45 bytes
.../message/Handshake.13648713539106128587.bin | Bin 0 -> 37 bytes
.../message/Handshake.1365796585825694264.bin | Bin 0 -> 7 bytes
.../message/Handshake.13790749913165199198.bin | Bin 0 -> 21 bytes
.../message/Handshake.13814068595971935296.bin | Bin 0 -> 37 bytes
.../message/Handshake.13884570758846245053.bin | Bin 0 -> 41 bytes
.../message/Handshake.1394349569218781788.bin | Bin 0 -> 305 bytes
.../message/Handshake.13984063482272562700.bin | Bin 0 -> 16389 bytes
.../message/Handshake.13984770398439454092.bin | Bin 0 -> 41 bytes
.../message/Handshake.13999267638725815508.bin | Bin 0 -> 195 bytes
.../message/Handshake.14009877000152811622.bin | Bin 0 -> 45 bytes
.../message/Handshake.14013883575498423468.bin | Bin 0 -> 94 bytes
.../message/Handshake.14024049187646346995.bin | Bin 0 -> 37 bytes
.../message/Handshake.14063675181380296895.bin | Bin 0 -> 338 bytes
.../message/Handshake.14069660426092783164.bin | Bin 0 -> 217 bytes
.../message/Handshake.14099606319859446532.bin | Bin 0 -> 45 bytes
.../message/Handshake.14242200054858355158.bin | Bin 0 -> 45 bytes
.../message/Handshake.1425510439158102692.bin | Bin 0 -> 269 bytes
.../message/Handshake.14282273754635061222.bin | Bin 0 -> 21 bytes
.../message/Handshake.14320193797455121029.bin | Bin 0 -> 16389 bytes
.../message/Handshake.14322628933094490808.bin | Bin 0 -> 70 bytes
.../message/Handshake.14393665983695130074.bin | Bin 0 -> 21 bytes
.../message/Handshake.14412410967361510993.bin | Bin 0 -> 21 bytes
.../message/Handshake.14429326485950888401.bin | Bin 0 -> 290 bytes
.../message/Handshake.14446821313588772895.bin | Bin 0 -> 204 bytes
.../message/Handshake.14525786614546755913.bin | Bin 0 -> 3049 bytes
.../message/Handshake.14585480434123890306.bin | Bin 0 -> 45 bytes
.../message/Handshake.14589551266924465272.bin | Bin 0 -> 37 bytes
.../message/Handshake.14617410605578343341.bin | Bin 0 -> 21 bytes
.../message/Handshake.14662564964928502601.bin | Bin 0 -> 21 bytes
.../message/Handshake.14695493555000511183.bin | Bin 0 -> 305 bytes
.../message/Handshake.1469590175970957671.bin | Bin 0 -> 269 bytes
.../message/Handshake.14703099513472818837.bin | Bin 0 -> 176 bytes
.../message/Handshake.1473135651763031014.bin | Bin 0 -> 305 bytes
.../message/Handshake.14866688372795221766.bin | Bin 0 -> 45 bytes
.../message/Handshake.14908741649050651227.bin | Bin 0 -> 208 bytes
.../message/Handshake.14923365458552646986.bin | Bin 0 -> 191 bytes
.../message/Handshake.15068056427013946956.bin | Bin 0 -> 4673 bytes
.../message/Handshake.15176487544662052367.bin | Bin 0 -> 370 bytes
.../message/Handshake.1518320918629890656.bin | Bin 0 -> 21 bytes
.../message/Handshake.15192629661718834661.bin | Bin 0 -> 21 bytes
.../message/Handshake.15228554977041565944.bin | Bin 0 -> 87 bytes
.../message/Handshake.1530973898026006702.bin | Bin 0 -> 21 bytes
.../message/Handshake.15388918098225859116.bin | Bin 0 -> 66 bytes
.../message/Handshake.15392005723087373547.bin | Bin 0 -> 37 bytes
.../message/Handshake.15411291236989586884.bin | Bin 0 -> 16389 bytes
.../message/Handshake.15424787030236756886.bin | Bin 0 -> 269 bytes
.../message/Handshake.15437232101358805623.bin | Bin 0 -> 305 bytes
.../message/Handshake.15453568942617885946.bin | Bin 0 -> 21 bytes
.../message/Handshake.15511476665456364419.bin | Bin 0 -> 269 bytes
.../message/Handshake.15536109336749205379.bin | Bin 0 -> 66 bytes
.../message/Handshake.156657696701620214.bin | Bin 0 -> 41 bytes
.../message/Handshake.15744220259092203702.bin | Bin 0 -> 70 bytes
.../message/Handshake.15747644562524183318.bin | Bin 0 -> 21 bytes
.../message/Handshake.15764035480274040664.bin | Bin 0 -> 195 bytes
.../message/Handshake.15785092298493111633.bin | Bin 0 -> 176 bytes
.../message/Handshake.15823145278767166593.bin | Bin 0 -> 338 bytes
.../message/Handshake.15828817918393310647.bin | Bin 0 -> 37 bytes
.../message/Handshake.15853804441626080064.bin | Bin 0 -> 45 bytes
.../message/Handshake.15924521189391044303.bin | Bin 0 -> 141 bytes
.../message/Handshake.15932636702503475692.bin | Bin 0 -> 338 bytes
.../message/Handshake.15980728767105240219.bin | Bin 0 -> 45 bytes
.../message/Handshake.16032892450728185496.bin | Bin 0 -> 70 bytes
.../message/Handshake.16070677070745681985.bin | Bin 0 -> 193 bytes
.../message/Handshake.16123262421179431974.bin | Bin 0 -> 37 bytes
.../message/Handshake.16201754788736281125.bin | Bin 0 -> 37 bytes
.../message/Handshake.16210478671713826865.bin | Bin 0 -> 41 bytes
.../message/Handshake.1626390092489971117.bin | Bin 0 -> 269 bytes
.../message/Handshake.16308850004059631606.bin | Bin 0 -> 227 bytes
.../message/Handshake.16383259529830901736.bin | Bin 0 -> 189 bytes
.../message/Handshake.16412278998098028101.bin | Bin 0 -> 62 bytes
.../message/Handshake.16426857520717506228.bin | Bin 0 -> 191 bytes
.../message/Handshake.16432119024468853176.bin | Bin 0 -> 21 bytes
.../message/Handshake.1643490134021521720.bin | Bin 0 -> 41 bytes
.../message/Handshake.16436699903170639558.bin | Bin 0 -> 37 bytes
.../message/Handshake.16437683612303518319.bin | Bin 0 -> 21 bytes
.../message/Handshake.16444098854362686463.bin | Bin 0 -> 42 bytes
.../message/Handshake.16472122371040267626.bin | Bin 0 -> 16389 bytes
.../message/Handshake.16514529420505023990.bin | Bin 0 -> 269 bytes
.../message/Handshake.16523657212788733702.bin | Bin 0 -> 62 bytes
.../message/Handshake.16540589193778243567.bin | Bin 0 -> 21 bytes
.../message/Handshake.16589685086502189050.bin | Bin 0 -> 70 bytes
.../message/Handshake.16596178973076867541.bin | Bin 0 -> 5070 bytes
.../message/Handshake.16609173880091320790.bin | Bin 0 -> 269 bytes
.../message/Handshake.16627757275148925447.bin | Bin 0 -> 21 bytes
.../message/Handshake.16647171529249569913.bin | Bin 0 -> 21 bytes
.../message/Handshake.16703222254862307860.bin | Bin 0 -> 21 bytes
.../message/Handshake.16722115196302564440.bin | Bin 0 -> 21 bytes
.../message/Handshake.16735862169122005385.bin | Bin 0 -> 45 bytes
.../message/Handshake.16811966076719770617.bin | Bin 0 -> 21 bytes
.../message/Handshake.16833941846957128371.bin | Bin 0 -> 87 bytes
.../message/Handshake.16876551284119928887.bin | Bin 0 -> 121 bytes
.../message/Handshake.1688845106119492085.bin | Bin 0 -> 8 bytes
.../message/Handshake.16897951102744314465.bin | Bin 0 -> 37 bytes
.../message/Handshake.16948215967012835893.bin | Bin 0 -> 21 bytes
.../message/Handshake.16992819064390132752.bin | Bin 0 -> 45 bytes
.../message/Handshake.17011818371765087662.bin | Bin 0 -> 200 bytes
.../message/Handshake.17045079723342920595.bin | Bin 0 -> 37 bytes
.../message/Handshake.17055562155747367704.bin | Bin 0 -> 5063 bytes
.../message/Handshake.17059185269347141233.bin | Bin 0 -> 195 bytes
.../message/Handshake.17144558641001270304.bin | Bin 0 -> 145 bytes
.../message/Handshake.17170083450142864624.bin | Bin 0 -> 41 bytes
.../message/Handshake.1717690949369415293.bin | Bin 0 -> 16389 bytes
.../message/Handshake.17201788246676815961.bin | Bin 0 -> 87 bytes
.../message/Handshake.17212335116719329178.bin | Bin 0 -> 21 bytes
.../message/Handshake.17213792272579830434.bin | Bin 0 -> 207 bytes
.../message/Handshake.17232270933043251133.bin | Bin 0 -> 41 bytes
.../message/Handshake.17232478528388315092.bin | Bin 0 -> 120 bytes
.../message/Handshake.17235335569215645063.bin | Bin 0 -> 41 bytes
.../message/Handshake.17243615472388120296.bin | Bin 0 -> 305 bytes
.../message/Handshake.17258521995883629147.bin | Bin 0 -> 45 bytes
.../message/Handshake.17297754318680457736.bin | Bin 0 -> 21 bytes
.../message/Handshake.17327628122216214740.bin | Bin 0 -> 1231 bytes
.../message/Handshake.17328079106849016450.bin | Bin 0 -> 85 bytes
.../message/Handshake.17340575935546108314.bin | Bin 0 -> 70 bytes
.../message/Handshake.17396092822317572139.bin | Bin 0 -> 4328 bytes
.../message/Handshake.17424255485062971368.bin | Bin 0 -> 70 bytes
.../message/Handshake.17437492765421933494.bin | Bin 0 -> 42 bytes
.../message/Handshake.17540384758876388884.bin | Bin 0 -> 87 bytes
.../message/Handshake.17547321132119983797.bin | Bin 0 -> 41 bytes
.../message/Handshake.17557757898202736160.bin | Bin 0 -> 305 bytes
.../message/Handshake.17613422452194830485.bin | Bin 0 -> 45 bytes
.../message/Handshake.17617549015880478672.bin | Bin 0 -> 191 bytes
.../message/Handshake.17661739364750810786.bin | Bin 0 -> 41 bytes
.../message/Handshake.17696885369015774525.bin | Bin 0 -> 42 bytes
.../message/Handshake.17701872256997425665.bin | Bin 0 -> 21 bytes
.../message/Handshake.17707996754987920669.bin | Bin 0 -> 45 bytes
.../message/Handshake.17724600262439791970.bin | Bin 0 -> 290 bytes
.../message/Handshake.17741930369821550680.bin | Bin 0 -> 37 bytes
.../message/Handshake.17792295585508497057.bin | Bin 0 -> 3145 bytes
.../message/Handshake.17807555105284792060.bin | Bin 0 -> 2745 bytes
.../message/Handshake.17986253032725764827.bin | Bin 0 -> 269 bytes
.../message/Handshake.17998948064626831739.bin | Bin 0 -> 41 bytes
.../message/Handshake.18016443855650646498.bin | Bin 0 -> 290 bytes
.../message/Handshake.18048927047726097126.bin | Bin 0 -> 338 bytes
.../message/Handshake.18063173879318671919.bin | Bin 0 -> 195 bytes
.../message/Handshake.18132524175804122004.bin | Bin 0 -> 45 bytes
.../message/Handshake.18169800317578718557.bin | Bin 0 -> 87 bytes
.../message/Handshake.18232661073919066265.bin | Bin 0 -> 21 bytes
.../message/Handshake.18255834500943036769.bin | Bin 0 -> 41 bytes
.../message/Handshake.18266666495466432220.bin | Bin 0 -> 6 bytes
.../message/Handshake.18375574386254795987.bin | Bin 0 -> 305 bytes
.../message/Handshake.18391395525380228165.bin | Bin 0 -> 290 bytes
.../message/Handshake.18397226621308013042.bin | Bin 0 -> 41 bytes
.../corpus/message/Handshake.18755738257883875.bin | Bin 0 -> 13 bytes
.../message/Handshake.1928293452725324866.bin | Bin 0 -> 70 bytes
.../message/Handshake.1936432102197506390.bin | Bin 0 -> 338 bytes
.../message/Handshake.1990053809936248450.bin | Bin 0 -> 191 bytes
.../message/Handshake.2027703828861302684.bin | Bin 0 -> 41 bytes
.../message/Handshake.212219147091687617.bin | Bin 0 -> 70 bytes
.../message/Handshake.2152889732115087441.bin | Bin 0 -> 207 bytes
.../message/Handshake.216457176383865358.bin | Bin 0 -> 305 bytes
.../message/Handshake.2240049362618089459.bin | Bin 0 -> 16389 bytes
.../message/Handshake.2307436573390925099.bin | Bin 0 -> 70 bytes
.../message/Handshake.2313677203008364520.bin | Bin 0 -> 41 bytes
.../message/Handshake.236915854650365330.bin | Bin 0 -> 152 bytes
.../message/Handshake.2394528942117922419.bin | Bin 0 -> 12 bytes
.../message/Handshake.2413796706176055860.bin | Bin 0 -> 176 bytes
.../message/Handshake.2460040447535057550.bin | Bin 0 -> 305 bytes
.../message/Handshake.2480875953640570249.bin | Bin 0 -> 21 bytes
.../message/Handshake.2527216998239295833.bin | Bin 0 -> 21 bytes
.../message/Handshake.2541693875114751894.bin | Bin 0 -> 66 bytes
.../message/Handshake.2544717604075640181.bin | Bin 0 -> 41 bytes
.../message/Handshake.2557834332224711296.bin | Bin 0 -> 305 bytes
.../message/Handshake.258f5d2d7a8677c9fac.bin | Bin 0 -> 68 bytes
.../message/Handshake.2673545329900462347.bin | Bin 0 -> 87 bytes
.../message/Handshake.2796810502847829071.bin | Bin 0 -> 223 bytes
.../message/Handshake.2826272846341584836.bin | Bin 0 -> 11 bytes
.../message/Handshake.2861014807371483795.bin | Bin 0 -> 21 bytes
.../message/Handshake.2949493553066767632.bin | Bin 0 -> 333 bytes
.../message/Handshake.2961173759902739226.bin | Bin 0 -> 16389 bytes
.../message/Handshake.2979609226092629843.bin | Bin 0 -> 13 bytes
.../message/Handshake.2984998126444994396.bin | Bin 0 -> 191 bytes
.../message/Handshake.298518078319368406.bin | Bin 0 -> 42 bytes
.../message/Handshake.3014389673921418933.bin | Bin 0 -> 37 bytes
.../message/Handshake.3014957178821188133.bin | Bin 0 -> 16389 bytes
.../message/Handshake.311760158055179110.bin | Bin 0 -> 269 bytes
.../message/Handshake.312526042889499214.bin | Bin 0 -> 70 bytes
.../message/Handshake.3128225394297022352.bin | Bin 0 -> 70 bytes
.../message/Handshake.3166330578799441096.bin | Bin 0 -> 37 bytes
.../message/Handshake.3312843528368099392.bin | Bin 0 -> 21 bytes
.../message/Handshake.3313106910834900992.bin | Bin 0 -> 87 bytes
.../message/Handshake.3347571752696288062.bin | Bin 0 -> 223 bytes
.../message/Handshake.337084820905431502.bin | Bin 0 -> 45 bytes
.../message/Handshake.3424182835622235744.bin | Bin 0 -> 37 bytes
.../message/Handshake.3429739447374499365.bin | Bin 0 -> 21 bytes
.../message/Handshake.3475973011125062162.bin | Bin 0 -> 45 bytes
.../message/Handshake.3513484021335611760.bin | Bin 0 -> 5786 bytes
.../message/Handshake.3651484916918355509.bin | Bin 0 -> 41 bytes
.../message/Handshake.3705955763815240136.bin | Bin 0 -> 45 bytes
.../message/Handshake.3710356333193877990.bin | Bin 0 -> 269 bytes
.../message/Handshake.3804365713197001559.bin | Bin 0 -> 21 bytes
.../message/Handshake.3808040219747534364.bin | Bin 0 -> 191 bytes
.../message/Handshake.3919273420495969490.bin | Bin 0 -> 21 bytes
.../message/Handshake.3932516291045283953.bin | Bin 0 -> 1106 bytes
.../message/Handshake.4039761311411713437.bin | Bin 0 -> 21 bytes
.../message/Handshake.4144209600586588395.bin | Bin 0 -> 45 bytes
.../message/Handshake.4191645962065905074.bin | Bin 0 -> 42 bytes
.../corpus/message/Handshake.41955172152373455.bin | Bin 0 -> 1421 bytes
.../message/Handshake.4218531966621319110.bin | Bin 0 -> 269 bytes
.../message/Handshake.4241179859159128002.bin | Bin 0 -> 21 bytes
.../message/Handshake.4249735697352582921.bin | Bin 0 -> 191 bytes
.../corpus/message/Handshake.42758048396447472.bin | Bin 0 -> 21 bytes
.../message/Handshake.4293087073316750727.bin | Bin 0 -> 191 bytes
.../message/Handshake.4296382558190650032.bin | Bin 0 -> 208 bytes
.../message/Handshake.4325811598920991662.bin | Bin 0 -> 87 bytes
.../message/Handshake.4355816358040777333.bin | Bin 0 -> 21 bytes
.../message/Handshake.4386518903704075196.bin | Bin 0 -> 45 bytes
.../message/Handshake.4389944769660451751.bin | Bin 0 -> 21 bytes
.../message/Handshake.4476635384469125163.bin | Bin 0 -> 193 bytes
.../message/Handshake.4477750639374584176.bin | Bin 0 -> 37 bytes
.../message/Handshake.4542241670017875095.bin | Bin 0 -> 37 bytes
.../message/Handshake.4543184149485589730.bin | Bin 0 -> 21 bytes
.../message/Handshake.4611628590351112109.bin | Bin 0 -> 37 bytes
.../message/Handshake.4619114321623197837.bin | Bin 0 -> 45 bytes
.../message/Handshake.4642615169580265307.bin | Bin 0 -> 195 bytes
.../message/Handshake.4649155104014981666.bin | Bin 0 -> 87 bytes
.../message/Handshake.4667273675775908022.bin | Bin 0 -> 269 bytes
.../message/Handshake.4674721369255096757.bin | Bin 0 -> 41 bytes
.../message/Handshake.478596588601994286.bin | Bin 0 -> 145 bytes
.../message/Handshake.4786048730765981951.bin | Bin 0 -> 70 bytes
.../message/Handshake.4865792012087462837.bin | Bin 0 -> 338 bytes
.../message/Handshake.4908233617135292311.bin | Bin 0 -> 70 bytes
.../message/Handshake.4933016559055960857.bin | Bin 0 -> 45 bytes
.../message/Handshake.4938077362928474541.bin | Bin 0 -> 98 bytes
.../message/Handshake.4962843938424694078.bin | Bin 0 -> 87 bytes
.../message/Handshake.4989740266270094088.bin | Bin 0 -> 223 bytes
.../message/Handshake.5048545998314720549.bin | Bin 0 -> 45 bytes
.../message/Handshake.5073427320423541646.bin | Bin 0 -> 338 bytes
.../message/Handshake.5217191805520860833.bin | Bin 0 -> 214 bytes
.../message/Handshake.5286900913693115812.bin | Bin 0 -> 191 bytes
.../message/Handshake.529945189212952632.bin | Bin 0 -> 21 bytes
.../message/Handshake.5301156670834358897.bin | Bin 0 -> 269 bytes
.../message/Handshake.5334486403455255697.bin | Bin 0 -> 16389 bytes
.../message/Handshake.5343060974765799244.bin | Bin 0 -> 42 bytes
.../message/Handshake.5362217997294593162.bin | Bin 0 -> 13 bytes
.../message/Handshake.5380983266882457468.bin | Bin 0 -> 41 bytes
.../message/Handshake.5402136492075007865.bin | Bin 0 -> 269 bytes
.../message/Handshake.5405917007365442721.bin | Bin 0 -> 176 bytes
.../message/Handshake.5443290700947309763.bin | Bin 0 -> 195 bytes
.../message/Handshake.5481698826224529923.bin | Bin 0 -> 87 bytes
.../message/Handshake.556291143183377611.bin | Bin 0 -> 37 bytes
.../message/Handshake.5586540596524415926.bin | Bin 0 -> 338 bytes
.../message/Handshake.5594608350705202011.bin | Bin 0 -> 41 bytes
.../message/Handshake.5603812265702676658.bin | Bin 0 -> 45 bytes
.../message/Handshake.5604960497954348281.bin | Bin 0 -> 176 bytes
.../message/Handshake.5659375494835764612.bin | Bin 0 -> 3247 bytes
.../message/Handshake.5663356738021631797.bin | Bin 0 -> 338 bytes
.../message/Handshake.5707260217432481891.bin | Bin 0 -> 68 bytes
.../message/Handshake.5716774200892842818.bin | Bin 0 -> 269 bytes
.../message/Handshake.5830259757122116254.bin | Bin 0 -> 42 bytes
.../message/Handshake.5837042724063548647.bin | Bin 0 -> 15 bytes
.../message/Handshake.5871341296679804474.bin | Bin 0 -> 41 bytes
.../message/Handshake.5874804588086026422.bin | Bin 0 -> 176 bytes
.../message/Handshake.5945093118224632448.bin | Bin 0 -> 16389 bytes
.../message/Handshake.5947361360692291135.bin | Bin 0 -> 87 bytes
.../message/Handshake.609922810419403201.bin | Bin 0 -> 3095 bytes
.../message/Handshake.6128290413270962414.bin | Bin 0 -> 16389 bytes
.../message/Handshake.6148392331334603742.bin | Bin 0 -> 45 bytes
.../message/Handshake.6167545766526183896.bin | Bin 0 -> 45 bytes
.../message/Handshake.6183457994786268025.bin | Bin 0 -> 21 bytes
.../message/Handshake.6246254988516583397.bin | Bin 0 -> 207 bytes
.../message/Handshake.6256301128162194777.bin | Bin 0 -> 70 bytes
.../message/Handshake.6270507649448991536.bin | Bin 0 -> 16389 bytes
.../message/Handshake.6286086053383889700.bin | Bin 0 -> 45 bytes
.../message/Handshake.6299110277522314252.bin | Bin 0 -> 208 bytes
.../message/Handshake.6303189164313223915.bin | Bin 0 -> 42 bytes
.../message/Handshake.6317949579808964373.bin | Bin 0 -> 37 bytes
.../message/Handshake.6349375420330136752.bin | Bin 0 -> 87 bytes
.../message/Handshake.6373804566315576832.bin | Bin 0 -> 3310 bytes
.../message/Handshake.645143445693394463.bin | Bin 0 -> 45 bytes
.../message/Handshake.6473429051855997343.bin | Bin 0 -> 21 bytes
.../message/Handshake.6483112328197560295.bin | Bin 0 -> 21 bytes
.../message/Handshake.6514385179381560358.bin | Bin 0 -> 68 bytes
.../message/Handshake.6556857782474775662.bin | Bin 0 -> 41 bytes
.../message/Handshake.6560990876465882110.bin | Bin 0 -> 154 bytes
.../message/Handshake.6575881671932139607.bin | Bin 0 -> 21 bytes
.../message/Handshake.6628510697901476085.bin | Bin 0 -> 21 bytes
.../message/Handshake.6647381434165417392.bin | Bin 0 -> 269 bytes
.../message/Handshake.6673499158063844346.bin | Bin 0 -> 269 bytes
.../message/Handshake.6711490333833806543.bin | Bin 0 -> 70 bytes
.../message/Handshake.6784046683896858205.bin | Bin 0 -> 41 bytes
.../message/Handshake.6825348629043782682.bin | Bin 0 -> 87 bytes
.../message/Handshake.6845537131354319507.bin | Bin 0 -> 41 bytes
.../message/Handshake.6904555378333487352.bin | Bin 0 -> 41 bytes
.../message/Handshake.691322331639227581.bin | Bin 0 -> 37 bytes
.../message/Handshake.6930647023716087459.bin | Bin 0 -> 338 bytes
.../message/Handshake.6934963550557282434.bin | Bin 0 -> 191 bytes
.../message/Handshake.706496323736965313.bin | Bin 0 -> 21 bytes
.../message/Handshake.7139546534683738103.bin | Bin 0 -> 217 bytes
.../message/Handshake.7140789886103116970.bin | Bin 0 -> 338 bytes
.../message/Handshake.7165460482174603572.bin | Bin 0 -> 102 bytes
.../message/Handshake.7169103668165722696.bin | Bin 0 -> 87 bytes
.../message/Handshake.7204317303965803185.bin | Bin 0 -> 21 bytes
.../message/Handshake.7215377677155798562.bin | Bin 0 -> 305 bytes
.../message/Handshake.7239483366845560219.bin | Bin 0 -> 195 bytes
.../message/Handshake.7247230710855987371.bin | Bin 0 -> 269 bytes
.../message/Handshake.7307410286450529411.bin | Bin 0 -> 70 bytes
.../message/Handshake.7315528097243481803.bin | Bin 0 -> 908 bytes
.../message/Handshake.7346079841998135763.bin | Bin 0 -> 195 bytes
.../message/Handshake.7346234843398406674.bin | Bin 0 -> 21 bytes
.../message/Handshake.7417584038269759849.bin | Bin 0 -> 41 bytes
.../message/Handshake.7455508748687829568.bin | Bin 0 -> 16389 bytes
.../message/Handshake.7465643599440370514.bin | Bin 0 -> 62 bytes
.../message/Handshake.748961855245476356.bin | Bin 0 -> 305 bytes
.../message/Handshake.7516591636737017402.bin | 23 +
.../message/Handshake.7567177748330669261.bin | Bin 0 -> 41 bytes
.../message/Handshake.761091977985466479.bin | Bin 0 -> 42 bytes
.../message/Handshake.7656268277965224869.bin | Bin 0 -> 21 bytes
.../message/Handshake.7690239762888976874.bin | Bin 0 -> 120 bytes
.../message/Handshake.7719692407614242099.bin | Bin 0 -> 120 bytes
.../message/Handshake.7720957275282168636.bin | Bin 0 -> 41 bytes
.../message/Handshake.7794784808116194704.bin | Bin 0 -> 45 bytes
.../message/Handshake.7813730008683262876.bin | Bin 0 -> 191 bytes
.../message/Handshake.7885327095706217153.bin | Bin 0 -> 9 bytes
.../message/Handshake.7906248215225931460.bin | Bin 0 -> 70 bytes
.../message/Handshake.7948817873499846774.bin | Bin 0 -> 45 bytes
.../message/Handshake.7952341792523028764.bin | Bin 0 -> 16389 bytes
.../message/Handshake.8013259530313775093.bin | Bin 0 -> 41 bytes
.../message/Handshake.8075604299203105949.bin | Bin 0 -> 21 bytes
.../message/Handshake.8172081604114400514.bin | Bin 0 -> 269 bytes
.../message/Handshake.8189830343061708537.bin | Bin 0 -> 21 bytes
.../message/Handshake.8221216873901994192.bin | Bin 0 -> 195 bytes
.../message/Handshake.8248374086501392768.bin | Bin 0 -> 34 bytes
.../message/Handshake.8392255840240310515.bin | Bin 0 -> 87 bytes
.../message/Handshake.8396327429954042116.bin | Bin 0 -> 70 bytes
.../message/Handshake.8406587813025302152.bin | Bin 0 -> 14 bytes
.../message/Handshake.8407774444968010290.bin | Bin 0 -> 21 bytes
.../message/Handshake.8440398803691469570.bin | Bin 0 -> 334 bytes
.../message/Handshake.8485098093571729014.bin | Bin 0 -> 191 bytes
.../message/Handshake.849776811515966891.bin | Bin 0 -> 41 bytes
.../message/Handshake.8560931306029320922.bin | Bin 0 -> 191 bytes
.../message/Handshake.864255644696956933.bin | Bin 0 -> 338 bytes
.../message/Handshake.8693230236911388473.bin | Bin 0 -> 87 bytes
.../message/Handshake.8729890745367494493.bin | Bin 0 -> 290 bytes
.../message/Handshake.8860398728547306665.bin | Bin 0 -> 3818 bytes
.../message/Handshake.8867642025619914951.bin | Bin 0 -> 3141 bytes
.../message/Handshake.8904084412973289274.bin | Bin 0 -> 87 bytes
.../message/Handshake.8969192033003128338.bin | Bin 0 -> 21 bytes
.../message/Handshake.8971115354707129304.bin | Bin 0 -> 41 bytes
.../message/Handshake.8984984283856126818.bin | Bin 0 -> 191 bytes
.../message/Handshake.8991433515362915263.bin | Bin 0 -> 70 bytes
.../message/Handshake.9069047612017088350.bin | Bin 0 -> 338 bytes
.../message/Handshake.9089706207584821560.bin | Bin 0 -> 45 bytes
.../message/Handshake.9240147047837819581.bin | Bin 0 -> 74 bytes
.../message/Handshake.9243195678680727758.bin | Bin 0 -> 8 bytes
.../message/Handshake.9252077617801921335.bin | Bin 0 -> 125 bytes
.../message/Handshake.9297844479670622147.bin | Bin 0 -> 290 bytes
.../message/Handshake.9311845630904179522.bin | Bin 0 -> 45 bytes
.../message/Handshake.9312662581830733323.bin | Bin 0 -> 207 bytes
.../message/Handshake.9317589580822515162.bin | Bin 0 -> 195 bytes
.../message/Handshake.9429010528239790739.bin | Bin 0 -> 41 bytes
.../message/Handshake.9454286992762375905.bin | Bin 0 -> 42 bytes
.../message/Handshake.9525167095567049454.bin | Bin 0 -> 3053 bytes
.../message/Handshake.9550899685530869009.bin | Bin 0 -> 176 bytes
.../message/Handshake.9745946828873281910.bin | Bin 0 -> 16389 bytes
.../message/Handshake.9818098016546753604.bin | Bin 0 -> 87 bytes
.../message/Handshake.9850803183111560401.bin | Bin 0 -> 37 bytes
.../message/Handshake.9890336611007943713.bin | Bin 0 -> 305 bytes
.../message/Handshake.9921068590203068234.bin | Bin 0 -> 70 bytes
.../message/Handshake.9967963985197802467.bin | Bin 0 -> 190 bytes
.../message/Handshake.9996393024757669485.bin | Bin 0 -> 15 bytes
rustls-0.21.2/fuzz/corpus/server/tls12-client.bin | Bin 0 -> 383 bytes
rustls-0.21.2/fuzz/corpus/server/tls13-client.bin | Bin 0 -> 353 bytes
rustls-0.21.2/fuzz/fuzzers/client.rs | 23 +
rustls-0.21.2/fuzz/fuzzers/deframer.rs | 25 +
rustls-0.21.2/fuzz/fuzzers/fragment.rs | 34 +
rustls-0.21.2/fuzz/fuzzers/message.rs | 23 +
rustls-0.21.2/fuzz/fuzzers/persist.rs | 20 +
rustls-0.21.2/fuzz/fuzzers/server.rs | 33 +
rustls-0.21.2/rustls/Cargo.toml | 57 +
rustls-0.21.2/rustls/LICENSE-APACHE | 1 +
rustls-0.21.2/rustls/LICENSE-ISC | 1 +
rustls-0.21.2/rustls/LICENSE-MIT | 1 +
rustls-0.21.2/rustls/benches/benchmarks.rs | 20 +
rustls-0.21.2/rustls/build.rs | 13 +
rustls-0.21.2/rustls/examples/internal/bench.rs | 675 +++
.../rustls/examples/internal/bogo_shim.rs | 1259 ++++++
rustls-0.21.2/rustls/src/anchors.rs | 179 +
rustls-0.21.2/rustls/src/bs_debug.rs | 77 +
rustls-0.21.2/rustls/src/builder.rs | 268 ++
rustls-0.21.2/rustls/src/check.rs | 77 +
rustls-0.21.2/rustls/src/cipher.rs | 101 +
rustls-0.21.2/rustls/src/client/builder.rs | 190 +
rustls-0.21.2/rustls/src/client/client_conn.rs | 688 +++
rustls-0.21.2/rustls/src/client/common.rs | 112 +
rustls-0.21.2/rustls/src/client/handy.rs | 268 ++
rustls-0.21.2/rustls/src/client/hs.rs | 895 ++++
rustls-0.21.2/rustls/src/client/tls12.rs | 1117 +++++
rustls-0.21.2/rustls/src/client/tls13.rs | 1121 +++++
rustls-0.21.2/rustls/src/common_state.rs | 683 +++
rustls-0.21.2/rustls/src/conn.rs | 751 ++++
rustls-0.21.2/rustls/src/enums.rs | 570 +++
rustls-0.21.2/rustls/src/error.rs | 534 +++
rustls-0.21.2/rustls/src/hash_hs.rs | 240 +
rustls-0.21.2/rustls/src/key.rs | 111 +
rustls-0.21.2/rustls/src/key_log.rs | 55 +
rustls-0.21.2/rustls/src/key_log_file.rs | 157 +
rustls-0.21.2/rustls/src/kx.rs | 100 +
rustls-0.21.2/rustls/src/lib.rs | 508 +++
rustls-0.21.2/rustls/src/limited_cache.rs | 245 +
rustls-0.21.2/rustls/src/manual/defaults.rs | 29 +
rustls-0.21.2/rustls/src/manual/features.rs | 50 +
rustls-0.21.2/rustls/src/manual/howto.rs | 36 +
rustls-0.21.2/rustls/src/manual/implvulns.rs | 104 +
rustls-0.21.2/rustls/src/manual/mod.rs | 30 +
rustls-0.21.2/rustls/src/manual/tlsvulns.rs | 173 +
rustls-0.21.2/rustls/src/msgs/alert.rs | 24 +
rustls-0.21.2/rustls/src/msgs/base.rs | 171 +
rustls-0.21.2/rustls/src/msgs/ccs.rs | 21 +
rustls-0.21.2/rustls/src/msgs/codec.rs | 290 ++
rustls-0.21.2/rustls/src/msgs/deframer.rs | 735 +++
rustls-0.21.2/rustls/src/msgs/enums.rs | 367 ++
rustls-0.21.2/rustls/src/msgs/fragmenter.rs | 162 +
rustls-0.21.2/rustls/src/msgs/handshake-test.1.bin | Bin 0 -> 4280 bytes
rustls-0.21.2/rustls/src/msgs/handshake.rs | 2303 ++++++++++
rustls-0.21.2/rustls/src/msgs/handshake_test.rs | 1214 +++++
.../src/msgs/hello-api.devicecheck.apple.com.bin | Bin 0 -> 74 bytes
rustls-0.21.2/rustls/src/msgs/macros.rs | 96 +
rustls-0.21.2/rustls/src/msgs/message.rs | 292 ++
rustls-0.21.2/rustls/src/msgs/message_test.rs | 113 +
rustls-0.21.2/rustls/src/msgs/mod.rs | 42 +
rustls-0.21.2/rustls/src/msgs/persist.rs | 448 ++
rustls-0.21.2/rustls/src/quic.rs | 1093 +++++
rustls-0.21.2/rustls/src/rand.rs | 28 +
rustls-0.21.2/rustls/src/record_layer.rs | 221 +
rustls-0.21.2/rustls/src/server/builder.rs | 117 +
rustls-0.21.2/rustls/src/server/common.rs | 41 +
rustls-0.21.2/rustls/src/server/handy.rs | 278 ++
rustls-0.21.2/rustls/src/server/hs.rs | 526 +++
rustls-0.21.2/rustls/src/server/server_conn.rs | 804 ++++
rustls-0.21.2/rustls/src/server/tls12.rs | 955 ++++
rustls-0.21.2/rustls/src/server/tls13.rs | 1322 ++++++
rustls-0.21.2/rustls/src/sign.rs | 514 +++
rustls-0.21.2/rustls/src/stream.rs | 238 +
rustls-0.21.2/rustls/src/suites.rs | 341 ++
.../rustls/src/testdata/cert-arstechnica.0.der | Bin 0 -> 1517 bytes
.../rustls/src/testdata/cert-arstechnica.1.der | Bin 0 -> 1101 bytes
.../rustls/src/testdata/cert-arstechnica.2.der | Bin 0 -> 1174 bytes
.../rustls/src/testdata/cert-arstechnica.3.der | Bin 0 -> 1145 bytes
.../rustls/src/testdata/cert-duckduckgo.0.der | Bin 0 -> 1741 bytes
.../rustls/src/testdata/cert-duckduckgo.1.der | Bin 0 -> 1218 bytes
.../rustls/src/testdata/cert-github.0.der | Bin 0 -> 1290 bytes
.../rustls/src/testdata/cert-github.1.der | Bin 0 -> 1055 bytes
.../rustls/src/testdata/cert-google.0.der | Bin 0 -> 1164 bytes
.../rustls/src/testdata/cert-google.1.der | Bin 0 -> 1434 bytes
.../rustls/src/testdata/cert-google.2.der | Bin 0 -> 1382 bytes
rustls-0.21.2/rustls/src/testdata/cert-hn.0.der | Bin 0 -> 1740 bytes
rustls-0.21.2/rustls/src/testdata/cert-hn.1.der | Bin 0 -> 1218 bytes
.../rustls/src/testdata/cert-reddit.0.der | Bin 0 -> 1730 bytes
.../rustls/src/testdata/cert-reddit.1.der | Bin 0 -> 1218 bytes
.../rustls/src/testdata/cert-rustlang.0.der | Bin 0 -> 1540 bytes
.../rustls/src/testdata/cert-rustlang.1.der | Bin 0 -> 1101 bytes
.../rustls/src/testdata/cert-rustlang.2.der | Bin 0 -> 1174 bytes
.../rustls/src/testdata/cert-rustlang.3.der | Bin 0 -> 1145 bytes
rustls-0.21.2/rustls/src/testdata/cert-servo.0.der | Bin 0 -> 1335 bytes
rustls-0.21.2/rustls/src/testdata/cert-servo.1.der | Bin 0 -> 977 bytes
.../rustls/src/testdata/cert-stackoverflow.0.der | Bin 0 -> 1785 bytes
.../rustls/src/testdata/cert-stackoverflow.1.der | Bin 0 -> 1306 bytes
.../rustls/src/testdata/cert-stackoverflow.2.der | Bin 0 -> 1380 bytes
.../rustls/src/testdata/cert-twitter.0.der | Bin 0 -> 1606 bytes
.../rustls/src/testdata/cert-twitter.1.der | Bin 0 -> 1262 bytes
rustls-0.21.2/rustls/src/testdata/cert-wapo.0.der | Bin 0 -> 2211 bytes
rustls-0.21.2/rustls/src/testdata/cert-wapo.1.der | Bin 0 -> 1329 bytes
.../rustls/src/testdata/cert-wikipedia.0.der | Bin 0 -> 2086 bytes
.../rustls/src/testdata/cert-wikipedia.1.der | Bin 0 -> 1051 bytes
.../testdata/deframer-empty-applicationdata.bin | Bin 0 -> 5 bytes
.../src/testdata/deframer-invalid-contenttype.bin | Bin 0 -> 7 bytes
.../rustls/src/testdata/deframer-invalid-empty.bin | Bin 0 -> 5 bytes
.../src/testdata/deframer-invalid-length.bin | Bin 0 -> 6 bytes
.../src/testdata/deframer-invalid-version.bin | Bin 0 -> 7 bytes
.../rustls/src/testdata/deframer-test.1.bin | Bin 0 -> 334 bytes
.../rustls/src/testdata/deframer-test.2.bin | Bin 0 -> 7 bytes
rustls-0.21.2/rustls/src/testdata/eddsakey.der | Bin 0 -> 48 bytes
rustls-0.21.2/rustls/src/testdata/nistp256key.der | Bin 0 -> 121 bytes
.../rustls/src/testdata/nistp256key.pkcs8.der | Bin 0 -> 138 bytes
rustls-0.21.2/rustls/src/testdata/nistp384key.der | Bin 0 -> 167 bytes
.../rustls/src/testdata/nistp384key.pkcs8.der | Bin 0 -> 185 bytes
rustls-0.21.2/rustls/src/testdata/prf-result.1.bin | 1 +
rustls-0.21.2/rustls/src/testdata/prf-result.2.bin | 1 +
.../rustls/src/testdata/rsa2048key.pkcs1.der | Bin 0 -> 1190 bytes
.../rustls/src/testdata/rsa2048key.pkcs8.der | Bin 0 -> 1216 bytes
rustls-0.21.2/rustls/src/ticketer.rs | 338 ++
rustls-0.21.2/rustls/src/tls12/cipher.rs | 236 +
rustls-0.21.2/rustls/src/tls12/mod.rs | 537 +++
rustls-0.21.2/rustls/src/tls12/prf.rs | 67 +
rustls-0.21.2/rustls/src/tls13/key_schedule.rs | 1003 +++++
rustls-0.21.2/rustls/src/tls13/mod.rs | 200 +
rustls-0.21.2/rustls/src/vecbuf.rs | 200 +
rustls-0.21.2/rustls/src/verify.rs | 888 ++++
rustls-0.21.2/rustls/src/verifybench.rs | 244 +
rustls-0.21.2/rustls/src/versions.rs | 99 +
rustls-0.21.2/rustls/src/x509.rs | 93 +
rustls-0.21.2/rustls/tests/api.rs | 4704 ++++++++++++++++++++
rustls-0.21.2/rustls/tests/bogo.rs | 18 +
rustls-0.21.2/rustls/tests/client_cert_verifier.rs | 209 +
rustls-0.21.2/rustls/tests/common/mod.rs | 475 ++
rustls-0.21.2/rustls/tests/key_log_file_env.rs | 104 +
rustls-0.21.2/rustls/tests/server_cert_verifier.rs | 277 ++
rustls-0.21.2/test-ca/build-a-pki.sh | 176 +
rustls-0.21.2/test-ca/ecdsa/ca.cert | 12 +
rustls-0.21.2/test-ca/ecdsa/ca.der | Bin 0 -> 462 bytes
rustls-0.21.2/test-ca/ecdsa/ca.key | 6 +
rustls-0.21.2/test-ca/ecdsa/client.cert | 13 +
rustls-0.21.2/test-ca/ecdsa/client.chain | 24 +
rustls-0.21.2/test-ca/ecdsa/client.fullchain | 37 +
rustls-0.21.2/test-ca/ecdsa/client.key | 6 +
rustls-0.21.2/test-ca/ecdsa/client.req | 8 +
rustls-0.21.2/test-ca/ecdsa/end.cert | 13 +
rustls-0.21.2/test-ca/ecdsa/end.chain | 24 +
rustls-0.21.2/test-ca/ecdsa/end.fullchain | 37 +
rustls-0.21.2/test-ca/ecdsa/end.key | 5 +
rustls-0.21.2/test-ca/ecdsa/end.req | 7 +
rustls-0.21.2/test-ca/ecdsa/inter.cert | 12 +
rustls-0.21.2/test-ca/ecdsa/inter.key | 5 +
rustls-0.21.2/test-ca/ecdsa/inter.req | 7 +
rustls-0.21.2/test-ca/ecdsa/nistp256.pem | 3 +
rustls-0.21.2/test-ca/ecdsa/nistp384.pem | 3 +
rustls-0.21.2/test-ca/eddsa/ca.cert | 9 +
rustls-0.21.2/test-ca/eddsa/ca.der | Bin 0 -> 336 bytes
rustls-0.21.2/test-ca/eddsa/ca.key | 3 +
rustls-0.21.2/test-ca/eddsa/client.cert | 11 +
rustls-0.21.2/test-ca/eddsa/client.chain | 19 +
rustls-0.21.2/test-ca/eddsa/client.fullchain | 30 +
rustls-0.21.2/test-ca/eddsa/client.key | 3 +
rustls-0.21.2/test-ca/eddsa/client.req | 6 +
rustls-0.21.2/test-ca/eddsa/end.cert | 12 +
rustls-0.21.2/test-ca/eddsa/end.chain | 19 +
rustls-0.21.2/test-ca/eddsa/end.fullchain | 31 +
rustls-0.21.2/test-ca/eddsa/end.key | 3 +
rustls-0.21.2/test-ca/eddsa/end.req | 6 +
rustls-0.21.2/test-ca/eddsa/inter.cert | 10 +
rustls-0.21.2/test-ca/eddsa/inter.key | 3 +
rustls-0.21.2/test-ca/eddsa/inter.req | 6 +
rustls-0.21.2/test-ca/openssl.cnf | 25 +
rustls-0.21.2/test-ca/rsa/ca.cert | 30 +
rustls-0.21.2/test-ca/rsa/ca.der | Bin 0 -> 1305 bytes
rustls-0.21.2/test-ca/rsa/ca.key | 52 +
rustls-0.21.2/test-ca/rsa/client.cert | 23 +
rustls-0.21.2/test-ca/rsa/client.chain | 57 +
rustls-0.21.2/test-ca/rsa/client.fullchain | 80 +
rustls-0.21.2/test-ca/rsa/client.key | 28 +
rustls-0.21.2/test-ca/rsa/client.req | 15 +
rustls-0.21.2/test-ca/rsa/client.rsa | 27 +
rustls-0.21.2/test-ca/rsa/end.cert | 24 +
rustls-0.21.2/test-ca/rsa/end.chain | 57 +
rustls-0.21.2/test-ca/rsa/end.fullchain | 81 +
rustls-0.21.2/test-ca/rsa/end.key | 28 +
rustls-0.21.2/test-ca/rsa/end.req | 15 +
rustls-0.21.2/test-ca/rsa/end.rsa | 27 +
rustls-0.21.2/test-ca/rsa/inter.cert | 27 +
rustls-0.21.2/test-ca/rsa/inter.key | 40 +
rustls-0.21.2/test-ca/rsa/inter.req | 21 +
tonic/.github/ISSUE_TEMPLATE/bug_report.md | 58 +
tonic/.github/ISSUE_TEMPLATE/feature_request.md | 35 +
tonic/.github/PULL_REQUEST_TEMPLATE.md | 23 +
tonic/.github/assets/tonic-banner.svg | 31 +
tonic/.github/assets/tonic-docs.png | Bin 0 -> 7654 bytes
tonic/.github/workflows/CI.yml | 144 +
tonic/.gitignore | 4 +
tonic/CHANGELOG.md | 609 +++
tonic/CONTRIBUTING.md | 462 ++
tonic/Cargo.toml | 27 +
tonic/LICENSE | 19 +
tonic/README.md | 152 +
tonic/SECURITY.md | 9 +
tonic/deny.toml | 59 +
tonic/examples/Cargo.toml | 318 ++
tonic/examples/LICENSE | 19 +
tonic/examples/README.md | 185 +
tonic/examples/build.rs | 60 +
tonic/examples/data/gcp/roots.pem | 1257 ++++++
tonic/examples/data/route_guide_db.json | 702 +++
tonic/examples/data/tls/ca.pem | 28 +
tonic/examples/data/tls/client1.key | 28 +
tonic/examples/data/tls/client1.pem | 19 +
tonic/examples/data/tls/client2.key | 28 +
tonic/examples/data/tls/client2.pem | 19 +
tonic/examples/data/tls/client_ca.pem | 19 +
tonic/examples/data/tls/server.key | 28 +
tonic/examples/data/tls/server.pem | 27 +
tonic/examples/helloworld-tutorial.md | 325 ++
tonic/examples/proto/attrs/attrs.proto | 19 +
tonic/examples/proto/echo/echo.proto | 43 +
.../proto/googleapis/google/api/annotations.proto | 31 +
.../proto/googleapis/google/api/client.proto | 99 +
.../googleapis/google/api/field_behavior.proto | 84 +
.../proto/googleapis/google/api/http.proto | 375 ++
.../proto/googleapis/google/api/resource.proto | 299 ++
.../proto/googleapis/google/pubsub/v1/pubsub.proto | 1316 ++++++
.../proto/googleapis/google/pubsub/v1/schema.proto | 289 ++
tonic/examples/proto/helloworld/helloworld.proto | 37 +
tonic/examples/proto/routeguide/route_guide.proto | 110 +
tonic/examples/proto/unaryecho/echo.proto | 37 +
tonic/examples/routeguide-tutorial.md | 833 ++++
tonic/examples/src/authentication/client.rs | 28 +
tonic/examples/src/authentication/server.rs | 40 +
tonic/examples/src/autoreload/server.rs | 52 +
tonic/examples/src/blocking/client.rs | 53 +
tonic/examples/src/blocking/server.rs | 41 +
tonic/examples/src/compression/client.rs | 30 +
tonic/examples/src/compression/server.rs | 43 +
tonic/examples/src/dynamic_load_balance/client.rs | 81 +
tonic/examples/src/dynamic_load_balance/server.rs | 54 +
tonic/examples/src/gcp/README.md | 21 +
tonic/examples/src/gcp/client.rs | 56 +
tonic/examples/src/grpc-web/client.rs | 74 +
tonic/examples/src/grpc-web/server.rs | 47 +
tonic/examples/src/health/README.md | 16 +
tonic/examples/src/health/server.rs | 67 +
tonic/examples/src/helloworld/client.rs | 21 +
tonic/examples/src/helloworld/server.rs | 41 +
tonic/examples/src/hyper_warp/client.rs | 47 +
tonic/examples/src/hyper_warp/server.rs | 123 +
tonic/examples/src/hyper_warp_multiplex/client.rs | 61 +
tonic/examples/src/hyper_warp_multiplex/server.rs | 150 +
tonic/examples/src/interceptor/client.rs | 76 +
tonic/examples/src/interceptor/server.rs | 62 +
tonic/examples/src/json-codec/client.rs | 28 +
tonic/examples/src/json-codec/common.rs | 80 +
tonic/examples/src/json-codec/server.rs | 48 +
tonic/examples/src/load_balance/client.rs | 29 +
tonic/examples/src/load_balance/server.rs | 54 +
tonic/examples/src/mock/mock.rs | 79 +
tonic/examples/src/multiplex/client.rs | 39 +
tonic/examples/src/multiplex/server.rs | 65 +
tonic/examples/src/optional/server.rs | 53 +
tonic/examples/src/reflection/server.rs | 46 +
tonic/examples/src/richer-error/client.rs | 52 +
tonic/examples/src/richer-error/client_vec.rs | 58 +
tonic/examples/src/richer-error/server.rs | 71 +
tonic/examples/src/richer-error/server_vec.rs | 71 +
tonic/examples/src/routeguide/client.rs | 125 +
tonic/examples/src/routeguide/data.rs | 34 +
tonic/examples/src/routeguide/server.rs | 194 +
tonic/examples/src/streaming/client.rs | 86 +
tonic/examples/src/streaming/server.rs | 155 +
tonic/examples/src/timeout/client.rs | 28 +
tonic/examples/src/timeout/server.rs | 45 +
tonic/examples/src/tls/client.rs | 33 +
tonic/examples/src/tls/server.rs | 55 +
tonic/examples/src/tls_client_auth/client.rs | 38 +
tonic/examples/src/tls_client_auth/server.rs | 52 +
tonic/examples/src/tls_rustls/client.rs | 68 +
tonic/examples/src/tls_rustls/server.rs | 117 +
tonic/examples/src/tower/client.rs | 86 +
tonic/examples/src/tower/server.rs | 111 +
tonic/examples/src/tracing/client.rs | 37 +
tonic/examples/src/tracing/server.rs | 52 +
tonic/examples/src/uds/client.rs | 44 +
tonic/examples/src/uds/server.rs | 66 +
tonic/interop/Cargo.toml | 40 +
tonic/interop/LICENSE | 19 +
tonic/interop/bin/client_darwin_amd64 | Bin 0 -> 12893108 bytes
tonic/interop/bin/client_linux_amd64 | Bin 0 -> 12983382 bytes
tonic/interop/bin/client_windows_amd64.exe | Bin 0 -> 12904960 bytes
tonic/interop/bin/server_darwin_amd64 | Bin 0 -> 11817700 bytes
tonic/interop/bin/server_linux_amd64 | Bin 0 -> 11909409 bytes
tonic/interop/bin/server_windows_amd64.exe | Bin 0 -> 11830784 bytes
tonic/interop/build.rs | 8 +
tonic/interop/data/README.md | 17 +
tonic/interop/data/ca.pem | 20 +
tonic/interop/data/cert-generator/.gitignore | 3 +
tonic/interop/data/cert-generator/ca.tf | 27 +
tonic/interop/data/cert-generator/server_certs.tf | 40 +
tonic/interop/data/server1.key | 27 +
tonic/interop/data/server1.pem | 20 +
tonic/interop/proto/grpc/testing/empty.proto | 27 +
tonic/interop/proto/grpc/testing/messages.proto | 168 +
tonic/interop/proto/grpc/testing/test.proto | 78 +
tonic/interop/src/bin/client.rs | 131 +
tonic/interop/src/bin/server.rs | 51 +
tonic/interop/src/client.rs | 410 ++
tonic/interop/src/lib.rs | 140 +
tonic/interop/src/server.rs | 262 ++
tonic/interop/test.sh | 85 +
tonic/interop/update_binaries.sh | 33 +
tonic/prepare-release.sh | 47 +
tonic/publish-release.sh | 32 +
tonic/rustfmt.toml | 1 +
tonic/tests/ambiguous_methods/Cargo.toml | 19 +
tonic/tests/ambiguous_methods/LICENSE | 19 +
tonic/tests/ambiguous_methods/build.rs | 3 +
.../proto/ambiguous_methods.proto | 19 +
tonic/tests/ambiguous_methods/src/main.rs | 8 +
tonic/tests/compression/Cargo.toml | 26 +
tonic/tests/compression/LICENSE | 19 +
tonic/tests/compression/build.rs | 3 +
tonic/tests/compression/proto/test.proto | 19 +
.../tests/compression/src/bidirectional_stream.rs | 77 +
tonic/tests/compression/src/client_stream.rs | 166 +
tonic/tests/compression/src/compressing_request.rs | 129 +
.../tests/compression/src/compressing_response.rs | 356 ++
tonic/tests/compression/src/lib.rs | 121 +
tonic/tests/compression/src/server_stream.rs | 149 +
tonic/tests/compression/src/util.rs | 102 +
tonic/tests/disable_comments/Cargo.toml | 20 +
tonic/tests/disable_comments/build.rs | 11 +
tonic/tests/disable_comments/proto/test.proto | 29 +
tonic/tests/disable_comments/src/lib.rs | 3 +
.../disable_comments/tests/disable_comments.rs | 15 +
tonic/tests/extern_path/my_application/Cargo.toml | 20 +
tonic/tests/extern_path/my_application/LICENSE | 19 +
tonic/tests/extern_path/my_application/build.rs | 11 +
tonic/tests/extern_path/my_application/src/main.rs | 26 +
.../extern_path/proto/my_application/service.proto | 25 +
tonic/tests/extern_path/proto/uuid/uuid.proto | 13 +
tonic/tests/extern_path/uuid/Cargo.toml | 17 +
tonic/tests/extern_path/uuid/LICENSE | 19 +
tonic/tests/extern_path/uuid/build.rs | 3 +
tonic/tests/extern_path/uuid/src/lib.rs | 11 +
tonic/tests/included_service/Cargo.toml | 19 +
tonic/tests/included_service/LICENSE | 19 +
tonic/tests/included_service/build.rs | 3 +
tonic/tests/included_service/proto/includee.proto | 11 +
tonic/tests/included_service/proto/includer.proto | 11 +
tonic/tests/included_service/src/lib.rs | 8 +
tonic/tests/integration_tests/Cargo.toml | 35 +
tonic/tests/integration_tests/LICENSE | 19 +
tonic/tests/integration_tests/build.rs | 4 +
tonic/tests/integration_tests/proto/stream.proto | 10 +
tonic/tests/integration_tests/proto/test.proto | 21 +
tonic/tests/integration_tests/src/lib.rs | 61 +
.../tests/integration_tests/tests/client_layer.rs | 58 +
.../tests/complex_tower_middleware.rs | 113 +
.../tests/integration_tests/tests/connect_info.rs | 124 +
tonic/tests/integration_tests/tests/connection.rs | 93 +
tonic/tests/integration_tests/tests/extensions.rs | 144 +
tonic/tests/integration_tests/tests/interceptor.rs | 53 +
.../integration_tests/tests/max_message_size.rs | 278 ++
tonic/tests/integration_tests/tests/origin.rs | 100 +
tonic/tests/integration_tests/tests/status.rs | 201 +
tonic/tests/integration_tests/tests/streams.rs | 47 +
tonic/tests/integration_tests/tests/timeout.rs | 92 +
tonic/tests/integration_tests/tests/user_agent.rs | 55 +
tonic/tests/root-crate-path/Cargo.toml | 14 +
tonic/tests/root-crate-path/LICENSE | 19 +
tonic/tests/root-crate-path/build.rs | 7 +
tonic/tests/root-crate-path/foo.proto | 10 +
tonic/tests/root-crate-path/src/main.rs | 20 +
tonic/tests/same_name/Cargo.toml | 19 +
tonic/tests/same_name/LICENSE | 19 +
tonic/tests/same_name/build.rs | 3 +
tonic/tests/same_name/proto/foo.proto | 11 +
tonic/tests/same_name/src/lib.rs | 3 +
tonic/tests/service_named_result/Cargo.toml | 17 +
tonic/tests/service_named_result/LICENSE | 19 +
tonic/tests/service_named_result/build.rs | 3 +
.../tests/service_named_result/proto/result.proto | 13 +
tonic/tests/service_named_result/src/lib.rs | 3 +
tonic/tests/service_named_service/Cargo.toml | 19 +
tonic/tests/service_named_service/LICENSE | 19 +
tonic/tests/service_named_service/build.rs | 3 +
tonic/tests/service_named_service/proto/foo.proto | 11 +
tonic/tests/service_named_service/src/lib.rs | 3 +
tonic/tests/stream_conflict/Cargo.toml | 19 +
tonic/tests/stream_conflict/LICENSE | 19 +
tonic/tests/stream_conflict/build.rs | 3 +
.../stream_conflict/proto/stream_conflict.proto | 10 +
tonic/tests/stream_conflict/src/main.rs | 7 +
tonic/tests/wellknown-compiled/Cargo.toml | 23 +
tonic/tests/wellknown-compiled/LICENSE | 19 +
tonic/tests/wellknown-compiled/build.rs | 13 +
tonic/tests/wellknown-compiled/proto/google.proto | 16 +
tonic/tests/wellknown-compiled/proto/test.proto | 11 +
tonic/tests/wellknown-compiled/src/lib.rs | 18 +
tonic/tests/wellknown/Cargo.toml | 20 +
tonic/tests/wellknown/LICENSE | 19 +
tonic/tests/wellknown/build.rs | 3 +
tonic/tests/wellknown/proto/wellknown.proto | 13 +
tonic/tests/wellknown/src/lib.rs | 3 +
tonic/tonic-build/Cargo.toml | 31 +
tonic/tonic-build/LICENSE | 19 +
tonic/tonic-build/README.md | 104 +
tonic/tonic-build/src/client.rs | 363 ++
tonic/tonic-build/src/code_gen.rs | 102 +
tonic/tonic-build/src/lib.rs | 356 ++
tonic/tonic-build/src/manual.rs | 491 ++
tonic/tonic-build/src/prost.rs | 544 +++
tonic/tonic-build/src/server.rs | 615 +++
tonic/tonic-health/Cargo.toml | 31 +
tonic/tonic-health/LICENSE | 19 +
tonic/tonic-health/README.md | 14 +
tonic/tonic-health/proto/health.proto | 63 +
tonic/tonic-health/src/generated/grpc.health.v1.rs | 452 ++
.../tonic-health/src/generated/grpc_health_v1.bin | Bin 0 -> 2875 bytes
tonic/tonic-health/src/lib.rs | 78 +
tonic/tonic-health/src/server.rs | 325 ++
tonic/tonic-health/tests/bootstrap.rs | 30 +
tonic/tonic-reflection/Cargo.toml | 31 +
tonic/tonic-reflection/LICENSE | 19 +
tonic/tonic-reflection/README.md | 3 +
tonic/tonic-reflection/proto/reflection.proto | 136 +
.../src/generated/grpc.reflection.v1alpha.rs | 460 ++
.../src/generated/reflection_v1alpha1.bin | Bin 0 -> 7190 bytes
tonic/tonic-reflection/src/lib.rs | 41 +
tonic/tonic-reflection/src/server.rs | 379 ++
tonic/tonic-reflection/tests/bootstrap.rs | 30 +
tonic/tonic-reflection/tests/server.rs | 149 +
tonic/tonic-types/Cargo.toml | 26 +
tonic/tonic-types/LICENSE | 19 +
tonic/tonic-types/README.md | 145 +
tonic/tonic-types/proto/error_details.proto | 250 ++
tonic/tonic-types/proto/status.proto | 47 +
tonic/tonic-types/src/generated/google.rpc.rs | 294 ++
tonic/tonic-types/src/generated/types.bin | Bin 0 -> 24071 bytes
tonic/tonic-types/src/lib.rs | 188 +
.../src/richer_error/error_details/mod.rs | 882 ++++
.../src/richer_error/error_details/vec.rs | 100 +
tonic/tonic-types/src/richer_error/mod.rs | 931 ++++
.../src/richer_error/std_messages/bad_request.rs | 184 +
.../src/richer_error/std_messages/debug_info.rs | 110 +
.../src/richer_error/std_messages/error_info.rs | 131 +
.../src/richer_error/std_messages/help.rs | 180 +
.../src/richer_error/std_messages/loc_message.rs | 113 +
.../src/richer_error/std_messages/mod.rs | 39 +
.../src/richer_error/std_messages/prec_failure.rs | 205 +
.../src/richer_error/std_messages/quota_failure.rs | 182 +
.../src/richer_error/std_messages/request_info.rs | 112 +
.../src/richer_error/std_messages/resource_info.rs | 128 +
.../src/richer_error/std_messages/retry_info.rs | 148 +
tonic/tonic-types/tests/bootstrap.rs | 29 +
tonic/tonic-web/Cargo.toml | 33 +
tonic/tonic-web/LICENSE | 19 +
tonic/tonic-web/README.md | 39 +
tonic/tonic-web/src/call.rs | 307 ++
tonic/tonic-web/src/layer.rs | 37 +
tonic/tonic-web/src/lib.rs | 207 +
tonic/tonic-web/src/service.rs | 454 ++
tonic/tonic-web/tests/integration/Cargo.toml | 20 +
tonic/tonic-web/tests/integration/LICENSE | 19 +
tonic/tonic-web/tests/integration/build.rs | 11 +
tonic/tonic-web/tests/integration/proto/test.proto | 19 +
tonic/tonic-web/tests/integration/src/lib.rs | 88 +
tonic/tonic-web/tests/integration/tests/grpc.rs | 165 +
.../tonic-web/tests/integration/tests/grpc_web.rs | 146 +
tonic/tonic/Cargo.toml | 104 +
tonic/tonic/LICENSE | 19 +
tonic/tonic/benches-disabled/README.md | 37 +
tonic/tonic/benches-disabled/bench_main.rs | 12 +
.../benchmarks/compiled_protos/diverse_types.rs | 128 +
.../benchmarks/compiled_protos/helloworld.rs | 167 +
.../benchmarks/compiled_protos/mod.rs | 2 +
tonic/tonic/benches-disabled/benchmarks/mod.rs | 5 +
.../benchmarks/request_response.rs | 48 +
.../benchmarks/request_response_diverse_types.rs | 95 +
tonic/tonic/benches-disabled/benchmarks/utils.rs | 11 +
.../proto/diverse_types/diverse_types.proto | 79 +
.../proto/helloworld/helloworld.proto | 37 +
tonic/tonic/benches/decode.rs | 155 +
tonic/tonic/src/body.rs | 22 +
tonic/tonic/src/client/grpc.rs | 469 ++
tonic/tonic/src/client/mod.rs | 23 +
tonic/tonic/src/client/service.rs | 50 +
tonic/tonic/src/codec/buffer.rs | 121 +
tonic/tonic/src/codec/compression.rs | 227 +
tonic/tonic/src/codec/decode.rs | 420 ++
tonic/tonic/src/codec/encode.rs | 274 ++
tonic/tonic/src/codec/mod.rs | 82 +
tonic/tonic/src/codec/prost.rs | 339 ++
tonic/tonic/src/codegen.rs | 24 +
tonic/tonic/src/extensions.rs | 97 +
tonic/tonic/src/lib.rs | 136 +
tonic/tonic/src/macros.rs | 77 +
tonic/tonic/src/metadata/encoding.rs | 224 +
tonic/tonic/src/metadata/key.rs | 311 ++
tonic/tonic/src/metadata/map.rs | 2722 +++++++++++
tonic/tonic/src/metadata/mod.rs | 43 +
tonic/tonic/src/metadata/value.rs | 1042 +++++
tonic/tonic/src/request.rs | 511 +++
tonic/tonic/src/response.rs | 146 +
tonic/tonic/src/server/grpc.rs | 510 +++
tonic/tonic/src/server/mod.rs | 26 +
tonic/tonic/src/server/service.rs | 122 +
tonic/tonic/src/service/interceptor.rs | 360 ++
tonic/tonic/src/service/mod.rs | 7 +
tonic/tonic/src/status.rs | 1011 +++++
tonic/tonic/src/transport/channel/endpoint.rs | 469 ++
tonic/tonic/src/transport/channel/mod.rs | 239 +
tonic/tonic/src/transport/channel/tls.rs | 86 +
tonic/tonic/src/transport/error.rs | 82 +
tonic/tonic/src/transport/mod.rs | 123 +
tonic/tonic/src/transport/server/conn.rs | 169 +
tonic/tonic/src/transport/server/incoming.rs | 212 +
tonic/tonic/src/transport/server/mod.rs | 848 ++++
tonic/tonic/src/transport/server/recover_error.rs | 135 +
tonic/tonic/src/transport/server/tls.rs | 86 +
tonic/tonic/src/transport/server/unix.rs | 31 +
tonic/tonic/src/transport/service/add_origin.rs | 69 +
tonic/tonic/src/transport/service/connection.rs | 126 +
tonic/tonic/src/transport/service/connector.rs | 113 +
tonic/tonic/src/transport/service/discover.rs | 56 +
tonic/tonic/src/transport/service/executor.rs | 43 +
tonic/tonic/src/transport/service/grpc_timeout.rs | 288 ++
tonic/tonic/src/transport/service/io.rs | 166 +
tonic/tonic/src/transport/service/mod.rs | 25 +
tonic/tonic/src/transport/service/reconnect.rs | 222 +
tonic/tonic/src/transport/service/router.rs | 104 +
tonic/tonic/src/transport/service/tls.rs | 336 ++
tonic/tonic/src/transport/service/user_agent.rs | 70 +
tonic/tonic/src/transport/tls.rs | 57 +
tonic/tonic/src/util.rs | 37 +
1101 files changed, 82192 insertions(+)
diff --git a/README.md b/README.md
index 67c7838..6de9b70 100644
--- a/README.md
+++ b/README.md
@@ -19,5 +19,7 @@ Below list the crates:
- [rustface](https://github.com/atomashpolskiy/rustface/tree/93c97ed7d0fa1cc3553f5483d865292cc37ceb98)
- [rustls](https://github.com/rustls/rustls/tree/92600efb4f6cc25bfe0c133b0b922d915ed826e3)
- [rustls-0.19.1](https://github.com/rustls/rustls/tree/3c390ef7c459cc1ef2504bd9d1fefdcb7eea1c20)
+- [rustls-0.21.2](https://github.com/rustls/rustls/tree/5053fde25bb0fde5715a95601a62c8fae626600e)
- [rusty-machine](https://github.com/AtheMathmo/rusty-machine/tree/e7cc57fc5e0f384aeb19169336deb5f66655c76a)
- [tantivy](https://github.com/quickwit-oss/tantivy/tree/6761237ec71b4e25ee4b5661e794b4755c6c5e56)
+- [tonic](https://github.com/hyperium/tonic/tree/ae7580160431cd25c1eecda4c85014ef6ce8d93f)
diff --git a/rustls-0.21.2/.github/codecov.yml b/rustls-0.21.2/.github/codecov.yml
new file mode 100644
index 0000000..1c9c964
--- /dev/null
+++ b/rustls-0.21.2/.github/codecov.yml
@@ -0,0 +1,8 @@
+coverage:
+ status:
+ patch:
+ default:
+ threshold: 0.05%
+ project:
+ default:
+ threshold: 0.05%
diff --git a/rustls-0.21.2/.github/dependabot.yml b/rustls-0.21.2/.github/dependabot.yml
new file mode 100644
index 0000000..c7b634c
--- /dev/null
+++ b/rustls-0.21.2/.github/dependabot.yml
@@ -0,0 +1,11 @@
+version: 2
+updates:
+- package-ecosystem: cargo
+ directory: "/"
+ schedule:
+ interval: daily
+ open-pull-requests-limit: 10
+- package-ecosystem: github-actions
+ directory: "/"
+ schedule:
+ interval: weekly
diff --git a/rustls-0.21.2/.github/workflows/build.yml b/rustls-0.21.2/.github/workflows/build.yml
new file mode 100644
index 0000000..93bb789
--- /dev/null
+++ b/rustls-0.21.2/.github/workflows/build.yml
@@ -0,0 +1,267 @@
+name: rustls
+
+permissions:
+ contents: read
+
+on:
+ push:
+ pull_request:
+ schedule:
+ - cron: '0 18 * * *'
+
+jobs:
+ build:
+ name: Build+test
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ # test a bunch of toolchains on ubuntu
+ rust:
+ - stable
+ - beta
+ - nightly
+ os: [ubuntu-20.04]
+ # but only stable on macos/windows (slower platforms)
+ include:
+ - os: macos-latest
+ rust: stable
+ - os: windows-latest
+ rust: stable
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - name: Install ${{ matrix.rust }} toolchain
+ uses: dtolnay/rust-toolchain@master
+ with:
+ toolchain: ${{ matrix.rust }}
+
+ - name: cargo build (debug; default features)
+ run: cargo build
+
+ - name: cargo test (debug; all features)
+ run: cargo test --all-features
+ env:
+ RUST_BACKTRACE: 1
+
+ msrv:
+ name: MSRV
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - uses: dtolnay/rust-toolchain@master
+ with:
+ toolchain: "1.60"
+
+ - run: cargo check --lib --all-features -p rustls
+
+ features:
+ name: Features
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - name: Install stable toolchain
+ uses: dtolnay/rust-toolchain@stable
+
+ - name: cargo build (debug; default features)
+ run: cargo build
+
+ - name: cargo test (debug; default features)
+ run: cargo test
+ env:
+ RUST_BACKTRACE: 1
+
+ - name: cargo build (debug; no default features)
+ run: cargo test --no-default-features
+
+ - name: cargo test (debug; no default features; tls12)
+ run: cargo test --no-default-features --features tls12
+
+ - name: cargo test (release; no run)
+ run: cargo test --release --no-run
+
+ bogo:
+ name: BoGo test suite
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - name: Install stable toolchain
+ uses: dtolnay/rust-toolchain@stable
+
+ - name: Install golang toolchain
+ uses: actions/setup-go@v4
+ with:
+ go-version: "1.20"
+
+ - name: Run test suite
+ working-directory: bogo
+ run: ./runme
+
+
+ fuzz:
+ name: Smoke-test fuzzing targets
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - name: Install nightly toolchain
+ uses: dtolnay/rust-toolchain@nightly
+
+ - name: Install cargo fuzz
+ run: cargo install cargo-fuzz
+
+ - name: Smoke-test fuzz targets
+ run: |
+ cargo fuzz build
+ for target in $(cargo fuzz list) ; do
+ cargo fuzz run $target -- -max_total_time=10
+ done
+
+ benchmarks:
+ name: Smoke-test benchmarks
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - name: Install stable toolchain
+ uses: dtolnay/rust-toolchain@stable
+
+ - name: Smoke-test benchmark program
+ run: cargo run --release --example bench
+
+ docs:
+ name: Check for documentation errors
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - name: Install rust toolchain
+ uses: dtolnay/rust-toolchain@nightly
+
+ - name: cargo doc (all features)
+ run: cargo doc --all-features --no-deps --workspace
+ env:
+ RUSTDOCFLAGS: -Dwarnings
+
+ coverage:
+ name: Measure coverage
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - name: Install rust toolchain
+ uses: dtolnay/rust-toolchain@nightly
+ with:
+ components: llvm-tools
+
+ - name: Install cargo-llvm-cov
+ run: cargo install cargo-llvm-cov
+
+ - name: Install golang toolchain
+ uses: actions/setup-go@v4
+ with:
+ go-version: "1.20"
+
+ - name: Measure coverage
+ run: ./admin/coverage --lcov --output-path final.info
+
+ - name: Report to codecov.io
+ uses: codecov/codecov-action@v3
+ with:
+ file: final.info
+ fail_ci_if_error: false
+
+
+ minver:
+ name: Check minimum versions
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - name: Install rust toolchain
+ uses: dtolnay/rust-toolchain@nightly
+
+ - name: cargo test (debug; all features; -Z minimal-versions)
+ run: cargo -Z minimal-versions test --all-features
+
+ format:
+ name: Format
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+ - name: Install rust toolchain
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ components: rustfmt
+ - name: Check formatting
+ run: cargo fmt --all -- --check
+ - name: Check formatting (connect-tests workspace)
+ run: cargo fmt --all --manifest-path=connect-tests/Cargo.toml -- --check
+ - name: Check formatting (fuzz workspace)
+ run: cargo fmt --all --manifest-path=fuzz/Cargo.toml -- --check
+
+ clippy:
+ name: Clippy
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+ - name: Install rust toolchain
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ components: clippy
+ - run: cargo clippy --package rustls --all-features -- --deny warnings
+ - run: cargo clippy --package rustls --no-default-features -- --deny warnings
+ - run: cargo clippy --manifest-path=connect-tests/Cargo.toml --all-features -- --deny warnings
+ - run: cargo clippy --manifest-path=fuzz/Cargo.toml --all-features -- --deny warnings
+
+ clippy-nightly:
+ name: Clippy (Nightly)
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+ - name: Install rust toolchain
+ uses: dtolnay/rust-toolchain@nightly
+ with:
+ components: clippy
+ - run: cargo clippy --package rustls --all-features
+ - run: cargo clippy --package rustls --no-default-features -- --deny warnings
+ - run: cargo clippy --manifest-path=connect-tests/Cargo.toml --all-features -- --deny warnings
+ - run: cargo clippy --manifest-path=fuzz/Cargo.toml --all-features -- --deny warnings
diff --git a/rustls-0.21.2/.github/workflows/cifuzz.yml b/rustls-0.21.2/.github/workflows/cifuzz.yml
new file mode 100644
index 0000000..f339219
--- /dev/null
+++ b/rustls-0.21.2/.github/workflows/cifuzz.yml
@@ -0,0 +1,26 @@
+name: CIFuzz
+on: [pull_request]
+jobs:
+ Fuzzing:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Build Fuzzers
+ id: build
+ uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
+ with:
+ oss-fuzz-project-name: 'rustls'
+ dry-run: false
+ language: rust
+ - name: Run Fuzzers
+ uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
+ with:
+ oss-fuzz-project-name: 'rustls'
+ fuzz-seconds: 150
+ dry-run: false
+ language: rust
+ - name: Upload Crash
+ uses: actions/upload-artifact@v3
+ if: failure() && steps.build.outcome == 'success'
+ with:
+ name: artifacts
+ path: ./out/artifacts
diff --git a/rustls-0.21.2/.github/workflows/connect-tests.yml b/rustls-0.21.2/.github/workflows/connect-tests.yml
new file mode 100644
index 0000000..8721a2b
--- /dev/null
+++ b/rustls-0.21.2/.github/workflows/connect-tests.yml
@@ -0,0 +1,46 @@
+name: connect-tests
+
+permissions:
+ contents: read
+
+on:
+ schedule:
+ # We only run connectivity tests on a weekly basis, choosing a weekday and
+ # a time slightly offset from the top of the hour.
+ - cron: '15 12 * * 3'
+
+jobs:
+ build:
+ name: Connectivity Tests
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ # test a bunch of toolchains on ubuntu
+ rust:
+ - stable
+ - beta
+ - nightly
+ - "1.60" # MSRV
+ os: [ubuntu-20.04]
+ # but only stable on macos/windows (slower platforms)
+ include:
+ - os: macos-latest
+ rust: stable
+ - os: windows-latest
+ rust: stable
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - name: Install ${{ matrix.rust }} toolchain
+ uses: dtolnay/rust-toolchain@master
+ with:
+ toolchain: ${{ matrix.rust }}
+
+ - run: cargo build
+
+ - run: cargo test --manifest-path=connect-tests/Cargo.toml
+ env:
+ RUST_BACKTRACE: 1
diff --git a/rustls-0.21.2/.gitignore b/rustls-0.21.2/.gitignore
new file mode 100644
index 0000000..6df2a73
--- /dev/null
+++ b/rustls-0.21.2/.gitignore
@@ -0,0 +1,13 @@
+Cargo.lock
+target/
+*.gcda
+*.gcno
+*.info
+sslkeylogfile.txt
+admin/rustfmt
+.DS_Store
+._.DS_Store
+**/.DS_Store
+**/._.DS_Store
+/.idea
+/default.profraw
diff --git a/rustls-0.21.2/.rustfmt.toml b/rustls-0.21.2/.rustfmt.toml
new file mode 100644
index 0000000..e70b64a
--- /dev/null
+++ b/rustls-0.21.2/.rustfmt.toml
@@ -0,0 +1 @@
+chain_width=40
diff --git a/rustls-0.21.2/CODE_OF_CONDUCT.md b/rustls-0.21.2/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..3617743
--- /dev/null
+++ b/rustls-0.21.2/CODE_OF_CONDUCT.md
@@ -0,0 +1,5 @@
+# Code of conduct
+
+This project adopts the [Rust Code of Conduct](https://www.rust-lang.org/policies/code-of-conduct).
+Please email rustls-mod@googlegroups.com to report any instance of misconduct, or if you
+have any comments or questions on the Code of Conduct.
diff --git a/rustls-0.21.2/CONTRIBUTING.md b/rustls-0.21.2/CONTRIBUTING.md
new file mode 100644
index 0000000..4efaba6
--- /dev/null
+++ b/rustls-0.21.2/CONTRIBUTING.md
@@ -0,0 +1,56 @@
+# Contributing
+
+Thanks for considering helping this project. There are many
+ways you can help: using the library and reporting bugs,
+reporting usability issues, making additions and improvements
+to the library, documentation and finding security bugs.
+
+## Reporting bugs
+
+Please file a github issue. Include as much information as
+possible. Suspected protocol bugs are easier debugged with
+a pcap or reproduction steps.
+
+Feel free to file github issues to get help, or ask a question.
+
+## Code changes
+
+Some ideas and guidelines for contributions:
+
+- For large features, file an issue prior to starting work.
+ This means everyone can see what is in progress prior to a PR.
+- Feel free to submit a PR even if the work is not totally finished,
+ for feedback or to hand-over.
+- Prefer not to reference github issue or PR numbers in commits.
+- Try to keep code formatting commits separate from functional commits.
+- See [`.github/workflows/build.yml`](.github/workflows/build.yml) for
+ how to run the various test suites, and how to make coverage measurements.
+- I run `cargo outdated` prior to major releases; but PRs to update specific
+ dependencies are welcome.
+
+## Security bugs
+
+Please report security bugs by filing a github issue, or by
+email to jbp@jbp.io if you want to disclose privately. I'll then:
+
+- Prepare a fix and regression tests.
+- Backport the fix and make a patch release for most recent release.
+- Submit an advisory to [rustsec/advisory-db](https://github.com/RustSec/advisory-db).
+- Refer to the advisory on the main README.md and release notes.
+
+If you're *looking* for security bugs, this crate is set up for
+`cargo fuzz` but would benefit from more runtime, targets and corpora.
+
+## Testing
+
+- Features involving additions to the public API should have (at least)
+ API-level tests (see [`rustls/tests/api.rs`](rustls/tests/api.rs)).
+- Protocol additions should have some coverage -- consider enabling
+ corresponding tests in the bogo suite, or writing some ad hoc tests.
+
+PRs which cause test failures or a significant coverage decrease
+are unlikely to be accepted.
+
+## Licensing
+
+Contributions are made under [rustls's licenses](LICENSE).
diff --git a/rustls-0.21.2/Cargo.toml b/rustls-0.21.2/Cargo.toml
new file mode 100644
index 0000000..e43ca4d
--- /dev/null
+++ b/rustls-0.21.2/Cargo.toml
@@ -0,0 +1,9 @@
+[workspace]
+members = [
+ # tests and example code
+ "examples",
+ # the main library and tests
+ "rustls",
+]
+exclude = ["admin/rustfmt"]
+resolver = "2"
diff --git a/rustls-0.21.2/LICENSE b/rustls-0.21.2/LICENSE
new file mode 100644
index 0000000..df2af4f
--- /dev/null
+++ b/rustls-0.21.2/LICENSE
@@ -0,0 +1,10 @@
+Rustls is distributed under the following three licenses:
+
+- Apache License version 2.0.
+- MIT license.
+- ISC license.
+
+These are included as LICENSE-APACHE, LICENSE-MIT and LICENSE-ISC
+respectively. You may use this software under the terms of any
+of these licenses, at your option.
+
diff --git a/rustls-0.21.2/LICENSE-APACHE b/rustls-0.21.2/LICENSE-APACHE
new file mode 100644
index 0000000..16fe87b
--- /dev/null
+++ b/rustls-0.21.2/LICENSE-APACHE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+Copyright [yyyy] [name of copyright owner]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
diff --git a/rustls-0.21.2/LICENSE-ISC b/rustls-0.21.2/LICENSE-ISC
new file mode 100644
index 0000000..03acf1b
--- /dev/null
+++ b/rustls-0.21.2/LICENSE-ISC
@@ -0,0 +1,15 @@
+ISC License (ISC)
+Copyright (c) 2016, Joseph Birr-Pixton <jp...@gmail.com>
+
+Permission to use, copy, modify, and/or distribute this software for
+any purpose with or without fee is hereby granted, provided that the
+above copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
+AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
+PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
+THIS SOFTWARE.
diff --git a/rustls-0.21.2/LICENSE-MIT b/rustls-0.21.2/LICENSE-MIT
new file mode 100644
index 0000000..ef480e6
--- /dev/null
+++ b/rustls-0.21.2/LICENSE-MIT
@@ -0,0 +1,25 @@
+Copyright (c) 2016 Joseph Birr-Pixton <jp...@gmail.com>
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/rustls-0.21.2/README.md b/rustls-0.21.2/README.md
new file mode 100644
index 0000000..4046701
--- /dev/null
+++ b/rustls-0.21.2/README.md
@@ -0,0 +1,297 @@
+<p align="center">
+ <img width="460" height="300" src="https://raw.githubusercontent.com/rustls/rustls/main/admin/rustls-logo-web.png">
+</p>
+
+<p align="center">
+Rustls is a modern TLS library written in Rust. It uses <a href = "https://github.com/briansmith/ring"><em>ring</em></a> for cryptography and <a href = "https://github.com/rustls/webpki">webpki</a> for certificate
+verification.
+</p>
+
+# Status
+Rustls is mature and widely used. While most of the API surface is stable, we expect the next
+few releases will make further changes as needed to accomodate new features or performance improvements.
+
+If you'd like to help out, please see [CONTRIBUTING.md](CONTRIBUTING.md).
+
+[](https://github.com/rustls/rustls/actions/workflows/build.yml?query=branch%3Amain)
+[](https://codecov.io/gh/rustls/rustls/)
+[](https://docs.rs/rustls/)
+[](https://discord.gg/MCSB76RU96)
+
+## Release history
+
+* Release 0.21.2 (2023-06-14)
+ - Bump MSRV to 1.60 to track similar change in dependencies.
+ - Differentiate between unexpected and expected EOF in `Stream` and `OwnedStream`.
+ - `RootCertStore::add_parsable_certificates` now takes a `&[impl AsRef<[u8]>]`.
+ - Add QUIC V2 support.
+* Release 0.21.1 (2023-05-01)
+ - Remove `warn`-level logging from code paths that also return a `rustls::Error` with
+ the same information.
+ - Bug fix: ensure `ConnectionCommon::complete_io` flushes pending writes.
+ - Bug fix: correct encoding of acceptable issuer subjects when rustls operates as a server
+ requesting client authentication. This was a regression introduced in 0.21.0.
+* Release 0.21.0 (2023-03-29)
+ - Support for connecting to peers named with IP addresses. This means
+ rustls now depends on a fork of webpki - `rustls-webpki` - with a suitably
+ extended API.
+ - *Breaking change*: `StoresClientSessions` trait renamed to `ClientSessionStore` and
+ reworked to allow storage of multiple TLS1.3 tickets and avoid reuse of them.
+ This is a privacy improvement, see RFC8446 appendix C.4.
+ - *Breaking change*: the `DistinguishedNames` type alias no longer exists; the public
+ API now exports a `DistinguishedName` type, and the
+ `ClientCertVerifier::client_auth_root_subjects()` method now returns a
+ `&[DistinguishedName]` instead (with the lifetime constrained to the
+ verifier's).
+ - *Breaking change*: the `ClientCertVerifier` methods `client_auth_mandatory()`
+ and `client_auth_root_subjects()` no longer return an `Option`. You can now
+ use an `Acceptor` to decide whether to accept the connection based on information
+ from the `ClientHello` (like server name).
+ - *Breaking change*: rework `rustls::Error` to avoid String usage in
+ `PeerMisbehavedError`, `PeerIncompatibleError` and certificate errors.
+ Especially note that custom certificate verifiers should move to use the
+ new certificate errors. `Error` is now `non_exhaustive`, and so are the
+ inner enums used in its variants.
+ - *Breaking change*: replace `webpki::Error` appearing in the public API
+ in `RootCertStore::add`.
+ - The number of tickets sent by a TLS1.3 server is now configurable via
+ `ServerConfig::send_tls13_tickets`. Previously one ticket was sent, now
+ the default is four.
+ - *Breaking change*: remove deprecated methods from `Acceptor`.
+ - *Breaking change*: `AllowAnyAuthenticatedClient` and `AllowAnyAnonymousOrAuthenticatedClient`
+ `new` functions now return `Self`. A `boxed` function was added to both types to easily acquire
+ an `Arc<dyn ClientCertVerifier>`.
+ - *Breaking change*: `NoClientAuth::new` was renamed to `boxed`.
+ - *Breaking change*: the QUIC API has changed to provide QUIC-specific `ClientConnection` and
+ `ServerConnection` types, instead of using an extension trait.
+ - *Breaking change*: the QUIC `Secrets` constructor was changed to take
+ a `Side` instead of `bool`.
+ - *Breaking change*: the `export_keying_material` function on a `Connection`
+ was changed from returning `Result<(), Error>` to `Result<T, Error>` where
+ `T: AsMut<[u8]>`.
+ - *Breaking change*: the `sni_hostname` function on a `Connection` was renamed
+ to `server_name`.
+ - *Breaking change*: remove alternative type names deprecated in 0.20.0 (`RSASigningKey` vs.
+ `RsaSigningKey` etc.)
+ - *Breaking change*: the client config `session_storage` and `enable_tickets`
+ fields have been replaced by a more misuse resistant `Resumption` type that
+ combines the two options.
+
+See [RELEASE_NOTES.md](RELEASE_NOTES.md) for further change history.
+
+# Documentation
+Lives here: https://docs.rs/rustls/
+
+# Approach
+Rustls is a TLS library that aims to provide a good level of cryptographic security,
+requires no configuration to achieve that security, and provides no unsafe features or
+obsolete cryptography.
+
+## Current features
+
+* TLS1.2 and TLS1.3.
+* ECDSA, Ed25519 or RSA server authentication by clients.
+* ECDSA, Ed25519 or RSA server authentication by servers.
+* Forward secrecy using ECDHE; with curve25519, nistp256 or nistp384 curves.
+* AES128-GCM and AES256-GCM bulk encryption, with safe nonces.
+* ChaCha20-Poly1305 bulk encryption ([RFC7905](https://tools.ietf.org/html/rfc7905)).
+* ALPN support.
+* SNI support.
+* Tunable fragment size to make TLS messages match size of underlying transport.
+* Optional use of vectored IO to minimise system calls.
+* TLS1.2 session resumption.
+* TLS1.2 resumption via tickets ([RFC5077](https://tools.ietf.org/html/rfc5077)).
+* TLS1.3 resumption via tickets or session storage.
+* TLS1.3 0-RTT data for clients.
+* TLS1.3 0-RTT data for servers.
+* Client authentication by clients.
+* Client authentication by servers.
+* Extended master secret support ([RFC7627](https://tools.ietf.org/html/rfc7627)).
+* Exporters ([RFC5705](https://tools.ietf.org/html/rfc5705)).
+* OCSP stapling by servers.
+* SCT stapling by servers.
+* SCT verification by clients.
+
+## Possible future features
+
+* PSK support.
+* OCSP verification by clients.
+* Certificate pinning.
+
+## Non-features
+
+For reasons [explained in the manual](https://docs.rs/rustls/latest/rustls/manual/_02_tls_vulnerabilities/index.html),
+rustls does not and will not support:
+
+* SSL1, SSL2, SSL3, TLS1 or TLS1.1.
+* RC4.
+* DES or triple DES.
+* EXPORT ciphersuites.
+* MAC-then-encrypt ciphersuites.
+* Ciphersuites without forward secrecy.
+* Renegotiation.
+* Kerberos.
+* Compression.
+* Discrete-log Diffie-Hellman.
+* Automatic protocol version downgrade.
+
+There are plenty of other libraries that provide these features should you
+need them.
+
+### Platform support
+
+While Rustls itself is platform independent it uses
+[`ring`](https://crates.io/crates/ring) for implementing the cryptography in
+TLS. As a result, rustls only runs on platforms
+supported by `ring`. At the time of writing this means x86, x86-64, armv7, and
+aarch64. For more information see [the supported `ring` CI
+targets](https://github.com/briansmith/ring/blob/9cc0d45f4d8521f467bb3a621e74b1535e118188/.github/workflows/ci.yml#L151-L167).
+
+Rustls requires Rust 1.60 or later.
+
+# Example code
+There are two example programs which use
+[mio](https://github.com/carllerche/mio) to do asynchronous IO.
+
+## Client example program
+The client example program is named `tlsclient-mio`. The interface looks like:
+
+```tlsclient-mio
+Connects to the TLS server at hostname:PORT. The default PORT
+is 443. By default, this reads a request from stdin (to EOF)
+before making the connection. --http replaces this with a
+basic HTTP GET request for /.
+
+If --cafile is not supplied, a built-in set of CA certificates
+are used from the webpki-roots crate.
+
+Usage:
+ tlsclient-mio [options] [--suite SUITE ...] [--proto PROTO ...] [--protover PROTOVER ...] <hostname>
+ tlsclient-mio (--version | -v)
+ tlsclient-mio (--help | -h)
+
+Options:
+ -p, --port PORT Connect to PORT [default: 443].
+ --http Send a basic HTTP GET request for /.
+ --cafile CAFILE Read root certificates from CAFILE.
+ --auth-key KEY Read client authentication key from KEY.
+ --auth-certs CERTS Read client authentication certificates from CERTS.
+ CERTS must match up with KEY.
+ --protover VERSION Disable default TLS version list, and use
+ VERSION instead. May be used multiple times.
+ --suite SUITE Disable default cipher suite list, and use
+ SUITE instead. May be used multiple times.
+ --proto PROTOCOL Send ALPN extension containing PROTOCOL.
+ May be used multiple times to offer several protocols.
+ --no-tickets Disable session ticket support.
+ --no-sni Disable server name indication support.
+ --insecure Disable certificate verification.
+ --verbose Emit log output.
+ --max-frag-size M Limit outgoing messages to M bytes.
+ --version, -v Show tool version.
+ --help, -h Show this screen.
+```
+
+Some sample runs:
+
+```
+$ cargo run --bin tlsclient-mio -- --http mozilla-modern.badssl.com
+HTTP/1.1 200 OK
+Server: nginx/1.6.2 (Ubuntu)
+Date: Wed, 01 Jun 2016 18:44:00 GMT
+Content-Type: text/html
+Content-Length: 644
+(...)
+```
+
+or
+
+```
+$ cargo run --bin tlsclient-mio -- --http expired.badssl.com
+TLS error: InvalidCertificate(Expired)
+Connection closed
+```
+
+## Server example program
+The server example program is named `tlsserver-mio`. The interface looks like:
+
+```tlsserver-mio
+Runs a TLS server on :PORT. The default PORT is 443.
+
+`echo' mode means the server echoes received data on each connection.
+
+`http' mode means the server blindly sends a HTTP response on each
+connection.
+
+`forward' means the server forwards plaintext to a connection made to
+localhost:fport.
+
+`--certs' names the full certificate chain, `--key' provides the
+RSA private key.
+
+Usage:
+ tlsserver-mio --certs CERTFILE --key KEYFILE [--suite SUITE ...] [--proto PROTO ...] [--protover PROTOVER ...] [options] echo
+ tlsserver-mio --certs CERTFILE --key KEYFILE [--suite SUITE ...] [--proto PROTO ...] [--protover PROTOVER ...] [options] http
+ tlsserver-mio --certs CERTFILE --key KEYFILE [--suite SUITE ...] [--proto PROTO ...] [--protover PROTOVER ...] [options] forward <fport>
+ tlsserver-mio (--version | -v)
+ tlsserver-mio (--help | -h)
+
+Options:
+ -p, --port PORT Listen on PORT [default: 443].
+ --certs CERTFILE Read server certificates from CERTFILE.
+ This should contain PEM-format certificates
+ in the right order (the first certificate should
+ certify KEYFILE, the last should be a root CA).
+ --key KEYFILE Read private key from KEYFILE. This should be a RSA
+ private key or PKCS8-encoded private key, in PEM format.
+ --ocsp OCSPFILE Read DER-encoded OCSP response from OCSPFILE and staple
+ to certificate. Optional.
+ --auth CERTFILE Enable client authentication, and accept certificates
+ signed by those roots provided in CERTFILE.
+ --require-auth Send a fatal alert if the client does not complete client
+ authentication.
+ --resumption Support session resumption.
+ --tickets Support tickets.
+ --protover VERSION Disable default TLS version list, and use
+ VERSION instead. May be used multiple times.
+ --suite SUITE Disable default cipher suite list, and use
+ SUITE instead. May be used multiple times.
+ --proto PROTOCOL Negotiate PROTOCOL using ALPN.
+ May be used multiple times.
+ --verbose Emit log output.
+ --version, -v Show tool version.
+ --help, -h Show this screen.
+```
+
+Here's a sample run; we start a TLS echo server, then connect to it with
+`openssl` and `tlsclient-mio`:
+
+```
+$ cargo run --bin tlsserver-mio -- --certs test-ca/rsa/end.fullchain --key test-ca/rsa/end.rsa -p 8443 echo &
+$ echo hello world | openssl s_client -ign_eof -quiet -connect localhost:8443
+depth=2 CN = ponytown RSA CA
+verify error:num=19:self signed certificate in certificate chain
+hello world
+^C
+$ echo hello world | cargo run --bin tlsclient-mio -- --cafile test-ca/rsa/ca.cert -p 8443 localhost
+hello world
+^C
+```
+
+# License
+
+Rustls is distributed under the following three licenses:
+
+- Apache License version 2.0.
+- MIT license.
+- ISC license.
+
+These are included as LICENSE-APACHE, LICENSE-MIT and LICENSE-ISC
+respectively. You may use this software under the terms of any
+of these licenses, at your option.
+
+# Code of conduct
+
+This project adopts the [Rust Code of Conduct](https://www.rust-lang.org/policies/code-of-conduct).
+Please email rustls-mod@googlegroups.com to report any instance of misconduct, or if you
+have any comments or questions on the Code of Conduct.
diff --git a/rustls-0.21.2/RELEASE_NOTES.md b/rustls-0.21.2/RELEASE_NOTES.md
new file mode 100644
index 0000000..f7ca1c2
--- /dev/null
+++ b/rustls-0.21.2/RELEASE_NOTES.md
@@ -0,0 +1,279 @@
+## Release history:
+
+* 0.20.8 (2023-01-12)
+ - Yield an error from `ConnectionCommon::read_tls()` if buffers are full.
+ Both a full deframer buffer and a full incoming plaintext buffer will
+ now cause an error to be returned. Callers should call `process_new_packets()`
+ and read out the plaintext data from `reader()` after each successful call to `read_tls()`.
+ - The minimum supported Rust version is now 1.57.0 due to some dependencies
+ requiring it.
+* 0.20.7 (2022-10-18)
+ - Expose secret extraction API under the `secret_extraction` cargo feature.
+ This is designed to enable switching from rustls to kTLS (kernel TLS
+ offload) after a successful TLS 1.2/1.3 handshake, for example.
+ - Move filtering of signature schemes after config selection, avoiding the need
+ for linking in encryption/decryption code for all cipher suites at the cost of
+ exposing more signature schemes in the `ClientHello` emitted by the `Acceptor`.
+ - Expose AlertDescription, ContentType, and HandshakeType,
+ SignatureAlgorithm, and NamedGroup as part of the stable API. Previously they
+ were part of the unstable internals API, but were referenced by parts of the
+ stable API.
+ - We now have a [Discord channel](https://discord.gg/MCSB76RU96) for community
+ discussions.
+ - The minimum supported Rust version is now 1.56.0 due to several dependencies
+ requiring it.
+* 0.20.6 (2022-05-18)
+ - 0.20.5 included a change to track more context for the `Error::CorruptMessage`
+ which made API-incompatible changes to the `Error` type. We yanked 0.20.5
+ and have reverted that change as part of 0.20.6.
+* 0.20.5 (2022-05-14)
+ - Correct compatbility with servers which return no TLS extensions and take
+ advantage of a special case encoding.
+ - Remove spurious warn-level logging introduced in 0.20.3.
+ - Expose cipher suites in `ClientHello` type.
+ - Allow verification of IP addresses with `dangerous_config` enabled.
+ - Retry I/O operations in `ConnectionCommon::complete_io()` when interrupted.
+ - Fix server::ResolvesServerCertUsingSni case sensitivity.
+* 0.20.4 (2022-02-19)
+ - Correct regression in QUIC 0-RTT support.
+* 0.20.3 (2022-02-13)
+ - Support loading ECDSA keys in SEC1 format.
+ - Support receipt of 0-RTT "early data" in TLS1.3 servers. It is not enabled
+ by default; opt in by setting `ServerConfig::max_early_data_size` to a non-zero
+ value.
+ - Support sending of data with the first server flight. This is also not
+ enabled by default either: opt in by setting `ServerConfig::send_half_rtt_data`.
+ - Support `read_buf` interface when compiled with nightly. This means
+ data can be safely read out of a rustls connection into a buffer without
+ the buffer requiring initialisation first. Set the `read_buf` feature to
+ use this.
+ - Improve efficiency when writing vectors of TLS types.
+ - Reduce copying and improve efficiency in TLS1.2 handshake.
+* 0.20.2 (2021-11-21)
+ - Fix `CipherSuite::as_str()` value (as introduced in 0.20.1).
+* 0.20.1 (2021-11-14)
+ - Allow cipher suite enum items to be stringified.
+ - Improve documentation of configuration builder types.
+ - Ensure unused cipher suites can be removed at link-time.
+ - Ensure single-use error types implement `std::error::Error`, and are public.
+* 0.20.0 (2021-09-26)
+ - *Breaking change*: `Connection` is now an enum instead of a trait. You can abstract over
+ `ClientConnection` and `ServerConnection` with a bound like `where C: Deref<ConnectionCommon<SD>>, SD: SideData`.
+ - *Breaking change*: the SNI arguments to `ClientCertVerifier` methods have been removed.
+ The `Acceptor` API now allows selecting a `ServerConfig` based on the `ClientHello` instead.
+ - Unclean TCP closure is now tracked by the library. This means a new error is possible when reading plaintext:
+ `ErrorKind::UnexpectedEof` will be returned in this case.
+ - *Breaking change*: insulate the rustls public API from webpki API changes:
+ - PKI errors are now reported using rustls-specific errors.
+ - There is now a rustls-specific root trust anchor type.
+ - *Breaking change*: the following types are no longer exposed in the crate root, and can instead be imported
+ through the `client` module exposed in the crate root: `ResolvesClientCert`, `StoresClientSessions`,
+ `WriteEarlyData`, `ClientSessionMemoryCache`, `NoClientSessionStorage`, `HandshakeSignatureValid`,
+ `ServerCertVerified`, `ServerCertVerifier`, `WebPkiVerifier` and `DangerousClientConfig`.
+ - *Breaking change*: the following types are no longer exposed in the crate root, and can instead be imported
+ through the `server` module exposed in the crate root: `AllowAnonymousOrAuthenticatedClient`,
+ `AllowAnyAuthenticatedClient`, `NoClientAuth`, `ResolvesServerCertUsingSni`, `NoServerSessionStorage`,
+ `ServerSessionMemoryCache`, `StoresServerSessions`, `ClientHello`, `ProducesTickets`, `ResolvesServerCert`,
+ `ClientCertVerified` and `ClientCertVerifier`.
+ - *Breaking API change*: `QuicExt::write_hs()` now returns a `KeyChange` type that returns handshake or 1-RTT keys. In the case of 1-RTT keys, a `KeyChange` also
+ includes a `Secrets` type that must be used to derive further key updates, independent from the rustls `Connection`. The `QuicExt::next_1rtt_keys()` method
+ has been removed.
+ - *Breaking API change*: QUIC header protection keys now use a new type that directly exposes a masking/unmasking operation.
+* 0.20.0-beta2 (2021-07-04)
+ - *Breaking change*: internal buffers are now limited to 64 kB by default. Use
+ `Connection::set_buffer_limit` to change the buffer limits to suit your application.
+ - *Breaking API change*: PEM parsing now lives in the [rustls-pemfile crate](https://crates.io/crates/rustls-pemfile).
+ This means `rustls::internals::pemfile` and `rustls::RootCertStore::add_pem_file` no longer exist.
+ - *Breaking API change*: `ServerCertVerifier::verify_server_cert` and `ClientCertVerifier::verify_client_cert`
+ pass the end-entity and intermediate certificates separately. This means rustls deals with the case
+ where the certificate chain is empty, rather than leaving that to ServerCertVerifier/ClientCertVerifier
+ implementation.
+ - *Breaking API change*: `SupportedCipherSuite` is now an enum with TLS 1.2 and TLS 1.3 variants. Some of its
+ methods have moved to the inner `Tls12CipherSuite` and `Tls13CipherSuite` types. Instead of
+ `usable_for_version()`, it now has a `version()` method. `get_hash()` has been renamed
+ to `hash_algorithm()` and `usable_for_sigalg()` to `usable_for_signature_algorithm()`.
+ - There are now 80% fewer unreachable unwraps in the core crate thanks to large refactoring efforts.
+ - *Breaking API change*: the `WebPkiError` variant of `rustls::Error` now includes which operation failed.
+ - *Breaking API changes*: These public API items have been renamed to meet naming guidelines:
+ - `rustls::TLSError` to `rustls::Error`.
+ - `rustls::ResolvesServerCertUsingSNI` to `rustls::ResolvesServerCertUsingSni`.
+ - `rustls::WebPKIVerifier` to `rustls::WebPkiVerifier`.
+ - `rustls::ciphersuites` to `rustls::cipher_suites`.
+ - `rustls::ALL_CIPHERSUITES` to `ALL_CIPHER_SUITES`; `rustls::DEFAULT_CIPHERSUITES` to `DEFAULT_CIPHER_SUITES`.
+ - `rustls::ClientHello::sigschemes` to `rustls::ClientHello::signature_schemes`.
+ - `rustls::RootCertStore::get_subjects` to `rustls::RootCertStore::subjects`.
+ - `rustls::ServerSession` to `rustls::ServerConnection`.
+ - `rustls::ClientSession` to `rustls::ClientConnection`.
+ - `rustls::ServerSession::get_sni_hostname` to `rustls::ServerConnection::sni_hostname`.
+ - `rustls::ClientConfig::ciphersuites` to `rustls::ClientConfig::cipher_suites`.
+ - `rustls::ServerConfig::ciphersuites` to `rustls::ServerConfig::cipher_suites`.
+ - `rustls::ProducesTickets::get_lifetime` to `rustls::ProducesTickets::lifetime`.
+ - `rustls::Session`: `get_peer_certificates` to `peer_certificates`, `get_alpn_protocol` to `alpn_protocol`,
+ `get_protocol_version` to `protocol_version`, `get_negotiated_ciphersuite` to `negotiated_cipher_suite`.
+ - *Breaking API change*: `ResolvesServerCert::resolve` and `ResolvesClientCert::resolve` now return
+ `Option<Arc<CertifiedKey>>` instead of `Option<CertifiedKey>`. `CertifiedKey` is now an immutable
+ type.
+ - *Breaking API change*: `peer_certificates` returns a borrow rather than a copy on the
+ internally stored certificate chain.
+ - *Breaking API change*: `ClientConnection`'s DNS name parameter is now a new enum, `ServerName`, to allow future support for ECH and servers named by IP address.
+* 0.19.1 (2021-04-17):
+ - Backport: fix security issue: there was a reachable panic in servers if a client
+ sent an invalid `ClientECDiffieHellmanPublic` encoding, due to an errant `unwrap()`
+ when parsing the encoding.
+* 0.19.0 (2020-11-22):
+ - Ensured that `get_peer_certificates` is both better documented, and works
+ uniformly for both full-handshake and resumed sessions.
+ - Fix bug: fully qualified hostnames should have had their trailing dot
+ stripped when quoted in the SNI extension.
+* 0.18.1 (2020-08-16):
+ - Fix DoS vulnerability in TLS1.3 "Middlebox Compatibility Mode" CCS handling.
+ This is thought to be quite minor -- see
+ [this commit message](https://github.com/rustls/rustls/commit/e51bf92afcd9dfbd5f4e8154b847aa5cc380913c)
+ for a full discussion.
+* 0.18.0 (2020-07-04):
+ - Allow custom certificate validation implementations to also
+ handle handshake signature computation. This allows uses in non-web
+ contexts, where `webpki` is not likely to process the certificates
+ in use. Thanks to @DemiMarie-parity.
+ - Performance improvements. Thanks to @nviennot.
+ - Fixed client authentication being unduly rejected by client when server
+ uses the superseded certificate_types field of CertificateRequest.
+ - *Breaking API change*: The writev_tls API has been removed, in favour
+ of using vectored IO support now offered by std::io::Write.
+ - Added ed25519 support for authentication; thanks to @potatosalad.
+ - Support removal of unused ciphersuites at link-time. To use this,
+ call `ClientConfig::with_ciphersuites` instead of `ClientConfig::new`.
+* 0.17.0 (2020-02-22):
+ - *Breaking API change*: ALPN protocols offered by the client are passed
+ to the server certificate resolution trait (`ResolvesServerCert`).
+ - *Breaking API change*: The server certificate resolution trait now
+ takes a struct containing its arguments, so new data can be passed
+ to these functions without further breaking changes.
+ - Signature schemes offered by the client are now filtered to those
+ compatible with the client-offered ciphersuites. Prior to this change
+ it was likely that server key type switching would not work for clients
+ that offer signature schemes mismatched with their ciphersuites.
+ - Add manual with goal-oriented documentation, and rationale for design
+ decisions.
+ - *Breaking API change*: `AlwaysResolvesClientCert::new` is now fallible,
+ as is `ClientConfig::set_single_client_cert`.
+* 0.16.0 (2019-08-10):
+ - Optimisation of read path for polled non-blocking IO.
+ - Correct an omission in TLS1.3 middlebox compatibility mode, causing
+ handshake failures with servers behind buggy middleboxes.
+ - Move to *ring* 0.16.
+ - Assorted refactoring to reduce memory usage during and after
+ handshake.
+ - Update other dependencies.
+* 0.15.2 (2019-04-02):
+ - Moved example code around for benefit of Fuchsia.
+ - Example code fixes for Windows -- Windows is now a tested platform.
+ - QUIC-specific bug fixes.
+ - Update dependencies.
+* 0.15.1 (2019-01-29):
+ - Fix incorrect offering of SHA1.
+* 0.15.0 (2019-01-20):
+ - Update dependencies.
+ - *Breaking API change*: ALPN protocols are now encoded as a `Vec<u8>`, not
+ a `String`. This alters the type of:
+ - `ClientConfig::alpn_protocols`
+ - `ClientConfig::set_protocols`
+ - `ServerConfig::alpn_protocols`
+ - `ServerConfig::set_protocols`
+ - `Session::get_alpn_protocol`
+ - Emit a warning when receiving an invalid SNI extension, such as one
+ including an IP address.
+ - Extended QUIC support for later QUIC drafts.
+ - Correct bug where we'd send more than one fatal alert for
+ handshake failure cases.
+ - Discontinue support for SHA1 signatures.
+ - Move to Rust 2018 edition.
+* 0.14.0 (2018-09-30):
+ - Introduce client-side support for 0-RTT data in TLS1.3.
+ - Fix a bug in rustls::Stream for non-blocking transports.
+ - Move TLS1.3 support from draft 23 to final RFC8446 version.
+ - Don't offer (e.g.) TLS1.3 if no TLS1.3 suites are configured.
+ - Support stateful resumption in TLS1.3. Stateless resumption
+ was previously supported, but is not the default configuration.
+ - *Breaking API change*: `generate()` removed from `StoresServerSessions` trait.
+ - *Breaking API change*: `take()` added to `StoresServerSessions` trait.
+* 0.13.1 (2018-08-17):
+ - Fix a bug in rustls::Stream for non-blocking transports
+ (backport).
+* 0.13.0 (2018-07-15):
+ - Move TLS1.3 support from draft 22 to 23.
+ - Add support for `SSLKEYLOGFILE`; not enabled by default.
+ - Add support for basic usage in QUIC.
+ - `ServerConfig::set_single_cert` and company now report errors.
+ - Add support for vectored IO: `writev_tls` can now be used to
+ optimise system call usage.
+ - Support ECDSA signing for server and client authentication.
+ - Add type like `rustls::Stream` which owns its underlying TCP stream
+ and rustls session.
+* 0.12.0 (2018-01-06):
+ - New API for learning negotiated cipher suite.
+ - Move TLS1.3 support from draft 18 to 22.
+ - Allow server-side MTU configuration.
+ - Tested against latest BoringSSL test suite.
+ - Support RFC5705 exporters.
+ - Provide `ResolvesServerCertUsingSNI` for doing SNI-based
+ certificate switching.
+ - Allow disabling SNI extension on clients, for use with
+ custom server certificate verifiers where the hostname
+ may not make sense.
+ - DNS names are now typesafe, using `webpki::DNSName`.
+ - Update dependencies.
+* 0.11.0 (2017-08-28):
+ - New server API for learning requested SNI name.
+ - Server now checks selected certificate for validity.
+ - Remove time crate dependency.
+ - Follow webpki interface changes.
+ - Update dependencies.
+* 0.10.0 (2017-08-12):
+ - Request and verify SCTs using sct crate. This doesn't happen
+ unless you pass in some certificate transparency logs -- example code
+ does this.
+ - Request OCSP stapled response and pass to cert verifier.
+ Note that OCSP verification is not implemented, but this is the public
+ API public change required to support this.
+ - Allow OCSP and SCT stapling for servers.
+ - Refactor handshake state machines.
+ - Bind verifications to final state -- note API change for custom cert
+ verification.
+* 0.9.0 (2017-06-16):
+ - Update dependencies.
+ - Add IO helper function (`complete_io`) to `rustls::Session`.
+ - Add blocking stream type -- `rustls::Stream` -- to ease use on top
+ of blocking sockets.
+* 0.8.0 (2017-05-14):
+ - Add `dangerous_configuration` feature for unsafe features.
+* 0.7.0 (2017-05-08):
+ - Update dependencies.
+* 0.6.0 (2017-05-06):
+ - Update dependencies.
+ - Expose ring's new support for PKCS#8-format private keys.
+ - New API for applying limitation to internal buffer sizes.
+* 0.5.8 (2017-03-16):
+ - Fix build on later rustc.
+* 0.5.7 (2017-02-27):
+ - No changes from 0.5.6; republished with nightly cargo for category support.
+* 0.5.6 (2017-02-19):
+ - RFC7627 extended master secret support
+ - Assorted documentation improvements
+* 0.5.5 (2017-02-03):
+ - Crate categories.
+ - Protocol errors now permanent for given session.
+ - Exposed `ResolvesServerCert` trait for customising certification
+ selection.
+ - Exposed `SignatureScheme` enum.
+* 0.5.4 (2017-01-26):
+ - First release with TLS1.3-draft-18 support.
+ - More performance improvements (now ~15Gbps per core).
+ - New API to learn version of negotiated connection.
+* 0.5.0 (2016-09-27):
+ - Tickets.
+ - Coverage testing.
+ - Benchmarking.
+ - Massive performance improvements (from ~1Gbps to ~6Gbps per core).
+ - OSX support.
+ - Minor API corrections and additional testing.
diff --git a/rustls-0.21.2/RELEASING.md b/rustls-0.21.2/RELEASING.md
new file mode 100644
index 0000000..2e39a03
--- /dev/null
+++ b/rustls-0.21.2/RELEASING.md
@@ -0,0 +1,36 @@
+# Making a rustls release
+
+This is a checklist for steps to make before/after making a rustls release.
+
+1. Attend to the README.md: this appears on crates.io for the release, and can't be edited after
+ the fact.
+ - Ensure the version has a good set of release notes. Move old release notes to OLDCHANGES.md
+ if this is getting excessively long.
+ - Write the version and date of the release.
+2. Run `cargo update` followed by `cargo outdated`, to check if we have any
+ dependency updates which are not already automatically taken by their semver specs.
+ - If we do, take them if possible with separate commits (but there should've been
+ dependabot PRs submitted for these already.)
+3. Now run `cargo test --all-features` to ensure our tests continue to pass with the
+ updated dependencies.
+4. Update `rustls/Cargo.toml` to set the correct version.
+5. Make a commit with the above changes, something like 'Prepare $VERSION'. This
+ should not contain functional changes: just versions numbers, and markdown changes.
+6. Do a dry run: in `rustls/` check `cargo publish --dry-run`
+7. Push the above commit. Wait for CI to confirm it as green.
+ - Any red _should_ naturally block the release.
+ - If rustc nightly is broken, this _may_ be acceptable if the reason is understood
+ and does not point to a defect in rustls. eg, at the time of writing in releasing 0.20:
+ - `cargo fuzz` is broken: https://github.com/rust-fuzz/cargo-fuzz/issues/276
+ - oss fuzz is broken: https://github.com/google/oss-fuzz/issues/6268
+ (Both of these share the same root cause of LLVM13 breaking changes; which are
+ unfortunately common when rustc nightly takes a new LLVM.)
+8. Tag the released version: `git tag -m '0.20.0' v/0.20.0`
+9. Push the tag: `git push --tags`
+10. Do the release: `cargo publish` when sat in `rustls/`.
+
+## Post-release things
+
+- Update dependent crates (eg, hyper-rustls, rustls-native-certs, etc.)
+
+
diff --git a/rustls-0.21.2/SECURITY.md b/rustls-0.21.2/SECURITY.md
new file mode 100644
index 0000000..dfe0a49
--- /dev/null
+++ b/rustls-0.21.2/SECURITY.md
@@ -0,0 +1,18 @@
+# Security Policy
+
+## Supported Versions
+
+Security fixes will be backported to the most recent three minor version lines.
+
+## Reporting a Vulnerability
+
+Please report security bugs by email to rustls-security@googlegroups.com.
+We'll then:
+
+- Prepare a fix and regression tests.
+- Backport the fix and make a patch release for most recent release.
+- Submit an advisory to [rustsec/advisory-db](https://github.com/RustSec/advisory-db).
+- Refer to the advisory on the main README.md and release notes.
+
+If you're *looking* for security bugs, this crate is set up for
+`cargo fuzz` but would benefit from more runtime, targets and corpora.
diff --git a/rustls-0.21.2/admin/bench-measure.mk b/rustls-0.21.2/admin/bench-measure.mk
new file mode 100644
index 0000000..a6f6cf4
--- /dev/null
+++ b/rustls-0.21.2/admin/bench-measure.mk
@@ -0,0 +1,44 @@
+RECORD=perf record -F2000 --call-graph dwarf,16000 --
+FLAMEGRAPH=perf script | ~/FlameGraph/stackcollapse-perf.pl | ~/FlameGraph/flamegraph.pl >
+MEMUSAGE=/usr/bin/env time -f %M
+
+perf: ./target/release/examples/bench
+ $(RECORD) ./target/release/examples/bench bulk TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
+ $(FLAMEGRAPH) perf-aes128-rustls.svg
+
+perffull: ./target/release/examples/bench
+ $(RECORD) ./target/release/examples/bench bulk TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
+ $(FLAMEGRAPH) perf-aes256-rustls.svg
+ $(RECORD) ./target/release/examples/bench bulk TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
+ $(FLAMEGRAPH) perf-chacha-rustls.svg
+
+ $(RECORD) ./target/release/examples/bench handshake TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
+ $(FLAMEGRAPH) perf-fullhs-rustls.svg
+ $(RECORD) ./target/release/examples/bench handshake-resume TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
+ $(FLAMEGRAPH) perf-resume-rustls.svg
+ $(RECORD) ./target/release/examples/bench handshake-ticket TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
+ $(FLAMEGRAPH) perf-ticket-rustls.svg
+
+perf13:
+ $(RECORD) ./target/release/examples/bench handshake-ticket TLS13_AES_256_GCM_SHA384
+ $(FLAMEGRAPH) perf-ticket13-rustls.svg
+
+measure: ./target/release/examples/bench
+ $^ bulk TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
+ $^ bulk TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
+ $^ bulk TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
+ $^ bulk TLS13_AES_256_GCM_SHA384
+ $^ handshake TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
+ $^ handshake-resume TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
+ $^ handshake-ticket TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
+ $^ handshake TLS13_AES_256_GCM_SHA384
+ $^ handshake-resume TLS13_AES_256_GCM_SHA384
+ $^ handshake-ticket TLS13_AES_256_GCM_SHA384
+
+memory: ./target/release/examples/bench
+ $(MEMUSAGE) $^ memory TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 100
+ $(MEMUSAGE) $^ memory TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 1000
+ $(MEMUSAGE) $^ memory TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 5000
+ $(MEMUSAGE) $^ memory TLS13_AES_256_GCM_SHA384 100
+ $(MEMUSAGE) $^ memory TLS13_AES_256_GCM_SHA384 1000
+ $(MEMUSAGE) $^ memory TLS13_AES_256_GCM_SHA384 5000
diff --git a/rustls-0.21.2/admin/bench-range b/rustls-0.21.2/admin/bench-range
new file mode 100755
index 0000000..ac3ce2b
--- /dev/null
+++ b/rustls-0.21.2/admin/bench-range
@@ -0,0 +1,20 @@
+#!/usr/bin/env python3
+
+import subprocess
+
+suite = 'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256'
+
+print('len,send,recv')
+
+for len in [16, 32, 64, 128, 512, 1024, 4096, 8192, 32768, 65536, 131072, 262144, 1048576]:
+ out = subprocess.check_output(['./target/release/examples/bench', 'bulk', suite, str(len)])
+ lines = out.splitlines()
+
+ for l in out.splitlines():
+ items = l.split()
+ if items[3] == 'send':
+ send = float(items[4])
+ if items[3] == 'recv':
+ recv = float(items[4])
+
+ print('%d,%g,%g' % (len, send, recv))
diff --git a/rustls-0.21.2/admin/capture-certdata b/rustls-0.21.2/admin/capture-certdata
new file mode 100755
index 0000000..b02cf24
--- /dev/null
+++ b/rustls-0.21.2/admin/capture-certdata
@@ -0,0 +1,62 @@
+#!/usr/bin/env python3
+
+import subprocess
+import base64
+from os import path
+
+SITES = dict(
+ google = 'www.google.com',
+ duckduckgo = 'duckduckgo.com',
+ github = 'github.com',
+ wikipedia = 'wikipedia.org',
+ arstechnica = 'arstechnica.com',
+ reddit = 'reddit.com',
+ hn = 'news.ycombinator.com',
+ servo = 'servo.org',
+ rustlang = 'www.rust-lang.org',
+ wapo = 'www.washingtonpost.com',
+ twitter = 'twitter.com',
+ stackoverflow = 'stackoverflow.com',
+)
+
+def extract_certs(lines):
+ buffer = None
+
+ for l in lines:
+ if b'-----BEGIN CERT' in l:
+ buffer = b''
+ elif b'-----END CERT' in l and buffer is not None:
+ yield base64.b64decode(buffer)
+ buffer = None
+ elif buffer is not None:
+ buffer += l
+
+def collect(hostname):
+ subp = subprocess.Popen([
+ 'openssl',
+ 's_client',
+ '-showcerts',
+ '-connect',
+ hostname + ':443',
+ ],
+ stderr = subprocess.PIPE,
+ stdout = subprocess.PIPE,
+ stdin = subprocess.PIPE)
+ stdout, stderr = subp.communicate('')
+
+ stdout = stdout.splitlines()
+ certs = list(extract_certs(stdout))
+ return certs
+
+if __name__ == '__main__':
+ certfile = lambda name, i: 'rustls/src/testdata/cert-%s.%d.der' % (name, i)
+
+ for name, hostname in SITES.items():
+ if path.exists(certfile(name, 0)):
+ continue
+ certchain = collect(hostname)
+
+ for i, cert in enumerate(certchain):
+ open(certfile(name, i), 'wb').write(cert)
+ print('wrote', certfile(name, i))
+
diff --git a/rustls-0.21.2/admin/coverage b/rustls-0.21.2/admin/coverage
new file mode 100755
index 0000000..960ec5b
--- /dev/null
+++ b/rustls-0.21.2/admin/coverage
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+set -e
+
+source <(cargo llvm-cov show-env --export-prefix)
+cargo llvm-cov clean --workspace
+
+cargo build --all-targets --all-features
+cargo test --all-features
+cargo llvm-cov report "$@"
diff --git a/rustls-0.21.2/admin/pull-readme b/rustls-0.21.2/admin/pull-readme
new file mode 100755
index 0000000..e9c153f
--- /dev/null
+++ b/rustls-0.21.2/admin/pull-readme
@@ -0,0 +1,12 @@
+#!/usr/bin/env sh
+# Extract the introductory documentation into the README.md
+
+set -e
+
+awk 'BEGIN { take=1 }/# Approach/{take=0;print}take' < README.md > README.md.new
+grep '^//!' rustls/src/lib.rs | \
+ sed -e 's@^\/\/\! *@@g' | \
+ sed -e 's@manual](manual)@manual](https://docs.rs/rustls/latest/rustls/manual/_02_tls_vulnerabilities/index.html)@' | \
+ awk '/# Rustls - a modern TLS library/{take=1;next}/## Design Overview/{take=0}take' >> README.md.new
+awk '/# Example code/{take=1}take' < README.md >> README.md.new
+mv README.md.new README.md
diff --git a/rustls-0.21.2/admin/pull-usage b/rustls-0.21.2/admin/pull-usage
new file mode 100755
index 0000000..17a677d
--- /dev/null
+++ b/rustls-0.21.2/admin/pull-usage
@@ -0,0 +1,17 @@
+#!/usr/bin/env sh
+# Extract the example usage into README.md
+
+set -e
+
+awk 'BEGIN { take=1 }/```tlsclient-mio/{take=0;print}take' < README.md > README.md.new
+./target/debug/tlsclient-mio --help >> README.md.new
+awk '/^```tlsclient-mio$/ {start=1;} start' < README.md > README.md.tmp
+awk '/^```$/ {start=1;} start' < README.md.tmp >> README.md.new
+mv README.md.new README.md
+
+awk 'BEGIN { take=1 }/```tlsserver-mio/{take=0;print}take' < README.md > README.md.new
+./target/debug/tlsserver-mio --help >> README.md.new
+awk '/^```tlsserver-mio$/ {start=1;} start' < README.md > README.md.tmp
+awk '/^```$/ {start=1;} start' < README.md.tmp >> README.md.new
+mv README.md.new README.md
+rm README.md.tmp
diff --git a/rustls-0.21.2/admin/rustls-logo-web.png b/rustls-0.21.2/admin/rustls-logo-web.png
new file mode 100755
index 0000000..705b130
Binary files /dev/null and b/rustls-0.21.2/admin/rustls-logo-web.png differ
diff --git a/rustls-0.21.2/audit/TLS-01-report.pdf b/rustls-0.21.2/audit/TLS-01-report.pdf
new file mode 100644
index 0000000..804a73d
Binary files /dev/null and b/rustls-0.21.2/audit/TLS-01-report.pdf differ
diff --git a/rustls-0.21.2/bogo/.gitignore b/rustls-0.21.2/bogo/.gitignore
new file mode 100644
index 0000000..6991abf
--- /dev/null
+++ b/rustls-0.21.2/bogo/.gitignore
@@ -0,0 +1,3 @@
+runner.tar.gz
+testresult.tar.gz
+bogo/
diff --git a/rustls-0.21.2/bogo/README.md b/rustls-0.21.2/bogo/README.md
new file mode 100644
index 0000000..34d1359
--- /dev/null
+++ b/rustls-0.21.2/bogo/README.md
@@ -0,0 +1,47 @@
+# BoGo
+
+[BoGo](https://github.com/google/boringssl/tree/master/ssl/test) is the TLS test suite for boringssl, which we run against rustls as well.
+
+## System requirements
+
+You will need golang installed
+
+## Running tests
+
+```bash
+$ cd bogo # from rustls repo root
+$ ./runme
+```
+
+## Running a single test
+
+```bash
+$ cd bogo # from rustls repo root
+$ ./runme -test "Foo;Bar" # where Foo and Bar are test names like EarlyData-Server-BadFinished-TLS13
+```
+
+## Diagnosing failures
+
+When updating the BoGo suite it's expected that new failures will emerge. There
+are often two major categories to diagnose:
+
+### Unexpected error outputs
+
+Often the upstream will change expected error outputs (e.g. changing from
+`:DECODE_ERROR:` to `:NO_CERTS:`). The [`bogo_shim`][bogo_shim] `handle_err`
+function is responsible for mapping errors in combination with the `ErrorMap`
+and `TestErrorMap` data in [`config.json`][config.json]. These will typically
+need updating for new error outputs or changes in error outputs.
+
+[bogo_shim]: ../rustls/examples/internal/bogo_shim.rs
+[config.json]: ./config.json
+
+### Unhandled options
+
+When the upstream test suite adds new options that aren't handled by Rustls the
+[`bogo_shim`][bogo_shim]'s `main` fn can be updated to signal `NYI`
+(not-yet-implemented) for the unhandled options. See the `// Not implemented
+things` switch near the end of the function definition.
+
+Use your best judgement to decide whether there should be a Rustls issue filed
+to consider implementing the option in question.
diff --git a/rustls-0.21.2/bogo/check.py b/rustls-0.21.2/bogo/check.py
new file mode 100644
index 0000000..ba75420
--- /dev/null
+++ b/rustls-0.21.2/bogo/check.py
@@ -0,0 +1,47 @@
+import re
+import json
+import fnmatch
+import sys
+
+config = json.load(open('config.json'))
+test_error_set = set(config['TestErrorMap'].keys())
+obsolete_disabled_tests = set()
+
+all_tests = set()
+failing_tests = set()
+unimpl_tests = set()
+disabled_tests = set()
+passed_tests = set()
+
+for line in sys.stdin:
+ m = re.match('^(PASSED|UNIMPLEMENTED|FAILED|DISABLED) \((.*)\)$', line.strip())
+ if m:
+ status, name = m.groups()
+ if name in test_error_set:
+ test_error_set.remove(name)
+ all_tests.add(name)
+ if status == 'FAILED':
+ failing_tests.add(name)
+ elif status == 'UNIMPLEMENTED':
+ unimpl_tests.add(name)
+ elif status == 'DISABLED':
+ disabled_tests.add(name)
+ elif status == 'PASSED':
+ passed_tests.add(name)
+
+if disabled_tests:
+ for disabled_glob in sorted(config['DisabledTests'].keys()):
+ tests_matching_glob = fnmatch.filter(disabled_tests, disabled_glob)
+ if not tests_matching_glob:
+ print 'DisabledTests glob', disabled_glob, 'matches no tests'
+else:
+ print '(DisabledTests unchecked)'
+
+print len(all_tests), 'total tests'
+print len(passed_tests), 'passed'
+print len(failing_tests), 'tests failing'
+print len(unimpl_tests), 'tests not supported'
+
+if test_error_set:
+ print 'unknown TestErrorMap keys', test_error_set
+
diff --git a/rustls-0.21.2/bogo/config.json b/rustls-0.21.2/bogo/config.json
new file mode 100644
index 0000000..4362ac6
--- /dev/null
+++ b/rustls-0.21.2/bogo/config.json
@@ -0,0 +1,403 @@
+{
+ "DisabledTests": {
+ "SendV2ClientHello-*": "only support TLS1.2",
+ "*SSL3*": "",
+ "*SSLv3*": "",
+ "*TLS1-*": "",
+ "*-TLS1": "",
+ "*TLS11-*": "",
+ "*-TLS11": "",
+ "ConflictingVersionNegotiation": "",
+ "SendFallbackSCSV": "fallback scsv not implemented",
+ "PointFormat-Server-Missing": "we require ecc",
+ "ECDSAKeyUsage-*": "TODO: we don't do anything with key usages",
+ "CheckRecordVersion-*": "we don't look at record version",
+ "TLS13-WrongOuterRecord": "we're lax on this",
+ "*DTLS*": "not supported",
+ "*Draft23*": "old draft",
+ "TokenBinding-*": "not supported",
+ "DummyPQPadding-*": "not supported",
+ "MTU*": "dtls only",
+ "DisableEverything": "not useful",
+ "SendEmptyRecords": "non-standard openssl/boringssl behaviour",
+ "SendEmptyRecords-Async": "",
+ "CheckLeafCurve": "",
+ "SendWarningAlerts": "",
+ "SendWarningAlerts-*": "",
+ "Peek-*": "",
+ "*-Split": "",
+ "EchoTLS13CompatibilitySessionID": "",
+ "ClientOCSPCallback*": "ocsp not supported yet",
+ "ServerOCSPCallback*": "",
+ "CertCompression*": "not implemented",
+ "DuplicateCertCompressionExt*": "",
+ "TLS-ECH-*": "",
+ "ALPS-*": "",
+ "*Kyber*": "",
+ "ExtraClientEncryptedExtension-TLS-TLS13": "uses ALPS",
+ "SendHelloRetryRequest-2-TLS13": "we accept any supported keyshare",
+ "OmitExtensions-ServerHello-TLS12": "bug in bogo if sct offered",
+ "EmptyExtensions-ServerHello-TLS12": "",
+ "Server-JDK11*": "workarounds for oracle engineering quality",
+ "Client-RejectJDK11DowngradeRandom": "",
+ "CBCRecordSplitting*": "insane ciphersuites",
+ "*CBCPadding*": "",
+ "RSAEphemeralKey": "",
+ "BadRSAClientKeyExchange-*": "",
+ "SendClientVersion-RSA": "",
+ "Basic-Server-RSA-*": "",
+ "RSAKeyUsage-*": "",
+ "*-3DES-*": "",
+ "*-RSA_WITH_3DES_EDE_CBC_SHA-*": "",
+ "*-AES128-SHA*": "",
+ "*-AES256-SHA*": "",
+ "*_WITH_AES_128_CBC_*": "",
+ "*_WITH_AES_256_CBC_*": "",
+ "*-ECDSA_SHA1-*": "no ecdsa-sha1",
+ "*-Sign-RSA_PKCS1_SHA1-*": "no sha1",
+ "*-VerifyDefault-RSA_PKCS1_SHA1-*": "no sha1",
+ "*_P224_*": "no p224",
+ "*-P-224-*": "",
+ "*_P521_*": "no p521",
+ "CurveTest-Client-P-521-TLS12": "",
+ "CurveTest-Server-P-521-TLS12": "",
+ "CurveTest-Client-Compressed-P-521-TLS12": "",
+ "CurveTest-Server-Compressed-P-521-TLS12": "",
+ "CurveTest-Client-P-521-TLS13": "",
+ "CurveTest-Server-P-521-TLS13": "",
+ "CurveTest-Client-Compressed-P-521-TLS13": "",
+ "CurveTest-Server-Compressed-P-521-TLS13": "",
+ "GREASE-*": "not implemented",
+ "LargeMessage-Reject": "",
+ "DelegatedCredentials-*": "not implemented",
+ "CECPQ2*": "no PQC experiments",
+ "*CECPQ2*": "",
+ "KeyUpdate-FromClient": "not implemented (no API yet)",
+ "KeyUpdate-FromServer": "",
+ "ExportTrafficSecrets-*": "",
+ "*-InvalidSignature-*-SHA1-*": "no sha1",
+ "NoCommonCurves": "nothing to fall back to",
+ "ClientHelloPadding": "hello padding extension not implemented",
+ "Resume-Client-CipherMismatch": "tries to vary to unimplemented CBC-mode cs",
+ "*Auth-SHA1-Fallback*": "",
+ "RSA-PSS-Large": "",
+ "TLS12-AES128-GCM-*": "no pfs",
+ "TLS12-AES256-GCM-*": "",
+ "*-RSA_WITH_AES_128_GCM_SHA256-*": "",
+ "*-RSA_WITH_AES_256_GCM_SHA384-*": "",
+ "*-RSA_WITH_AES_128_CBC_SHA-*": "",
+ "*-RSA_WITH_AES_256_CBC_SHA-*": "",
+ "OmitExtensions-ClientHello-TLS12": "",
+ "EmptyExtensions-ClientHello-TLS12": "",
+ "Resume-Server-OmitPSKsOnSecondClientHello": "not required by RFC",
+ "FallbackSCSV*": "fallback countermeasure not yet implemented",
+ "RequireAnyClientCertificate-TLS12": "we don't send an alert in this case",
+ "TooManyKeyUpdates": "no limit implemented",
+ "SendUserCanceledAlerts-TooMany-TLS13": "",
+ "ServerBogusVersion": "we ignore legacy_version if there's an extension",
+ "Renegotiate-Client-*": "no reneg",
+ "Shutdown-Shim-Renegotiate-*": "",
+ "Shutdown-Shim-HelloRequest-*": "",
+ "Shutdown-Shim-ApplicationData*": "tests boringssl/openssl-specific behaviour, we don't let application data overtake connection shutdown",
+ "Renegotiate-Server-*": "",
+ "Renegotiate-ForbidAfterHandshake": "",
+ "SendHalfHelloRequest-*": "",
+ "RetainOnlySHA256-*": "",
+ "ExtendedMasterSecret-Renego-*": "",
+ "ALPN*SelectEmpty-*": "",
+ "Draft-Downgrade-Server": "not implemented; TODO",
+ "EarlyData-*ALPN*-*": "no alpn change in resumed sessions",
+ "*EarlyKeyingMaterial-Client-*": "early exporter NYI",
+ "QUICTransportParams-*": "Bogo assumes this can be tested over TLS1.3 framing -- could make this work with some effort",
+ "QUICCompatibilityMode": "",
+ "Ed25519DefaultDisable-NoAccept": "not implemented (ed25519 accepted by default)",
+ "Ed25519DefaultDisable-NoAdvertise": "not implemented (ed25519 advertised by default)",
+ "Server-VerifyDefault-Ed25519-TLS13": "ed25519 accepted by default",
+ "Server-VerifyDefault-Ed25519-TLS12": "",
+ "Client-VerifyDefault-Ed25519-TLS13": "",
+ "Client-VerifyDefault-Ed25519-TLS12": "",
+ "*-HintMismatch-*": "hints are a boringssl-specific feature",
+ "*-QUIC-*" :"",
+ "QUIC-*": "",
+ "*-QUIC": ""
+ },
+ "ErrorMap": {
+ ":HTTP_REQUEST:": ":GARBAGE:",
+ ":HTTPS_PROXY_REQUEST:": ":GARBAGE:",
+ ":WRONG_VERSION_NUMBER:": ":GARBAGE:",
+ ":PEER_DID_NOT_RETURN_A_CERTIFICATE:": ":NO_CERTS:",
+ ":UNEXPECTED_RECORD:": ":UNEXPECTED_MESSAGE:",
+ ":NO_RENEGOTIATION:": ":UNEXPECTED_MESSAGE:",
+ ":DIGEST_CHECK_FAILED:": ":DECRYPTION_FAILED_OR_BAD_RECORD_MAC:",
+ ":APPLICATION_DATA_INSTEAD_OF_HANDSHAKE:": ":UNEXPECTED_MESSAGE:",
+ ":ENCRYPTED_LENGTH_TOO_LONG:": ":GARBAGE:"
+ },
+ "TestErrorMap": {
+ "EmptyCertificateList": ":NO_CERTS:",
+ "SendInvalidRecordType": ":GARBAGE:",
+ "NoSharedCipher": ":HANDSHAKE_FAILURE:",
+ "NoSharedCipher-TLS13": ":HANDSHAKE_FAILURE:",
+ "InvalidECDHPoint-Client": ":PEER_MISBEHAVIOUR:",
+ "InvalidECDHPoint-Server": ":PEER_MISBEHAVIOUR:",
+ "TrailingMessageData-ClientHello-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-ServerHello-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-ServerCertificate-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-CertificateRequest-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-ClientCertificate-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-CertificateVerify-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-NewSessionTicket-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-ServerHelloDone-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-ServerKeyExchange-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-ClientKeyExchange-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-CertificateStatus-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-TLS13-ClientHello-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-TLS13-ServerHello-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-TLS13-EncryptedExtensions-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-TLS13-CertificateRequest-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-TLS13-ServerCertificate-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-TLS13-ServerCertificateVerify-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-TLS13-ServerFinished-TLS": ":DECRYPTION_FAILED_OR_BAD_RECORD_MAC:",
+ "TrailingMessageData-TLS13-ClientCertificate-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-TLS13-ClientCertificateVerify-TLS": ":BAD_HANDSHAKE_MSG:",
+ "TrailingMessageData-TLS13-EndOfEarlyData-TLS": ":BAD_HANDSHAKE_MSG:",
+ "Server-NonEmptyEndOfEarlyData-TLS13": ":BAD_HANDSHAKE_MSG:",
+ "MissingKeyShare-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "MissingKeyShare-Server-TLS13": ":INCOMPATIBLE:",
+ "EmptyEncryptedExtensions-TLS13": ":BAD_HANDSHAKE_MSG:",
+ "NoSupportedCurves": ":INCOMPATIBLE:",
+ "BadECDHECurve": ":PEER_MISBEHAVIOUR:",
+ "VersionTooLow": ":INCOMPATIBLE:",
+ "ServerHelloBogusCipher": ":PEER_MISBEHAVIOUR:",
+ "ServerHelloBogusCipher-TLS13": ":PEER_MISBEHAVIOUR:",
+ "ALPNClient-RejectUnknown-TLS-TLS12": ":PEER_MISBEHAVIOUR:",
+ "ALPNClient-RejectUnknown-TLS-TLS13": ":PEER_MISBEHAVIOUR:",
+ "ALPNClient-EmptyProtocolName-TLS-TLS12": ":PEER_MISBEHAVIOUR:",
+ "ALPNClient-EmptyProtocolName-TLS-TLS13": ":PEER_MISBEHAVIOUR:",
+ "ALPNServer-EmptyProtocolName-TLS-TLS12": ":PEER_MISBEHAVIOUR:",
+ "ALPNServer-EmptyProtocolName-TLS-TLS13": ":PEER_MISBEHAVIOUR:",
+ "Verify-ServerAuth-SignatureType": ":PEER_MISBEHAVIOUR:",
+ "Verify-ClientAuth-SignatureType": ":BAD_SIGNATURE:",
+ "Verify-ServerAuth-SignatureType-TLS13": ":BAD_SIGNATURE:",
+ "Verify-ClientAuth-SignatureType-TLS13": ":BAD_SIGNATURE:",
+ "ClientAuth-Enforced": ":PEER_MISBEHAVIOUR:",
+ "ServerAuth-Enforced": ":PEER_MISBEHAVIOUR:",
+ "UnofferedExtension-Client": ":PEER_MISBEHAVIOUR:",
+ "UnknownExtension-Client": ":PEER_MISBEHAVIOUR:",
+ "KeyUpdate-InvalidRequestMode": ":BAD_HANDSHAKE_MSG:",
+ "ExtraCompressionMethods-TLS13": ":PEER_MISBEHAVIOUR:",
+ "NoNullCompression-TLS12": ":INCOMPATIBLE:",
+ "NoNullCompression-TLS13": ":INCOMPATIBLE:",
+ "InvalidCompressionMethod": ":PEER_MISBEHAVIOUR:",
+ "TLS13-InvalidCompressionMethod": ":PEER_MISBEHAVIOUR:",
+ "TLS13-AES128-GCM-server": ":INCOMPATIBLE:",
+ "TLS13-AES128-GCM-client": ":PEER_MISBEHAVIOUR:",
+ "TLS13-AES256-GCM-server": ":INCOMPATIBLE:",
+ "TLS13-AES256-GCM-client": ":PEER_MISBEHAVIOUR:",
+ "TLS-TLS13-ECDHE_ECDSA_WITH_AES_128_GCM_SHA256-server": ":INCOMPATIBLE:",
+ "TLS-TLS13-ECDHE_ECDSA_WITH_AES_128_GCM_SHA256-client": ":PEER_MISBEHAVIOUR:",
+ "TLS-TLS13-ECDHE_ECDSA_WITH_AES_256_GCM_SHA384-server": ":INCOMPATIBLE:",
+ "TLS-TLS13-ECDHE_ECDSA_WITH_AES_256_GCM_SHA384-client": ":PEER_MISBEHAVIOUR:",
+ "TLS-TLS13-ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256-server": ":INCOMPATIBLE:",
+ "TLS-TLS13-ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256-client": ":PEER_MISBEHAVIOUR:",
+ "TLS-TLS13-ECDHE_RSA_WITH_AES_128_GCM_SHA256-server": ":INCOMPATIBLE:",
+ "TLS-TLS13-ECDHE_RSA_WITH_AES_128_GCM_SHA256-client": ":PEER_MISBEHAVIOUR:",
+ "TLS-TLS13-ECDHE_RSA_WITH_AES_256_GCM_SHA384-server": ":INCOMPATIBLE:",
+ "TLS-TLS13-ECDHE_RSA_WITH_AES_256_GCM_SHA384-client": ":PEER_MISBEHAVIOUR:",
+ "TLS-TLS13-ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256-server": ":INCOMPATIBLE:",
+ "TLS-TLS13-ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256-client": ":PEER_MISBEHAVIOUR:",
+ "TLS-TLS12-CHACHA20_POLY1305_SHA256-server": ":INCOMPATIBLE:",
+ "TLS-TLS12-CHACHA20_POLY1305_SHA256-client": ":PEER_MISBEHAVIOUR:",
+ "TLS-TLS12-AES_128_GCM_SHA256-server": ":INCOMPATIBLE:",
+ "TLS-TLS12-AES_128_GCM_SHA256-client": ":PEER_MISBEHAVIOUR:",
+ "TLS-TLS12-AES_256_GCM_SHA384-server": ":INCOMPATIBLE:",
+ "TLS-TLS12-AES_256_GCM_SHA384-client": ":PEER_MISBEHAVIOUR:",
+ "SkipHelloRetryRequest-TLS13": ":PEER_MISBEHAVIOUR:",
+ "NoSupportedVersions": ":INCOMPATIBLE:",
+ "Client-VerifyDefault-RSA_PKCS1_SHA1-TLS12": ":PEER_ALERT_INTERNAL_ERROR:",
+ "Server-VerifyDefault-RSA_PKCS1_SHA1-TLS12": ":HANDSHAKE_FAILURE:",
+ "Client-VerifyDefault-RSA_PKCS1_SHA1-TLS13": ":PEER_MISBEHAVIOUR:",
+ "Server-VerifyDefault-RSA_PKCS1_SHA1-TLS13": ":PEER_MISBEHAVIOUR:",
+ "Client-VerifyDefault-RSA_PKCS1_SHA256-TLS13": ":PEER_MISBEHAVIOUR:",
+ "Server-VerifyDefault-RSA_PKCS1_SHA256-TLS13": ":PEER_MISBEHAVIOUR:",
+ "Client-VerifyDefault-RSA_PKCS1_SHA384-TLS13": ":PEER_MISBEHAVIOUR:",
+ "Server-VerifyDefault-RSA_PKCS1_SHA384-TLS13": ":PEER_MISBEHAVIOUR:",
+ "Client-VerifyDefault-RSA_PKCS1_SHA512-TLS13": ":PEER_MISBEHAVIOUR:",
+ "Server-VerifyDefault-RSA_PKCS1_SHA512-TLS13": ":PEER_MISBEHAVIOUR:",
+ "ClientAuth-InvalidSignature-RSA-PKCS1-SHA1-TLS12": ":PEER_MISBEHAVIOUR:",
+ "ServerAuth-InvalidSignature-RSA-PKCS1-SHA1-TLS12": ":PEER_MISBEHAVIOUR:",
+ "Server-Sign-RSA_PKCS1_SHA256-TLS13": ":INCOMPATIBLE:",
+ "Server-Sign-RSA_PKCS1_SHA384-TLS13": ":INCOMPATIBLE:",
+ "Server-Sign-RSA_PKCS1_SHA512-TLS13": ":INCOMPATIBLE:",
+ "Client-Sign-RSA_PKCS1_SHA256-TLS13": ":INCOMPATIBLE:",
+ "Client-Sign-RSA_PKCS1_SHA384-TLS13": ":INCOMPATIBLE:",
+ "Client-Sign-RSA_PKCS1_SHA512-TLS13": ":INCOMPATIBLE:",
+ "Client-TLS13-NoSign-RSA_PKCS1_MD5_SHA1": ":INCOMPATIBLE:",
+ "Server-TLS12-NoSign-RSA_PKCS1_MD5_SHA1": ":INCOMPATIBLE:",
+ "Server-TLS13-NoSign-RSA_PKCS1_MD5_SHA1": ":INCOMPATIBLE:",
+ "ALPNClient-EmptyProtocolName-TLS13": ":PEER_MISBEHAVIOUR:",
+ "ALPNServer-EmptyProtocolName-TLS13": ":PEER_MISBEHAVIOUR:",
+ "ALPNClient-RejectUnknown-TLS13": ":PEER_MISBEHAVIOUR:",
+ "ClientAuth-NoFallback-RSA": ":BAD_HANDSHAKE_MSG:",
+ "ClientAuth-NoFallback-ECDSA": ":BAD_HANDSHAKE_MSG:",
+ "ClientAuth-NoFallback-TLS13": ":BAD_HANDSHAKE_MSG:",
+ "ServerAuth-NoFallback-TLS13": ":INCOMPATIBLE:",
+ "ClientAuth-Enforced-TLS13": ":PEER_MISBEHAVIOUR:",
+ "ServerAuth-Enforced-TLS13": ":PEER_MISBEHAVIOUR:",
+ "SecondClientHelloWrongCurve-TLS13": ":PEER_MISBEHAVIOUR:",
+ "SecondClientHelloMissingKeyShare-TLS13": ":INCOMPATIBLE:",
+ "Resume-Server-BinderWrongLength-SecondBinder": ":PEER_MISBEHAVIOUR:",
+ "Resume-Server-NoPSKBinder-SecondBinder": ":PEER_MISBEHAVIOUR:",
+ "Resume-Server-ExtraPSKBinder-SecondBinder": ":PEER_MISBEHAVIOUR:",
+ "Resume-Server-ExtraIdentityNoBinder-SecondBinder": ":PEER_MISBEHAVIOUR:",
+ "Resume-Server-InvalidPSKBinder-SecondBinder": ":PEER_MISBEHAVIOUR:",
+ "Resume-Server-PSKBinderFirstExtension-SecondBinder": ":PEER_MISBEHAVIOUR:",
+ "Resume-Server-OmitPSKsOnSecondClientHello": ":PEER_MISBEHAVIOUR:",
+ "Resume-Server-BinderWrongLength": ":PEER_MISBEHAVIOUR:",
+ "Resume-Server-NoPSKBinder": ":PEER_MISBEHAVIOUR:",
+ "Resume-Server-ExtraPSKBinder": ":PEER_MISBEHAVIOUR:",
+ "Resume-Server-ExtraIdentityNoBinder": ":PEER_MISBEHAVIOUR:",
+ "Resume-Server-InvalidPSKBinder": ":PEER_MISBEHAVIOUR:",
+ "Resume-Server-PSKBinderFirstExtension": ":PEER_MISBEHAVIOUR:",
+ "Resume-Client-PRFMismatch-TLS13": ":PEER_MISBEHAVIOUR:",
+ "Resume-Client-Mismatch-TLS12-TLS13-TLS": ":PEER_MISBEHAVIOUR:",
+ "Resume-Client-Mismatch-TLS13-TLS12-TLS": ":PEER_MISBEHAVIOUR:",
+ "NoSupportedCurves-TLS13": ":INCOMPATIBLE:",
+ "BadECDHECurve-TLS13": ":PEER_MISBEHAVIOUR:",
+ "InvalidECDHPoint-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "InvalidECDHPoint-Server-TLS13": ":PEER_MISBEHAVIOUR:",
+ "InvalidPSKIdentity-TLS13": ":PEER_MISBEHAVIOUR:",
+ "AlwaysSelectPSKIdentity-TLS13": ":PEER_MISBEHAVIOUR:",
+ "TrailingKeyShareData-TLS13": ":BAD_HANDSHAKE_MSG:",
+ "HelloRetryRequestCurveMismatch-TLS13": ":PEER_MISBEHAVIOUR:",
+ "HelloRetryRequestVersionMismatch-TLS13": ":INCOMPATIBLE:",
+ "HelloRetryRequest-DuplicateCookie-TLS13": ":PEER_MISBEHAVIOUR:",
+ "HelloRetryRequest-DuplicateCurve-TLS13": ":PEER_MISBEHAVIOUR:",
+ "UnknownUnencryptedExtension-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "UnexpectedUnencryptedExtension-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "UnofferedExtension-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "RenegotiationInfo-Forbidden-TLS13": ":PEER_MISBEHAVIOUR:",
+ "UnknownExtension-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "RequestContextInHandshake-TLS13": ":BAD_HANDSHAKE_MSG:",
+ "UnnecessaryHelloRetryRequest-TLS13": ":PEER_MISBEHAVIOUR:",
+ "UnknownCurve-HelloRetryRequest-TLS13": ":PEER_MISBEHAVIOUR:",
+ "DisabledCurve-HelloRetryRequest-TLS13": ":PEER_MISBEHAVIOUR:",
+ "HelloRetryRequest-Empty-TLS13": ":PEER_MISBEHAVIOUR:",
+ "HelloRetryRequest-EmptyCookie-TLS13": ":PEER_MISBEHAVIOUR:",
+ "TrailingDataWithFinished-Client-TLS12": ":PEER_MISBEHAVIOUR:",
+ "TrailingDataWithFinished-Resume-Client-TLS12": ":PEER_MISBEHAVIOUR:",
+ "TrailingDataWithFinished-Server-TLS12": ":PEER_MISBEHAVIOUR:",
+ "TrailingDataWithFinished-Resume-Server-TLS12": ":PEER_MISBEHAVIOUR:",
+ "TrailingDataWithFinished-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "TrailingDataWithFinished-Server-TLS13": ":PEER_MISBEHAVIOUR:",
+ "TrailingDataWithFinished-Resume-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "TrailingDataWithFinished-Resume-Server-TLS13": ":PEER_MISBEHAVIOUR:",
+ "PartialSecondClientHelloAfterFirst": ":PEER_MISBEHAVIOUR:",
+ "PartialClientFinishedWithSecondClientHello": ":PEER_MISBEHAVIOUR:",
+ "PartialClientFinishedWithClientHello-TLS12-Resume": ":PEER_MISBEHAVIOUR:",
+ "PartialServerHelloWithHelloRetryRequest": ":PEER_MISBEHAVIOUR:",
+ "PartialNewSessionTicketWithServerHelloDone": ":PEER_MISBEHAVIOUR:",
+ "PartialEndOfEarlyDataWithClientHello": ":PEER_MISBEHAVIOUR:",
+ "FragmentAcrossChangeCipherSpec-Client": ":PEER_MISBEHAVIOUR:",
+ "FragmentAcrossChangeCipherSpec-Server-Packed": ":PEER_MISBEHAVIOUR:",
+ "FragmentAcrossChangeCipherSpec-Client-Resume-Packed": ":PEER_MISBEHAVIOUR:",
+ "FragmentAcrossChangeCipherSpec-Client-Resume": ":PEER_MISBEHAVIOUR:",
+ "FragmentAcrossChangeCipherSpec-Server-Resume": ":PEER_MISBEHAVIOUR:",
+ "FragmentAcrossChangeCipherSpec-Server": ":PEER_MISBEHAVIOUR:",
+ "FragmentAcrossChangeCipherSpec-Client-Packed": ":PEER_MISBEHAVIOUR:",
+ "FragmentAcrossChangeCipherSpec-Server-Resume-Packed": ":PEER_MISBEHAVIOUR:",
+ "PartialFinishedWithServerHelloDone": ":PEER_MISBEHAVIOUR:",
+ "UnsupportedCurve-ServerHello-TLS13": ":PEER_MISBEHAVIOUR:",
+ "PartialClientKeyExchangeWithClientHello": ":PEER_MISBEHAVIOUR:",
+ "MinimumVersion-Client-TLS13-TLS12-TLS": ":INCOMPATIBLE:",
+ "MinimumVersion-Client2-TLS13-TLS12-TLS": ":INCOMPATIBLE:",
+ "MinimumVersion-Server-TLS13-TLS12-TLS": ":INCOMPATIBLE:",
+ "MinimumVersion-Server2-TLS13-TLS12-TLS": ":INCOMPATIBLE:",
+ "DuplicateKeyShares-TLS13": ":PEER_MISBEHAVIOUR:",
+ "PartialEncryptedExtensionsWithServerHello": ":PEER_MISBEHAVIOUR:",
+ "PartialClientFinishedWithClientHello": ":PEER_MISBEHAVIOUR:",
+ "PointFormat-EncryptedExtensions-TLS13": ":PEER_MISBEHAVIOUR:",
+ "Ticket-Forbidden-TLS13": ":PEER_MISBEHAVIOUR:",
+ "PointFormat-Server-MissingUncompressed": ":INCOMPATIBLE:",
+ "MissingSignatureAlgorithmsInCertificateRequest-TLS13": ":INCOMPATIBLE:",
+ "NegotiatePSKResumption-TLS13": ":PEER_MISBEHAVIOUR:",
+ "PointFormat-Client-MissingUncompressed": ":PEER_MISBEHAVIOUR:",
+ "SendUnsolicitedOCSPOnCertificate-TLS13": ":PEER_MISBEHAVIOUR:",
+ "SendUnsolicitedSCTOnCertificate-TLS13": ":PEER_MISBEHAVIOUR:",
+ "UnsolicitedServerNameAck-TLS-TLS12": ":PEER_MISBEHAVIOUR:",
+ "UnsolicitedServerNameAck-TLS-TLS13": ":PEER_MISBEHAVIOUR:",
+ "TicketSessionIDLength-33-TLS-TLS12": ":BAD_HANDSHAKE_MSG:",
+ "Server-TooLongSessionID-TLS13": ":BAD_HANDSHAKE_MSG:",
+ "Server-TooLongSessionID-TLS12": ":BAD_HANDSHAKE_MSG:",
+ "Client-TooLongSessionID": ":BAD_HANDSHAKE_MSG:",
+ "Ed25519DefaultDisable-NoAccept": ":PEER_MISBEHAVIOUR:",
+ "SendUnknownExtensionOnCertificate-TLS13": ":PEER_MISBEHAVIOUR:",
+ "SendDuplicateExtensionsOnCerts-TLS13": ":PEER_MISBEHAVIOUR:",
+ "SignedCertificateTimestampListEmpty-Client-TLS-TLS12": ":PEER_MISBEHAVIOUR:",
+ "SignedCertificateTimestampListEmpty-Client-TLS-TLS13": ":PEER_MISBEHAVIOUR:",
+ "SignedCertificateTimestampListEmptySCT-Client-TLS-TLS12": ":PEER_MISBEHAVIOUR:",
+ "SignedCertificateTimestampListEmptySCT-Client-TLS-TLS13": ":PEER_MISBEHAVIOUR:",
+ "EMS-Forbidden-TLS13": ":PEER_MISBEHAVIOUR:",
+ "Unclean-Shutdown": ":CLOSE_WITHOUT_CLOSE_NOTIFY:",
+ "SendExtensionOnClientCertificate-TLS13": ":PEER_MISBEHAVIOUR:",
+ "SendBogusAlertType": ":BAD_ALERT:",
+ "TLS13-HRR-InvalidCompressionMethod": ":BAD_HANDSHAKE_MSG:",
+ "CertificateCipherMismatch-RSA": ":PEER_MISBEHAVIOUR:",
+ "CertificateCipherMismatch-ECDSA": ":PEER_MISBEHAVIOUR:",
+ "CertificateCipherMismatch-Ed25519": ":PEER_MISBEHAVIOUR:",
+ "ServerCipherFilter-RSA": ":INCOMPATIBLE:",
+ "ServerCipherFilter-ECDSA": ":INCOMPATIBLE:",
+ "ServerCipherFilter-Ed25519": ":INCOMPATIBLE:",
+ "SendServerHelloAsHelloRetryRequest": ":BAD_HANDSHAKE_MSG:",
+ "TLS13-OnlyPadding": ":PEER_MISBEHAVIOUR:",
+ "TLS13-EmptyRecords": ":PEER_MISBEHAVIOUR:",
+ "TLS13-DuplicateTicketEarlyDataSupport": ":PEER_MISBEHAVIOUR:",
+ "SupportedVersionSelection-TLS12": ":PEER_MISBEHAVIOUR:",
+ "HelloRetryRequest-CipherChange-TLS13": ":PEER_MISBEHAVIOUR:",
+ "CurveTest-Client-Compressed-P-256-TLS12": ":PEER_MISBEHAVIOUR:",
+ "CurveTest-Server-Compressed-P-256-TLS12": ":PEER_MISBEHAVIOUR:",
+ "CurveTest-Client-Compressed-P-256-TLS13": ":PEER_MISBEHAVIOUR:",
+ "CurveTest-Server-Compressed-P-256-TLS13": ":PEER_MISBEHAVIOUR:",
+ "CurveTest-Client-Compressed-P-384-TLS12": ":PEER_MISBEHAVIOUR:",
+ "CurveTest-Server-Compressed-P-384-TLS12": ":PEER_MISBEHAVIOUR:",
+ "CurveTest-Client-Compressed-P-384-TLS13": ":PEER_MISBEHAVIOUR:",
+ "CurveTest-Server-Compressed-P-384-TLS13": ":PEER_MISBEHAVIOUR:",
+ "ExtendedMasterSecret-NoToYes-Client": ":PEER_MISBEHAVIOUR:",
+ "ExtendedMasterSecret-YesToNo-Server": ":PEER_MISBEHAVIOUR:",
+ "ExtendedMasterSecret-YesToNo-Client": ":PEER_MISBEHAVIOUR:",
+ "ServerAcceptsEarlyDataOnHRR-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "Downgrade-TLS12-Client": ":PEER_MISBEHAVIOUR:",
+ "Downgrade-TLS10-Client": ":HANDSHAKE_FAILURE:",
+ "Downgrade-TLS10-Server": ":INCOMPATIBLE:",
+ "UnsupportedCurve": ":PEER_MISBEHAVIOUR:",
+ "ECDSACurveMismatch-Verify-TLS13": ":BAD_SIGNATURE:",
+ "SecondServerHelloNoVersion-TLS13": ":PEER_MISBEHAVIOUR:",
+ "SecondServerHelloWrongVersion-TLS13": ":INCOMPATIBLE:",
+ "TooManyChangeCipherSpec-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "TooManyChangeCipherSpec-Server-TLS13": ":PEER_MISBEHAVIOUR:",
+ "EarlyData-CipherMismatch-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "EarlyDataWithoutResume-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "EarlyDataVersionDowngrade-Client-TLS13": ":PEER_MISBEHAVIOUR:",
+ "EarlyData-SkipEndOfEarlyData-TLS13": ":DECRYPTION_FAILED_OR_BAD_RECORD_MAC:",
+ "SkipEarlyData-Interleaved-TLS13": ":PEER_MISBEHAVIOUR:",
+ "SkipEarlyData-TooMuchData-TLS13": ":DECRYPTION_FAILED_OR_BAD_RECORD_MAC:",
+ "SkipEarlyData-HRR-FatalAlert-TLS13": ":HANDSHAKE_FAILURE:",
+ "SkipEarlyData-HRR-Interleaved-TLS13": ":PEER_MISBEHAVIOUR:",
+ "SkipEarlyData-HRR-TooMuchData-TLS13": ":UNEXPECTED_MESSAGE:",
+ "SkipEarlyData-SecondClientHelloEarlyData-TLS13": ":PEER_MISBEHAVIOUR:"
+ },
+ "TestLocalErrorMap": {
+ "SendServerHelloAsHelloRetryRequest": "remote error: error decoding message",
+ "GarbageCertificate-Server-TLS12": "remote error: bad certificate",
+ "GarbageCertificate-Server-TLS13": "remote error: bad certificate",
+ "GarbageCertificate-Client-TLS12": "remote error: bad certificate",
+ "GarbageCertificate-Client-TLS13": "remote error: bad certificate",
+ "Client-VerifyDefault-RSA_PKCS1_SHA1-TLS12": "tls: no common signature algorithms",
+ "Server-VerifyDefault-RSA_PKCS1_SHA1-TLS12": "tls: no common signature algorithms",
+ "Downgrade-TLS10-Client": "tls: no cipher suite supported by both client and server",
+ "Downgrade-TLS10-Server": "remote error: protocol version not supported",
+ "TrailingDataWithFinished-Client-TLS13": "local error: bad record MAC",
+ "TrailingDataWithFinished-Resume-Client-TLS13": "local error: bad record MAC",
+ "SkipEarlyData-SecondClientHelloEarlyData-TLS13": "remote error: illegal parameter"
+ },
+ "HalfRTTTickets": 0
+}
diff --git a/rustls-0.21.2/bogo/fetch-and-build b/rustls-0.21.2/bogo/fetch-and-build
new file mode 100755
index 0000000..82c14c9
--- /dev/null
+++ b/rustls-0.21.2/bogo/fetch-and-build
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+
+set -ex
+
+mkdir -p bogo
+pushd bogo
+
+git init --initial-branch main
+git config core.sparsecheckout 1
+cat << EOF > .git/info/sparse-checkout
+go.mod
+go.sum
+ssl/test/runner
+util/testresult
+EOF
+
+# fix on a tested point of rustls-testing branch
+COMMIT=b81c2d26009b6cc5159b7a9cbdddfa4ae79defea
+git fetch --depth=1 https://github.com/rustls/boringssl.git $COMMIT
+git checkout $COMMIT
+(cd ssl/test/runner && go test -c)
+
+popd
diff --git a/rustls-0.21.2/bogo/keys/cert.pem b/rustls-0.21.2/bogo/keys/cert.pem
new file mode 100644
index 0000000..a4c9994
--- /dev/null
+++ b/rustls-0.21.2/bogo/keys/cert.pem
@@ -0,0 +1,17 @@
+-----BEGIN CERTIFICATE-----
+MIICwTCCAamgAwIBAgIJAOvk/cOYx7QRMA0GCSqGSIb3DQEBCwUAMA8xDTALBgNV
+BAoMBGJvZ28wHhcNMTcwODI4MTQzNTIzWhcNMjcwODI2MTQzNTIzWjAPMQ0wCwYD
+VQQKDARib2dvMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzZ9e9VGd
+jJ4z1B7D8RcBhiBCU9qSfYrP2hFLBEEPBGXfFx6PGTLbKoNz8SpX4qvsZSF5pLV8
+f2/MU42YSv28KfSpYVP38ewWeY/J3mwe/6kGyDIRrRaIsjCEOXm7grUSOgVaqEmI
+5gZ28Za5j9hOWU6RPLCgVZzvesRxcS7bh+DTcdJ74A+dED7EV39VqSmu9H5/B0Xq
+AD7bgFHN4DFURU9J01F0f2KPxVLFHa+PbyjQzZXhDmw+Zl6hesJCvFFc4raFt5b0
+aRsEepoWwUb8KgApI5/cOEwmGhpLugTC8LALW6ZTWimpN5D92GvPdN1w9w9VPc3C
+ZDfD7PLK9MjRFQIDAQABoyAwHjAcBgNVHREEFTATggR0ZXN0ggtleGFtcGxlLmNv
+bTANBgkqhkiG9w0BAQsFAAOCAQEANDSklYrPCpv3Tr5sT2nr09LlwRivGUCLgIVv
+fqpfVE/ij3h33QthhJ/CR6x9e9q2WXB+UfNq6fIS5Kw6bE6dx4AljTUocng9IqNA
+y+CPxfq7Xl2uq6RqUFFnaVDZUmZGt0EofHvzpQKU29vGOjKoalIujoOj0sVyH7qK
+k26z9teDlU/wHHOElLHZaGwRPv7M5pWo5x2y5EnfTxwpi5Ic5mu0gaE3Xa6qlcu5
+WcFVEd8NVFDYfxN1A52JRjyfpYrjcaPCOAzFrJERGMPtHSkyfd0djihvW75cpf64
+CWeNQYqqf13rr1sg727cTXd65BRkhKFSb7A8QNf2e1m2vips2Q==
+-----END CERTIFICATE-----
diff --git a/rustls-0.21.2/bogo/keys/ecdsa_p256_cert.pem b/rustls-0.21.2/bogo/keys/ecdsa_p256_cert.pem
new file mode 100644
index 0000000..0d82e2d
--- /dev/null
+++ b/rustls-0.21.2/bogo/keys/ecdsa_p256_cert.pem
@@ -0,0 +1,9 @@
+-----BEGIN CERTIFICATE-----
+MIIBLzCB16ADAgECAgkAvS1W/y9FJJ0wCQYHKoZIzj0EATAUMRIwEAYDVQQKDAli
+b2dvLXAyNTYwHhcNMTcwODI4MTQzNTIzWhcNMjcwODI2MTQzNTIzWjAUMRIwEAYD
+VQQKDAlib2dvLXAyNTYwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQingxZkEmP
+ALGMBDvXwpATjzihD74sAJTOX6IfHwjy7iIdm5bsP+ME9zyU6qnu6fv0Zu7f7o6U
+Bxz235vAOxASoxMwETAPBgNVHREECDAGggR0ZXN0MAkGByqGSM49BAEDSAAwRQIg
+dNB2V/WHlr5L3YiCN+c1odtvg+stq0nz5LB4NOueWhACIQDLWeMG/MXGjM9hr3JO
+izH3GbWkFN58KFzqoalfRhYwCQ==
+-----END CERTIFICATE-----
diff --git a/rustls-0.21.2/bogo/keys/ecdsa_p256_key.pem b/rustls-0.21.2/bogo/keys/ecdsa_p256_key.pem
new file mode 100644
index 0000000..102c530
--- /dev/null
+++ b/rustls-0.21.2/bogo/keys/ecdsa_p256_key.pem
@@ -0,0 +1,5 @@
+-----BEGIN PRIVATE KEY-----
+MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgPNtjq6YsYC9qgqXR
+AZevfVt61zK8lkkM+gx9Vh/CPH2hRANCAAQingxZkEmPALGMBDvXwpATjzihD74s
+AJTOX6IfHwjy7iIdm5bsP+ME9zyU6qnu6fv0Zu7f7o6UBxz235vAOxAS
+-----END PRIVATE KEY-----
diff --git a/rustls-0.21.2/bogo/keys/ecdsa_p384_cert.pem b/rustls-0.21.2/bogo/keys/ecdsa_p384_cert.pem
new file mode 100644
index 0000000..a033a7f
--- /dev/null
+++ b/rustls-0.21.2/bogo/keys/ecdsa_p384_cert.pem
@@ -0,0 +1,10 @@
+-----BEGIN CERTIFICATE-----
+MIIBbTCB9KADAgECAgkAnarogxZe7cYwCQYHKoZIzj0EATAUMRIwEAYDVQQKDAli
+b2dvLXAzODQwHhcNMTcwODI4MTQzNTIzWhcNMjcwODI2MTQzNTIzWjAUMRIwEAYD
+VQQKDAlib2dvLXAzODQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQb5S/671ocYzgV
+uGdFEo75AWUjwgPEwxFtrwgXn5SQEqPGGuJ4V7AB04kQ2BRhO+koTyq/QEtTIV5S
+KNhc9gH15ThkFUCLJTxurshRt8fIleWHDXqf7+kT12zfxsXOvGCjEzARMA8GA1Ud
+EQQIMAaCBHRlc3QwCQYHKoZIzj0EAQNpADBmAjEAl32GlN7wdF6LIjtSoe13yj/n
+Au7ENi5fNj6qczKXU9a7Hy0mmZCD4au7K7kwh8YcAjEAuv6Jo8BUuyCzY0U+zSxX
+bUM6/ZBxn04uMLe1+NC2RoyhNp4HugQP+4KXVuFyFyu0
+-----END CERTIFICATE-----
diff --git a/rustls-0.21.2/bogo/keys/ecdsa_p384_key.pem b/rustls-0.21.2/bogo/keys/ecdsa_p384_key.pem
new file mode 100644
index 0000000..6719281
--- /dev/null
+++ b/rustls-0.21.2/bogo/keys/ecdsa_p384_key.pem
@@ -0,0 +1,6 @@
+-----BEGIN PRIVATE KEY-----
+MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDAqYnznQtyoRmf+knoM
+h9AwVqbeeXdBHUrxXgDg5gYqRUCOEea2rUchjnEOZtLyVmChZANiAAQb5S/671oc
+YzgVuGdFEo75AWUjwgPEwxFtrwgXn5SQEqPGGuJ4V7AB04kQ2BRhO+koTyq/QEtT
+IV5SKNhc9gH15ThkFUCLJTxurshRt8fIleWHDXqf7+kT12zfxsXOvGA=
+-----END PRIVATE KEY-----
diff --git a/rustls-0.21.2/bogo/keys/key.pem b/rustls-0.21.2/bogo/keys/key.pem
new file mode 100644
index 0000000..06bf2d4
--- /dev/null
+++ b/rustls-0.21.2/bogo/keys/key.pem
@@ -0,0 +1,28 @@
+-----BEGIN PRIVATE KEY-----
+MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDNn171UZ2MnjPU
+HsPxFwGGIEJT2pJ9is/aEUsEQQ8EZd8XHo8ZMtsqg3PxKlfiq+xlIXmktXx/b8xT
+jZhK/bwp9KlhU/fx7BZ5j8nebB7/qQbIMhGtFoiyMIQ5ebuCtRI6BVqoSYjmBnbx
+lrmP2E5ZTpE8sKBVnO96xHFxLtuH4NNx0nvgD50QPsRXf1WpKa70fn8HReoAPtuA
+Uc3gMVRFT0nTUXR/Yo/FUsUdr49vKNDNleEObD5mXqF6wkK8UVzitoW3lvRpGwR6
+mhbBRvwqACkjn9w4TCYaGku6BMLwsAtbplNaKak3kP3Ya8903XD3D1U9zcJkN8Ps
+8sr0yNEVAgMBAAECggEAFLuNB49DI3qQH0M63oRDUxLNnUbcnmvwqTw1JCirKvZa
+mCoso43NK2w1tItgcSqEm23UphbmhrLvFz2frXAIGPLiYT3mMi5r1bX51MNyHLUe
+SfFCdwFepxjdPC5aCcPYIqGHkpBXjVn5hEJ+U1KsE7UoT8Y/ZGJ+gxJrnc3rtLd4
+TFxF5p6KKX3qluFnsjwjlcP7tMXd+fY3YWecAt+nUuz1eoQ5btieYW37/HV/LUhU
+Ew1aQ65nWx2Tb3XIRiEOB+KadI6BYYgfiNQuEfvDHy0MUToTTxl/P+Z/RIpuMWQz
+PysCGY8REM4+5bD+R8PUw2BszR6+3mIhpxROc3J5wQKBgQDu3i0kJ3XgkgSQjHYD
+ev2TzLP4U1GVITIOPm2si5rsuL3OP4fEBgurnY++L/SQzAztyV0ZYhrXpi1OzkJQ
+4HKdOux9L21FBgpZuIW3FVAJ45nTgicrIxPG/4fXsepXA/+YVFCZE/6YcBHbMaAj
+ZNRgd6/oPUkEqA7d0z2+39lOFwKBgQDcXsf3iBRv8JZnDiLKSol6ig4IiIDumhVt
+gSfLYmRrycSa5nj0if76s1618WRiU3oNWHd9QCCgB0ju/faoQSo1s4q3rGMaACPX
+WczSudci0dxID47UrdQE3F0tj3nF9yJSqmyc9sgY16O34k5OvsCtCqOaWLXddXUj
+uqN6HZPhswKBgQDXDYpAoZI709puNTdOnN1Nwp9I8+JgTBmfv07IaIvbkdu4o3Pc
+5MB/CoTOaqhZ8Iu3TXIXFz8pZcAm0gXcgKZPriwZ7KgI245YBovEMFj1/kaQqP4Q
+lS0KHSa058Yd/0iPYWGK3/h4T3WUDVKqau3VyAvEH+DsY023IqbVgP1IkwKBgDfs
+GYS4VK9fd1tpm+yH48Fj/VGvCkECewOR7f5P1rn/ttO0PueXiUwnbpZvTpEhK+zt
+EU2Ik37oulpjuk9SUhrUmBQqO+/iLzY8BJ1JKc4dQXBL+mwAPLiLD147daSGJYCi
+3PMsMPUU6+gDFuomwBBpjcDiWCx93R8XAts/XEK/AoGAJrh0wA4SEkFV//FcS0k8
+7J3ussV0xJf7QK156oZ0vTtgGQtKgJV7RQ6YoqlNoypTEcYy9pe1ygoab9PlGMDr
+h9oW2/ULzcdvFhQrN9LIZYtZUftbFOsnbC0VCUxM9X3jKqveuWdSUkanVxzhIm1o
+5jNe8cr8Wy4nn6BCc0CShyE=
+-----END PRIVATE KEY-----
diff --git a/rustls-0.21.2/bogo/keys/rsa_1024_cert.pem b/rustls-0.21.2/bogo/keys/rsa_1024_cert.pem
new file mode 100644
index 0000000..3e19fc0
--- /dev/null
+++ b/rustls-0.21.2/bogo/keys/rsa_1024_cert.pem
@@ -0,0 +1,12 @@
+-----BEGIN CERTIFICATE-----
+MIIBvzCCASigAwIBAgIJAPdX5ohr7khiMA0GCSqGSIb3DQEBBQUAMBcxFTATBgNV
+BAoMDGJvZ28tcnNhMTAyNDAeFw0xNzA4MjgxNDM1MjNaFw0yNzA4MjYxNDM1MjNa
+MBcxFTATBgNVBAoMDGJvZ28tcnNhMTAyNDCBnzANBgkqhkiG9w0BAQEFAAOBjQAw
+gYkCgYEA65t1vhJG/nqeoNc21C6cfHJp1kTTx6kyOo5A/Ky5OEyGF+a3sDxdwQi0
+w/kOr0Vk2EeSmbAaUv3RTGNAMDZgyFRULWQxOXZHHuKDxtKdMkDcWd/0eiI1wrXM
+u/0TpbHQZ13yLaj5Zj8/C3e9hcGefDTnu8cFzF1mNdGF9UOvUJECAwEAAaMTMBEw
+DwYDVR0RBAgwBoIEdGVzdDANBgkqhkiG9w0BAQUFAAOBgQCiQZyZwmeNBD1t5Hqb
+5CtqSlRYRAqCOqJSoKoAFPwrvUo9q4oHnziqhmVNlzH+0/4YEDqzx/eNy+2nzaLs
+5RSMG3bDRBW1azUtb9UX9XvErlswnrRhluoFBgpz7f/OgwGi7eenO9voVR/SzFHC
+nwSEnrKyp3TECXBSB0E57W8+AA==
+-----END CERTIFICATE-----
diff --git a/rustls-0.21.2/bogo/keys/rsa_1024_key.pem b/rustls-0.21.2/bogo/keys/rsa_1024_key.pem
new file mode 100644
index 0000000..18860e7
--- /dev/null
+++ b/rustls-0.21.2/bogo/keys/rsa_1024_key.pem
@@ -0,0 +1,16 @@
+-----BEGIN PRIVATE KEY-----
+MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAOubdb4SRv56nqDX
+NtQunHxyadZE08epMjqOQPysuThMhhfmt7A8XcEItMP5Dq9FZNhHkpmwGlL90Uxj
+QDA2YMhUVC1kMTl2Rx7ig8bSnTJA3Fnf9HoiNcK1zLv9E6Wx0Gdd8i2o+WY/Pwt3
+vYXBnnw057vHBcxdZjXRhfVDr1CRAgMBAAECgYAmX5GTvYJWnD4N0D+b22OdWT0n
+qtobYNFPfC/Vd4RLSRtl9SvhxlM2x2Y5rOzZWyILn8yev3HqJnDaUif4MkMcza8m
+OFLWUcklLF4tXFYKPIHlmEuX4BV1TwTlraxFSSNT9cK1jKgUtVu9tIMaqRRguq64
+3pGG/LLVR8SYiF1YiQJBAPZQby60gA+At+P/aSdUhdRbQKMtg+99F3cuF+OcS6HT
+LxG+Gjy7GSH6W4RXrkhpjFDTAYzsmPhMHFYiMupmSscCQQD03z4NvsJngeHlu9KB
+Ip84Q9edKZPr49qTnMDp+ucA9fNXy57IQMNFQxQyHojZ4iaMRDm9hMDkaSZSnuUy
+oHHnAkADiGvP067yifoZPxSXB9NTlGt86640xSqM/xBAp4E+NPU73+oobNaTci/V
+2hwZ1cm5bw1apBodlZnicmMgkY8JAkEAjSZV7bRk+Sc8IKHYoIllgBhTJAvAcXwB
+FY+JABaZq8saPyRnXYU/SiB1dsJ1HisnDzmQkvb//WnDJmLjOQCVRwJBAJKZ+EHy
+WNc8TWnnE1ZFO8ifBB0Nw21u0DjAwp7YeltufqCkkmgdrvWu9LNMmzAJY70Z6rd/
+iAxe1vcHuPJ0R5k=
+-----END PRIVATE KEY-----
diff --git a/rustls-0.21.2/bogo/keys/rsa_chain_cert.pem b/rustls-0.21.2/bogo/keys/rsa_chain_cert.pem
new file mode 100644
index 0000000..dbb83f3
--- /dev/null
+++ b/rustls-0.21.2/bogo/keys/rsa_chain_cert.pem
@@ -0,0 +1,38 @@
+-----BEGIN CERTIFICATE-----
+MIICwDCCAaigAwIBAgIJAMxop1TANOUXMA0GCSqGSIb3DQEBCwUAMBUxEzARBgNV
+BAoMCmJvZ28tY2hhaW4wHhcNMTcwODI4MTQzNTIzWhcNMjcwODI2MTQzNTIzWjAV
+MRMwEQYDVQQKDApib2dvLWNoYWluMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
+CgKCAQEA5Rmy9d0TK2CYkabdcLWP2t18G/VTI3tqQ248uLPHsu0Qwd1jnpvy+iSM
+6wvj7HF28vRp7bH45LZYr0n3xBKO2Unq0FjGYrpd69f/RKSa7YiZOwRNcnvjH2sK
+/V8kpQVVWtFbifNwiyTKGTsI2B3itDuAofIobSV1q18QruEDOkZDqK98zxmlFctM
+IaZGCg+qVHSwoMOVSPvEffe4AApB+Y5BbBuPlx1TOLpD+chnfQxAC/SstrKgSP8W
+TipezQZ707p0XO3TvEMEZg474ZBmCdxDHgOAkxJWAHh+7/G7hyzK9OiknUH6m6Rj
+BEgKQM8Ts3UwjjVukXjpX04Y5e4NkwIDAQABoxMwETAPBgNVHREECDAGggR0ZXN0
+MA0GCSqGSIb3DQEBCwUAA4IBAQDdlYbBnfLp87GTzA3EoflWccTKmqQXzz+cV7Ys
+Y8lyFkeNkI5bjdlA2OEvpC8qwP7t5ynWlGCaRLhu8DL5xYg/phdebnoDziExq4sx
+8KDs94F8o5OrTLvhF5/54XXBmlQ5CBCrij/Yh5rEZYHp0WKeGeusJoAdNYsAsWBP
+ic9Kz5f1KGwVZRVwerFRHxn0d3TRApdr8Z08BEeFgf85GJ/NzgXgeVUPeY1zP29N
+d2YMjQkoftv8rDyPajzkRrA8m95kqBnBq7zS1RIJsOgyVj7euxBR3KImGveGv77E
+60Md73BJ+G5PmEvMvA8ISpGwIKECUoPrF78nEnNzDebkMSL4
+-----END CERTIFICATE-----
+-----BEGIN CERTIFICATE-----
+MIIDYDCCAkigAwIBAgIJAMzVAHp+DLMaMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
+BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX
+aWRnaXRzIFB0eSBMdGQwHhcNMTcwODI4MTQzNTIzWhcNMjcwODI2MTQzNTIzWjBF
+MQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50
+ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
+CgKCAQEA2I/TeZbcYE4dtFHumC2BnklgZ58eoYO+GXQITbHauYmw3Zk2q6p73mfM
+P8zCA7ftEOQRA9rTKC4UsWY+Q8S4HML6Z/CtYgR8ZTx+tkO2NVmf9uP0xS6rxZAJ
+gcZFemnWM5nMk+4AXSR23nfVbHJ/mW1MpDOFP8wvSr1BrIrJojWVy7/9k6SuRWYK
+rK7FpwaSCk+X5U9R2i/RkVvtg58NLuGqpkxSMszpb0NbaG/sw0/s1a9sPEliBPOE
+HaiGOKB5xSIDXcIfoFx+3G4TwX97bT4wUP4OfwbyHZTXCWfXFGVtHq+038OrhEkc
+p4WjJm54oi5FOuNy9egspDKohbfw4wIDAQABo1MwUTAdBgNVHQ4EFgQUK+qMsG3P
+TWsWrsjmRtpSICfCFhEwHwYDVR0jBBgwFoAUK+qMsG3PTWsWrsjmRtpSICfCFhEw
+DwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEALVCboVd/Kf3ofoqS
+03S9aa2hXscDcvqPxhEhRosiunM3/qnXn3+SHJGvOKciXV+A/YCvwsvX4AeMxxH3
+tSg55g+2hylFfk9hyTmNRKUMxQNZSbUpGtOz6vM9o8HgBP3KzS0mvHxRI5VNN8n3
+wDcmjx/GCBbUOgRPzAIKIqpzKX7PNHF2imgf2HeDhWGIowNWE/GbuRg+tCxQY5ZZ
+vN9XxIttvrzTHh57sHntwUvAkc+EI5TJiD/VbUiBEfHt0vojU2lzEKuGmzKpuT/g
+vSu8+pGvI3lD1bNg26zniPOUxzGW93ZKS87af+bcicVvpVxsZ+OEgxyJhGdqZDjY
+IdjRtA==
+-----END CERTIFICATE-----
diff --git a/rustls-0.21.2/bogo/keys/rsa_chain_key.pem b/rustls-0.21.2/bogo/keys/rsa_chain_key.pem
new file mode 100644
index 0000000..ec3f58f
--- /dev/null
+++ b/rustls-0.21.2/bogo/keys/rsa_chain_key.pem
@@ -0,0 +1,28 @@
+-----BEGIN PRIVATE KEY-----
+MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDlGbL13RMrYJiR
+pt1wtY/a3Xwb9VMje2pDbjy4s8ey7RDB3WOem/L6JIzrC+PscXby9Gntsfjktliv
+SffEEo7ZSerQWMZiul3r1/9EpJrtiJk7BE1ye+Mfawr9XySlBVVa0VuJ83CLJMoZ
+OwjYHeK0O4Ch8ihtJXWrXxCu4QM6RkOor3zPGaUVy0whpkYKD6pUdLCgw5VI+8R9
+97gACkH5jkFsG4+XHVM4ukP5yGd9DEAL9Ky2sqBI/xZOKl7NBnvTunRc7dO8QwRm
+DjvhkGYJ3EMeA4CTElYAeH7v8buHLMr06KSdQfqbpGMESApAzxOzdTCONW6ReOlf
+Thjl7g2TAgMBAAECggEAWAI/VWPP8WHyOkG334xf7twWyUa84WyPrcezW+D0Xi/j
+uBWsJ0oRVTalS8YNkM8lur9Z0g4EZxgFiZEItTHL3n0ez1rLGzIs0mTvkxcIzSck
+dh95APnGjlM4rYzXLu2VlIXIfH4gRdOkL30WMK+KX2JcT9oO3Z7+TQ8AAa4+5ytM
+sPD5R4IIhbWcgd+yoGqRN44qBvaHrLUfX5xE9dH3HpgrRqKtJlmUlJBqQKsjPglE
+VQbpibh5cvJaEw3C9eiNi5CTd+ZFa8wlQgUtOJ8xjDl6a194u+qKu/UbcwcQv/aL
+1pX8cYAfmFIABYaP5kRhFJ4kKN02XVlpMU4Zn/JEAQKBgQD7Rqtoxc+dEUabsvc8
+vlrQl3GrqGapMGzpxaXQbtVc9up+EsNzmQwfkbm/RLaGhGSHG8FXODnObN1W4Mw/
+j/X3DoCtFV/9gX49fOCP8iNFaBlCOVhYO9JS4XttW124CVBbBc4xpQn3VI42u5MF
+mwegk0FiRZjGfVqAncM1rV2GwQKBgQDpaE2szTifaFm3G6qt3DUzMuPtu+qP0K34
+Ccr79tIB4gbTOVBsmOJQ3/nHUdpHYCoZG7A3eG6Jq4dhf1jaycJ4sGt90WuJF13c
+pjRuYLK9G/74Yj/makCDlW6N4LGV7TuTL8GBdGPEOp/PJWqxYVKPbK0/2sdz/YGq
+8fONQbedUwKBgBaSR412z2p9hckwr1LOipvYLsbLrsUd63qoXXe2rQXXzEKc7t+w
+bM1dKsFKq9azh9A3Jwvtqgun7c4DDXXcOa0CqX5iwCemfS+KyyVDC/YNHs+7FPuA
+DCmTxaGSJn4EoCo9AEOnXpjQCKJUASXswiejcqkgNVQHKJ0LDuEAfLlBAoGBANxO
+8jov/skf8saN2719Q83OtCs6Gz2hyAN+ItVO9IyIbs7Co3HNoJibwCTt0q1aTIIk
+i2DgUN2rRP62+ASTOfc29k7s86aToqnZS1X/+dXb7f8+pXf0RG6vBonuU1Djej8E
+bY6mcGDQwPUCKUHCTe5IswK5m1eVKeZTuAJVzF03AoGAGaKqUOlr108TV4hAU+/c
+VPQ/px4JWGFiXLfr83qBuGpOCwseMHNxIBfX4ByaFnQHS2hITt0CnqBmEjwrg5Er
+XFg7rlP1pNzKi/xDG7dJhf8BG0s2oaWDU9/ueM1Ub6G2hU8opv+8XTKxYTksRPLC
+E5B6+WXrANVFwnOw30zZKn4=
+-----END PRIVATE KEY-----
diff --git a/rustls-0.21.2/bogo/regen-certs b/rustls-0.21.2/bogo/regen-certs
new file mode 100755
index 0000000..ef200ed
--- /dev/null
+++ b/rustls-0.21.2/bogo/regen-certs
@@ -0,0 +1,122 @@
+#!/usr/bin/env bash
+
+set -e
+
+rm -rf keys/ && mkdir -p keys/
+
+# cert.pem/key.pem: rsa2048/sha256 self signed
+openssl req -batch -x509 \
+ -utf8 \
+ -newkey rsa:2048 \
+ -sha256 \
+ -days 3650 \
+ -nodes -keyout keys/key.pem \
+ -out keys/cert.pem \
+ -reqexts SAN \
+ -extensions SAN \
+ -config <(cat <<EOF
+[req]
+prompt=no
+distinguished_name=req_distinguished_name
+[req_distinguished_name]
+O=bogo
+[SAN]
+subjectAltName=DNS:test,DNS:example.com
+EOF
+)
+
+# rsa_1024_cert.pem/rsa_1024_key.pem: rsa1024/sha1 self signed
+openssl req -batch -x509 \
+ -utf8 \
+ -newkey rsa:1024 \
+ -sha1 \
+ -days 3650 \
+ -nodes -keyout keys/rsa_1024_key.pem \
+ -out keys/rsa_1024_cert.pem \
+ -reqexts SAN \
+ -extensions SAN \
+ -config <(cat <<EOF
+[req]
+prompt=no
+distinguished_name=req_distinguished_name
+[req_distinguished_name]
+O=bogo-rsa1024
+[SAN]
+subjectAltName=DNS:test
+EOF
+)
+
+# rsa_chain_cert.pem/rsa_chain_key.pem: rsa2048/sha256 with chain rsa2048/sha256
+# nb. chain is not validated
+openssl req -batch -x509 \
+ -utf8 \
+ -newkey rsa:2048 \
+ -sha256 \
+ -days 3650 \
+ -nodes -keyout cakey.pem \
+ -out cacert.pem
+openssl req -batch -x509 \
+ -utf8 \
+ -newkey rsa:2048 \
+ -sha256 \
+ -days 3650 \
+ -nodes -keyout keys/rsa_chain_key.pem \
+ -out keys/rsa_chain_cert.pem \
+ -reqexts SAN \
+ -extensions SAN \
+ -config <(cat <<EOF
+[req]
+prompt=no
+distinguished_name=req_distinguished_name
+[req_distinguished_name]
+O=bogo-chain
+[SAN]
+subjectAltName=DNS:test
+EOF
+)
+cat cacert.pem >> keys/rsa_chain_cert.pem
+
+# ecdsa_p256_cert.pem/ecdsa_p256_key.pem: ecdsap256/sha1(?)
+openssl req -batch -x509 \
+ -utf8 \
+ -newkey ec \
+ -pkeyopt ec_paramgen_curve:prime256v1 \
+ -sha1 \
+ -days 3650 \
+ -nodes -keyout keys/ecdsa_p256_key.pem \
+ -out keys/ecdsa_p256_cert.pem \
+ -reqexts SAN \
+ -extensions SAN \
+ -config <(cat <<EOF
+[req]
+prompt=no
+distinguished_name=req_distinguished_name
+[req_distinguished_name]
+O=bogo-p256
+[SAN]
+subjectAltName=DNS:test
+EOF
+)
+
+# ecdsa_p384_cert.pem/ecdsa_p384_key.pem: ecdsap384/sha1
+openssl req -batch -x509 \
+ -utf8 \
+ -newkey ec \
+ -pkeyopt ec_paramgen_curve:secp384r1 \
+ -sha1 \
+ -days 3650 \
+ -nodes -keyout keys/ecdsa_p384_key.pem \
+ -out keys/ecdsa_p384_cert.pem \
+ -reqexts SAN \
+ -extensions SAN \
+ -config <(cat <<EOF
+[req]
+prompt=no
+distinguished_name=req_distinguished_name
+[req_distinguished_name]
+O=bogo-p384
+[SAN]
+subjectAltName=DNS:test
+EOF
+)
+
diff --git a/rustls-0.21.2/bogo/runme b/rustls-0.21.2/bogo/runme
new file mode 100755
index 0000000..4b8630d
--- /dev/null
+++ b/rustls-0.21.2/bogo/runme
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+
+# This script fetches, builds, and runs the BoringSSL
+# TLS test tool ('BoGo') against rustls.
+
+set -xe
+
+if [ "x$USE_EXISTING_BOGO_SHIM" = "x" ] ; then
+ cargo build --example bogo_shim --features dangerous_configuration,quic
+fi
+
+if [ ! -e bogo/ssl/test/runner/runner.test ] ; then
+ ./fetch-and-build
+ cp -v keys/* bogo/
+fi
+
+# Best effort on OS-X
+case $OSTYPE in darwin*) set +e ;; esac
+
+( cd bogo/ssl/test/runner && ./runner.test -shim-path ../../../../../target/debug/examples/bogo_shim \
+ -shim-config ../../../../config.json \
+ -pipe \
+ -allow-unimplemented \
+ -test.timeout 60s \
+ "$@") # you can pass in `-test "Foo;Bar"` to run specific tests
+true
diff --git a/rustls-0.21.2/connect-tests/Cargo.toml b/rustls-0.21.2/connect-tests/Cargo.toml
new file mode 100644
index 0000000..f6c0c24
--- /dev/null
+++ b/rustls-0.21.2/connect-tests/Cargo.toml
@@ -0,0 +1,23 @@
+[package]
+name = "rustls-connect-tests"
+version = "0.0.1"
+edition = "2021"
+rust-version = "1.60"
+license = "Apache-2.0 OR ISC OR MIT"
+description = "Rustls connectivity based integration tests."
+publish = false
+
+# Prevent this from interfering with workspaces
+[workspace]
+members = ["."]
+
+[features]
+dangerous_configuration = ["rustls/dangerous_configuration"]
+quic = ["rustls/quic"]
+
+[dependencies]
+rustls = { path = "../rustls", features = [ "logging" ]}
+
+[dev-dependencies]
+regex = "1.0"
+ring = "0.16.20"
diff --git a/rustls-0.21.2/connect-tests/tests/badssl.rs b/rustls-0.21.2/connect-tests/tests/badssl.rs
new file mode 100644
index 0000000..ecd216a
--- /dev/null
+++ b/rustls-0.21.2/connect-tests/tests/badssl.rs
@@ -0,0 +1,137 @@
+// These tests use the various test servers run by Google
+// at badssl.com.
+
+#[allow(dead_code)]
+mod common;
+
+mod online {
+ use super::common::TlsClient;
+
+ fn connect(hostname: &str) -> TlsClient {
+ TlsClient::new(hostname)
+ }
+
+ #[test]
+ fn no_cbc() {
+ connect("cbc.badssl.com")
+ .fails()
+ .expect(r"TLS error: AlertReceived\(HandshakeFailure\)")
+ .go()
+ .unwrap();
+ }
+
+ #[test]
+ fn no_rc4() {
+ connect("rc4.badssl.com")
+ .fails()
+ .expect(r"TLS error: AlertReceived\(HandshakeFailure\)")
+ .go()
+ .unwrap();
+ }
+
+ #[test]
+ fn expired() {
+ connect("expired.badssl.com")
+ .fails()
+ .expect(r#"TLS error: InvalidCertificate\(Expired\)"#)
+ .go()
+ .unwrap();
+ }
+
+ #[test]
+ fn wrong_host() {
+ connect("wrong.host.badssl.com")
+ .fails()
+ .expect(r#"TLS error: InvalidCertificate\(NotValidForName\)"#)
+ .go()
+ .unwrap();
+ }
+
+ #[test]
+ fn self_signed() {
+ connect("self-signed.badssl.com")
+ .fails()
+ .expect(r#"TLS error: InvalidCertificate\(UnknownIssuer\)"#)
+ .go()
+ .unwrap();
+ }
+
+ #[test]
+ fn no_dh() {
+ connect("dh2048.badssl.com")
+ .fails()
+ .expect(r"TLS error: AlertReceived\(HandshakeFailure\)")
+ .go()
+ .unwrap();
+ }
+
+ #[test]
+ fn mozilla_old() {
+ connect("mozilla-old.badssl.com")
+ .expect("<title>mozilla-old.badssl.com</title>")
+ .go()
+ .unwrap();
+ }
+
+ #[test]
+ fn mozilla_inter() {
+ connect("mozilla-intermediate.badssl.com")
+ .expect("<title>mozilla-intermediate.badssl.com</title>")
+ .go()
+ .unwrap();
+ }
+
+ #[test]
+ fn mozilla_modern() {
+ connect("mozilla-modern.badssl.com")
+ .expect("<title>mozilla-modern.badssl.com</title>")
+ .go()
+ .unwrap();
+ }
+
+ #[test]
+ fn sha256() {
+ connect("sha256.badssl.com")
+ .expect("<title>sha256.badssl.com</title>")
+ .go()
+ .unwrap();
+ }
+
+ #[test]
+ fn too_many_sans() {
+ connect("10000-sans.badssl.com")
+ .fails()
+ .expect(r"TLS error: InvalidMessage\(HandshakePayloadTooLarge\)")
+ .go()
+ .unwrap();
+ }
+
+ #[test]
+ fn rsa8192() {
+ connect("rsa8192.badssl.com")
+ .expect("<title>rsa8192.badssl.com</title>")
+ .go()
+ .unwrap();
+ }
+
+ #[test]
+ fn sha1_2016() {
+ connect("sha1-2016.badssl.com")
+ .fails()
+ .expect(r#"TLS error: InvalidCertificate\(Expired\)"#)
+ .go()
+ .unwrap();
+ }
+
+ #[cfg(feature = "dangerous_configuration")]
+ mod danger {
+ #[test]
+ fn self_signed() {
+ super::connect("self-signed.badssl.com")
+ .insecure()
+ .expect("<title>self-signed.badssl.com</title>")
+ .go()
+ .unwrap();
+ }
+ }
+}
diff --git a/rustls-0.21.2/connect-tests/tests/common/mod.rs b/rustls-0.21.2/connect-tests/tests/common/mod.rs
new file mode 100644
index 0000000..3e77cb2
--- /dev/null
+++ b/rustls-0.21.2/connect-tests/tests/common/mod.rs
@@ -0,0 +1,355 @@
+use std::env;
+use std::net;
+
+use std::fs::{self, File};
+use std::io::Write;
+use std::path::{Path, PathBuf};
+use std::process;
+use std::str;
+use std::thread;
+use std::time;
+
+use self::regex::Regex;
+use regex;
+
+use ring::rand::SecureRandom;
+
+pub struct DeleteFilesOnDrop {
+ path: PathBuf,
+}
+
+impl DeleteFilesOnDrop {
+ pub fn path(&self) -> &PathBuf {
+ &self.path
+ }
+}
+
+impl Drop for DeleteFilesOnDrop {
+ fn drop(&mut self) {
+ fs::remove_dir_all(&self.path).unwrap();
+ }
+}
+
+macro_rules! embed_files {
+ (
+ $(
+ ($name:ident, $keytype:expr, $path:expr);
+ )+
+ ) => {
+ $(
+ const $name: &'static [u8] = include_bytes!(
+ concat!("../../../test-ca/", $keytype, "/", $path));
+ )+
+
+ pub fn bytes_for(keytype: &str, path: &str) -> &'static [u8] {
+ match (keytype, path) {
+ $(
+ ($keytype, $path) => $name,
+ )+
+ _ => panic!("unknown keytype {} with path {}", keytype, path),
+ }
+ }
+
+ pub fn new_test_ca() -> DeleteFilesOnDrop {
+ let mut rand = [0u8; 4];
+ ring::rand::SystemRandom::new()
+ .fill(&mut rand)
+ .unwrap();
+
+ let dir = env::temp_dir()
+ .join(format!("rustls-{:02x}{:02x}{:02x}{:02x}",
+ rand[0], rand[1], rand[2], rand[3]));
+ let deleter = DeleteFilesOnDrop {
+ path: dir,
+ };
+
+ fs::create_dir(&deleter.path).unwrap();
+ fs::create_dir(deleter.path.join("ecdsa")).unwrap();
+ fs::create_dir(deleter.path.join("eddsa")).unwrap();
+ fs::create_dir(deleter.path.join("rsa")).unwrap();
+
+ $(
+ let filename = deleter.path.join($keytype).join($path);
+ let mut f = File::create(&filename).unwrap();
+ f.write_all($name).unwrap();
+ )+
+
+ deleter
+ }
+ }
+}
+
+embed_files! {
+ (ECDSA_CA_CERT, "ecdsa", "ca.cert");
+ (ECDSA_CA_DER, "ecdsa", "ca.der");
+ (ECDSA_CA_KEY, "ecdsa", "ca.key");
+ (ECDSA_CLIENT_CERT, "ecdsa", "client.cert");
+ (ECDSA_CLIENT_CHAIN, "ecdsa", "client.chain");
+ (ECDSA_CLIENT_FULLCHAIN, "ecdsa", "client.fullchain");
+ (ECDSA_CLIENT_KEY, "ecdsa", "client.key");
+ (ECDSA_CLIENT_REQ, "ecdsa", "client.req");
+ (ECDSA_END_CERT, "ecdsa", "end.cert");
+ (ECDSA_END_CHAIN, "ecdsa", "end.chain");
+ (ECDSA_END_FULLCHAIN, "ecdsa", "end.fullchain");
+ (ECDSA_END_KEY, "ecdsa", "end.key");
+ (ECDSA_END_REQ, "ecdsa", "end.req");
+ (ECDSA_INTER_CERT, "ecdsa", "inter.cert");
+ (ECDSA_INTER_KEY, "ecdsa", "inter.key");
+ (ECDSA_INTER_REQ, "ecdsa", "inter.req");
+ (ECDSA_NISTP256_PEM, "ecdsa", "nistp256.pem");
+ (ECDSA_NISTP384_PEM, "ecdsa", "nistp384.pem");
+
+ (EDDSA_CA_CERT, "eddsa", "ca.cert");
+ (EDDSA_CA_DER, "eddsa", "ca.der");
+ (EDDSA_CA_KEY, "eddsa", "ca.key");
+ (EDDSA_CLIENT_CERT, "eddsa", "client.cert");
+ (EDDSA_CLIENT_CHAIN, "eddsa", "client.chain");
+ (EDDSA_CLIENT_FULLCHAIN, "eddsa", "client.fullchain");
+ (EDDSA_CLIENT_KEY, "eddsa", "client.key");
+ (EDDSA_CLIENT_REQ, "eddsa", "client.req");
+ (EDDSA_END_CERT, "eddsa", "end.cert");
+ (EDDSA_END_CHAIN, "eddsa", "end.chain");
+ (EDDSA_END_FULLCHAIN, "eddsa", "end.fullchain");
+ (EDDSA_END_KEY, "eddsa", "end.key");
+ (EDDSA_END_REQ, "eddsa", "end.req");
+ (EDDSA_INTER_CERT, "eddsa", "inter.cert");
+ (EDDSA_INTER_KEY, "eddsa", "inter.key");
+ (EDDSA_INTER_REQ, "eddsa", "inter.req");
+
+ (RSA_CA_CERT, "rsa", "ca.cert");
+ (RSA_CA_DER, "rsa", "ca.der");
+ (RSA_CA_KEY, "rsa", "ca.key");
+ (RSA_CLIENT_CERT, "rsa", "client.cert");
+ (RSA_CLIENT_CHAIN, "rsa", "client.chain");
+ (RSA_CLIENT_FULLCHAIN, "rsa", "client.fullchain");
+ (RSA_CLIENT_KEY, "rsa", "client.key");
+ (RSA_CLIENT_REQ, "rsa", "client.req");
+ (RSA_CLIENT_RSA, "rsa", "client.rsa");
+ (RSA_END_CERT, "rsa", "end.cert");
+ (RSA_END_CHAIN, "rsa", "end.chain");
+ (RSA_END_FULLCHAIN, "rsa", "end.fullchain");
+ (RSA_END_KEY, "rsa", "end.key");
+ (RSA_END_REQ, "rsa", "end.req");
+ (RSA_END_RSA, "rsa", "end.rsa");
+ (RSA_INTER_CERT, "rsa", "inter.cert");
+ (RSA_INTER_KEY, "rsa", "inter.key");
+ (RSA_INTER_REQ, "rsa", "inter.req");
+}
+
+// Wait until we can connect to localhost:port.
+fn wait_for_port(port: u16) -> Option<()> {
+ let mut count = 0;
+ loop {
+ thread::sleep(time::Duration::from_millis(500));
+ if net::TcpStream::connect(("127.0.0.1", port)).is_ok() {
+ return Some(());
+ }
+ count += 1;
+ if count == 10 {
+ return None;
+ }
+ }
+}
+
+// Find an unused port
+fn unused_port(mut port: u16) -> u16 {
+ loop {
+ if net::TcpStream::connect(("127.0.0.1", port)).is_err() {
+ return port;
+ }
+
+ port += 1;
+ }
+}
+
+pub fn tlsserver_find() -> &'static str {
+ "../target/debug/tlsserver-mio"
+}
+
+pub fn tlsclient_find() -> &'static str {
+ "../target/debug/tlsclient-mio"
+}
+
+pub struct TlsClient {
+ pub hostname: String,
+ pub port: u16,
+ pub http: bool,
+ pub cafile: Option<PathBuf>,
+ pub cache: Option<String>,
+ pub suites: Vec<String>,
+ pub no_sni: bool,
+ pub insecure: bool,
+ pub verbose: bool,
+ pub max_fragment_size: Option<usize>,
+ pub expect_fails: bool,
+ pub expect_output: Vec<String>,
+ pub expect_log: Vec<String>,
+}
+
+impl TlsClient {
+ pub fn new(hostname: &str) -> Self {
+ Self {
+ hostname: hostname.to_string(),
+ port: 443,
+ http: true,
+ cafile: None,
+ cache: None,
+ no_sni: false,
+ insecure: false,
+ verbose: false,
+ max_fragment_size: None,
+ suites: Vec::new(),
+ expect_fails: false,
+ expect_output: Vec::new(),
+ expect_log: Vec::new(),
+ }
+ }
+
+ pub fn cafile(&mut self, cafile: &Path) -> &mut Self {
+ self.cafile = Some(cafile.to_path_buf());
+ self
+ }
+
+ pub fn cache(&mut self, cache: &str) -> &mut Self {
+ self.cache = Some(cache.to_string());
+ self
+ }
+
+ pub fn no_sni(&mut self) -> &mut Self {
+ self.no_sni = true;
+ self
+ }
+
+ pub fn insecure(&mut self) -> &mut Self {
+ self.insecure = true;
+ self
+ }
+
+ pub fn verbose(&mut self) -> &mut Self {
+ self.verbose = true;
+ self
+ }
+
+ pub fn max_fragment_size(&mut self, max_fragment_size: usize) -> &mut Self {
+ self.max_fragment_size = Some(max_fragment_size);
+ self
+ }
+
+ pub fn port(&mut self, port: u16) -> &mut Self {
+ self.port = port;
+ self
+ }
+
+ pub fn expect(&mut self, expect: &str) -> &mut Self {
+ self.expect_output
+ .push(expect.to_string());
+ self
+ }
+
+ pub fn expect_log(&mut self, expect: &str) -> &mut Self {
+ self.verbose = true;
+ self.expect_log.push(expect.to_string());
+ self
+ }
+
+ pub fn suite(&mut self, suite: &str) -> &mut Self {
+ self.suites.push(suite.to_string());
+ self
+ }
+
+ pub fn fails(&mut self) -> &mut Self {
+ self.expect_fails = true;
+ self
+ }
+
+ pub fn go(&mut self) -> Option<()> {
+ let fragstring;
+ let portstring = self.port.to_string();
+ let mut args = Vec::<&str>::new();
+ args.push(&self.hostname);
+
+ args.push("--port");
+ args.push(&portstring);
+
+ if self.http {
+ args.push("--http");
+ }
+
+ if self.cache.is_some() {
+ args.push("--cache");
+ args.push(self.cache.as_ref().unwrap());
+ }
+
+ if self.no_sni {
+ args.push("--no-sni");
+ }
+
+ if self.insecure {
+ args.push("--insecure");
+ }
+
+ if self.cafile.is_some() {
+ args.push("--cafile");
+ args.push(
+ self.cafile
+ .as_ref()
+ .unwrap()
+ .to_str()
+ .unwrap(),
+ );
+ }
+
+ for suite in &self.suites {
+ args.push("--suite");
+ args.push(suite.as_ref());
+ }
+
+ if self.verbose {
+ args.push("--verbose");
+ }
+
+ if self.max_fragment_size.is_some() {
+ args.push("--max-frag-size");
+ fragstring = self
+ .max_fragment_size
+ .unwrap()
+ .to_string();
+ args.push(&fragstring);
+ }
+
+ let output = process::Command::new(tlsclient_find())
+ .args(&args)
+ .env("SSLKEYLOGFILE", "./sslkeylogfile.txt")
+ .output()
+ .unwrap_or_else(|e| panic!("failed to execute: {}", e));
+
+ let stdout_str = String::from_utf8_lossy(&output.stdout);
+ let stderr_str = String::from_utf8_lossy(&output.stderr);
+
+ for expect in &self.expect_output {
+ let re = Regex::new(expect).unwrap();
+ if re.find(&stdout_str).is_none() {
+ println!("We expected to find '{}' in the following output:", expect);
+ println!("{:?}", output);
+ panic!("Test failed");
+ }
+ }
+
+ for expect in &self.expect_log {
+ let re = Regex::new(expect).unwrap();
+ if re.find(&stderr_str).is_none() {
+ println!("We expected to find '{}' in the following output:", expect);
+ println!("{:?}", output);
+ panic!("Test failed");
+ }
+ }
+
+ if self.expect_fails {
+ assert!(output.status.code().unwrap() != 0);
+ } else {
+ assert!(output.status.success());
+ }
+
+ Some(())
+ }
+}
diff --git a/rustls-0.21.2/connect-tests/tests/topsites.rs b/rustls-0.21.2/connect-tests/tests/topsites.rs
new file mode 100644
index 0000000..fb7b86a
--- /dev/null
+++ b/rustls-0.21.2/connect-tests/tests/topsites.rs
@@ -0,0 +1,83 @@
+// These tests check we can handshake with a selection of
+// common hosts.
+//
+// Rules: only hosts that can really handle the traffic.
+
+#[allow(dead_code)]
+mod common;
+
+mod online {
+ use super::common::TlsClient;
+
+ fn check(hostname: &str) {
+ TlsClient::new(hostname)
+ .expect("HTTP/1.[01] ")
+ .go()
+ .unwrap()
+ }
+
+ #[test]
+ fn joe() {
+ check("jbp.io")
+ }
+
+ #[test]
+ fn google() {
+ check("google.com")
+ }
+
+ #[test]
+ fn github() {
+ check("github.com")
+ }
+
+ #[test]
+ fn aws() {
+ check("aws.amazon.com")
+ }
+
+ #[test]
+ fn microsoft() {
+ check("www.microsoft.com")
+ }
+
+ #[test]
+ fn wikipedia() {
+ check("www.wikipedia.org")
+ }
+
+ #[test]
+ fn twitter() {
+ check("twitter.com")
+ }
+
+ #[test]
+ fn facebook() {
+ check("www.facebook.com")
+ }
+
+ #[test]
+ fn baidu() {
+ check("www.baidu.com")
+ }
+
+ #[test]
+ fn netflix() {
+ check("www.netflix.com")
+ }
+
+ #[test]
+ fn stackoverflow() {
+ check("stackoverflow.com")
+ }
+
+ #[test]
+ fn apple() {
+ check("www.apple.com")
+ }
+
+ #[test]
+ fn cloudflare_1_1_1_1_dns() {
+ check("1.1.1.1")
+ }
+}
diff --git a/rustls-0.21.2/examples/Cargo.toml b/rustls-0.21.2/examples/Cargo.toml
new file mode 100644
index 0000000..4ad4e75
--- /dev/null
+++ b/rustls-0.21.2/examples/Cargo.toml
@@ -0,0 +1,28 @@
+[package]
+name = "rustls-examples"
+version = "0.0.1"
+edition = "2021"
+rust-version = "1.60"
+license = "Apache-2.0 OR ISC OR MIT"
+description = "Rustls example code and tests."
+publish = false
+
+[features]
+dangerous_configuration = ["rustls/dangerous_configuration"]
+quic = ["rustls/quic"]
+
+[dependencies]
+docopt = "~1.1"
+env_logger = "0.10"
+log = { version = "0.4.4" }
+mio = { version = "0.8", features = ["net", "os-poll"] }
+rustls = { path = "../rustls", features = [ "logging" ]}
+rustls-pemfile = "1.0.0"
+sct = "0.7"
+serde = "1.0"
+serde_derive = "1.0"
+webpki-roots = "0.23"
+
+[dev-dependencies]
+regex = "1.0"
+ring = "0.16.20"
diff --git a/rustls-0.21.2/examples/src/bin/limitedclient.rs b/rustls-0.21.2/examples/src/bin/limitedclient.rs
new file mode 100644
index 0000000..735026e
--- /dev/null
+++ b/rustls-0.21.2/examples/src/bin/limitedclient.rs
@@ -0,0 +1,62 @@
+/// limitedclient: This example demonstrates usage of ClientConfig building
+/// so that unused cryptography in rustls can be discarded by the linker. You can
+/// observe using `nm` that the binary of this program does not contain any AES code.
+use std::sync::Arc;
+
+use std::io::{stdout, Read, Write};
+use std::net::TcpStream;
+
+use rustls::OwnedTrustAnchor;
+
+fn main() {
+ let mut root_store = rustls::RootCertStore::empty();
+ root_store.add_server_trust_anchors(
+ webpki_roots::TLS_SERVER_ROOTS
+ .0
+ .iter()
+ .map(|ta| {
+ OwnedTrustAnchor::from_subject_spki_name_constraints(
+ ta.subject,
+ ta.spki,
+ ta.name_constraints,
+ )
+ }),
+ );
+
+ let config = rustls::ClientConfig::builder()
+ .with_cipher_suites(&[rustls::cipher_suite::TLS13_CHACHA20_POLY1305_SHA256])
+ .with_kx_groups(&[&rustls::kx_group::X25519])
+ .with_protocol_versions(&[&rustls::version::TLS13])
+ .unwrap()
+ .with_root_certificates(root_store)
+ .with_no_client_auth();
+
+ let server_name = "google.com".try_into().unwrap();
+ let mut conn = rustls::ClientConnection::new(Arc::new(config), server_name).unwrap();
+ let mut sock = TcpStream::connect("google.com:443").unwrap();
+ let mut tls = rustls::Stream::new(&mut conn, &mut sock);
+ tls.write_all(
+ concat!(
+ "GET / HTTP/1.1\r\n",
+ "Host: google.com\r\n",
+ "Connection: close\r\n",
+ "Accept-Encoding: identity\r\n",
+ "\r\n"
+ )
+ .as_bytes(),
+ )
+ .unwrap();
+ let ciphersuite = tls
+ .conn
+ .negotiated_cipher_suite()
+ .unwrap();
+ writeln!(
+ &mut std::io::stderr(),
+ "Current ciphersuite: {:?}",
+ ciphersuite.suite()
+ )
+ .unwrap();
+ let mut plaintext = Vec::new();
+ tls.read_to_end(&mut plaintext).unwrap();
+ stdout().write_all(&plaintext).unwrap();
+}
diff --git a/rustls-0.21.2/examples/src/bin/simple_0rtt_client.rs b/rustls-0.21.2/examples/src/bin/simple_0rtt_client.rs
new file mode 100644
index 0000000..0480f90
--- /dev/null
+++ b/rustls-0.21.2/examples/src/bin/simple_0rtt_client.rs
@@ -0,0 +1,83 @@
+use std::sync::Arc;
+
+use std::io::{stdout, Read, Write};
+use std::net::TcpStream;
+
+use rustls::{OwnedTrustAnchor, RootCertStore};
+
+fn start_connection(config: &Arc<rustls::ClientConfig>, domain_name: &str) {
+ let server_name = domain_name
+ .try_into()
+ .expect("invalid DNS name");
+ let mut conn = rustls::ClientConnection::new(Arc::clone(config), server_name).unwrap();
+ let mut sock = TcpStream::connect(format!("{}:443", domain_name)).unwrap();
+ sock.set_nodelay(true).unwrap();
+ let request = format!(
+ "GET / HTTP/1.1\r\n\
+ Host: {}\r\n\
+ Connection: close\r\n\
+ Accept-Encoding: identity\r\n\
+ \r\n",
+ domain_name
+ );
+
+ // If early data is available with this server, then early_data()
+ // will yield Some(WriteEarlyData) and WriteEarlyData implements
+ // io::Write. Use this to send the request.
+ if let Some(mut early_data) = conn.early_data() {
+ early_data
+ .write_all(request.as_bytes())
+ .unwrap();
+ }
+
+ let mut stream = rustls::Stream::new(&mut conn, &mut sock);
+
+ // Complete handshake.
+ stream.flush().unwrap();
+
+ // If we didn't send early data, or the server didn't accept it,
+ // then send the request as normal.
+ if !stream.conn.is_early_data_accepted() {
+ stream
+ .write_all(request.as_bytes())
+ .unwrap();
+ }
+
+ let mut plaintext = Vec::new();
+ stream
+ .read_to_end(&mut plaintext)
+ .unwrap();
+ stdout().write_all(&plaintext).unwrap();
+}
+
+fn main() {
+ env_logger::init();
+
+ let mut root_store = RootCertStore::empty();
+ root_store.add_server_trust_anchors(
+ webpki_roots::TLS_SERVER_ROOTS
+ .0
+ .iter()
+ .map(|ta| {
+ OwnedTrustAnchor::from_subject_spki_name_constraints(
+ ta.subject,
+ ta.spki,
+ ta.name_constraints,
+ )
+ }),
+ );
+
+ let mut config = rustls::ClientConfig::builder()
+ .with_safe_defaults()
+ .with_root_certificates(root_store)
+ .with_no_client_auth();
+
+ // Enable early data.
+ config.enable_early_data = true;
+ let config = Arc::new(config);
+
+ // Do two connections. The first will be a normal request, the
+ // second will use early data if the server supports it.
+ start_connection(&config, "mesalink.io");
+ start_connection(&config, "mesalink.io");
+}
diff --git a/rustls-0.21.2/examples/src/bin/simpleclient.rs b/rustls-0.21.2/examples/src/bin/simpleclient.rs
new file mode 100644
index 0000000..a16eaa3
--- /dev/null
+++ b/rustls-0.21.2/examples/src/bin/simpleclient.rs
@@ -0,0 +1,64 @@
+/// This is the simplest possible client using rustls that does something useful:
+/// it accepts the default configuration, loads some root certs, and then connects
+/// to google.com and issues a basic HTTP request. The response is printed to stdout.
+///
+/// It makes use of rustls::Stream to treat the underlying TLS connection as a basic
+/// bi-directional stream -- the underlying IO is performed transparently.
+///
+/// Note that `unwrap()` is used to deal with networking errors; this is not something
+/// that is sensible outside of example code.
+use std::sync::Arc;
+
+use std::io::{stdout, Read, Write};
+use std::net::TcpStream;
+
+use rustls::{OwnedTrustAnchor, RootCertStore};
+
+fn main() {
+ let mut root_store = RootCertStore::empty();
+ root_store.add_server_trust_anchors(
+ webpki_roots::TLS_SERVER_ROOTS
+ .0
+ .iter()
+ .map(|ta| {
+ OwnedTrustAnchor::from_subject_spki_name_constraints(
+ ta.subject,
+ ta.spki,
+ ta.name_constraints,
+ )
+ }),
+ );
+ let config = rustls::ClientConfig::builder()
+ .with_safe_defaults()
+ .with_root_certificates(root_store)
+ .with_no_client_auth();
+
+ let server_name = "google.com".try_into().unwrap();
+ let mut conn = rustls::ClientConnection::new(Arc::new(config), server_name).unwrap();
+ let mut sock = TcpStream::connect("google.com:443").unwrap();
+ let mut tls = rustls::Stream::new(&mut conn, &mut sock);
+ tls.write_all(
+ concat!(
+ "GET / HTTP/1.1\r\n",
+ "Host: google.com\r\n",
+ "Connection: close\r\n",
+ "Accept-Encoding: identity\r\n",
+ "\r\n"
+ )
+ .as_bytes(),
+ )
+ .unwrap();
+ let ciphersuite = tls
+ .conn
+ .negotiated_cipher_suite()
+ .unwrap();
+ writeln!(
+ &mut std::io::stderr(),
+ "Current ciphersuite: {:?}",
+ ciphersuite.suite()
+ )
+ .unwrap();
+ let mut plaintext = Vec::new();
+ tls.read_to_end(&mut plaintext).unwrap();
+ stdout().write_all(&plaintext).unwrap();
+}
diff --git a/rustls-0.21.2/examples/src/bin/tlsclient-mio.rs b/rustls-0.21.2/examples/src/bin/tlsclient-mio.rs
new file mode 100644
index 0000000..0e4bc68
--- /dev/null
+++ b/rustls-0.21.2/examples/src/bin/tlsclient-mio.rs
@@ -0,0 +1,511 @@
+use std::process;
+use std::sync::Arc;
+
+use mio::net::TcpStream;
+
+use std::fs;
+use std::io;
+use std::io::{BufReader, Read, Write};
+use std::net::SocketAddr;
+use std::str;
+
+#[macro_use]
+extern crate serde_derive;
+
+use docopt::Docopt;
+
+use rustls::{OwnedTrustAnchor, RootCertStore};
+
+const CLIENT: mio::Token = mio::Token(0);
+
+/// This encapsulates the TCP-level connection, some connection
+/// state, and the underlying TLS-level session.
+struct TlsClient {
+ socket: TcpStream,
+ closing: bool,
+ clean_closure: bool,
+ tls_conn: rustls::ClientConnection,
+}
+
+impl TlsClient {
+ fn new(
+ sock: TcpStream,
+ server_name: rustls::ServerName,
+ cfg: Arc<rustls::ClientConfig>,
+ ) -> Self {
+ Self {
+ socket: sock,
+ closing: false,
+ clean_closure: false,
+ tls_conn: rustls::ClientConnection::new(cfg, server_name).unwrap(),
+ }
+ }
+
+ /// Handles events sent to the TlsClient by mio::Poll
+ fn ready(&mut self, ev: &mio::event::Event) {
+ assert_eq!(ev.token(), CLIENT);
+
+ if ev.is_readable() {
+ self.do_read();
+ }
+
+ if ev.is_writable() {
+ self.do_write();
+ }
+
+ if self.is_closed() {
+ println!("Connection closed");
+ process::exit(if self.clean_closure { 0 } else { 1 });
+ }
+ }
+
+ fn read_source_to_end(&mut self, rd: &mut dyn io::Read) -> io::Result<usize> {
+ let mut buf = Vec::new();
+ let len = rd.read_to_end(&mut buf)?;
+ self.tls_conn
+ .writer()
+ .write_all(&buf)
+ .unwrap();
+ Ok(len)
+ }
+
+ /// We're ready to do a read.
+ fn do_read(&mut self) {
+ // Read TLS data. This fails if the underlying TCP connection
+ // is broken.
+ match self.tls_conn.read_tls(&mut self.socket) {
+ Err(error) => {
+ if error.kind() == io::ErrorKind::WouldBlock {
+ return;
+ }
+ println!("TLS read error: {:?}", error);
+ self.closing = true;
+ return;
+ }
+
+ // If we're ready but there's no data: EOF.
+ Ok(0) => {
+ println!("EOF");
+ self.closing = true;
+ self.clean_closure = true;
+ return;
+ }
+
+ Ok(_) => {}
+ };
+
+ // Reading some TLS data might have yielded new TLS
+ // messages to process. Errors from this indicate
+ // TLS protocol problems and are fatal.
+ let io_state = match self.tls_conn.process_new_packets() {
+ Ok(io_state) => io_state,
+ Err(err) => {
+ println!("TLS error: {:?}", err);
+ self.closing = true;
+ return;
+ }
+ };
+
+ // Having read some TLS data, and processed any new messages,
+ // we might have new plaintext as a result.
+ //
+ // Read it and then write it to stdout.
+ if io_state.plaintext_bytes_to_read() > 0 {
+ let mut plaintext = Vec::new();
+ plaintext.resize(io_state.plaintext_bytes_to_read(), 0u8);
+ self.tls_conn
+ .reader()
+ .read_exact(&mut plaintext)
+ .unwrap();
+ io::stdout()
+ .write_all(&plaintext)
+ .unwrap();
+ }
+
+ // If wethat fails, the peer might have started a clean TLS-level
+ // session closure.
+ if io_state.peer_has_closed() {
+ self.clean_closure = true;
+ self.closing = true;
+ }
+ }
+
+ fn do_write(&mut self) {
+ self.tls_conn
+ .write_tls(&mut self.socket)
+ .unwrap();
+ }
+
+ /// Registers self as a 'listener' in mio::Registry
+ fn register(&mut self, registry: &mio::Registry) {
+ let interest = self.event_set();
+ registry
+ .register(&mut self.socket, CLIENT, interest)
+ .unwrap();
+ }
+
+ /// Reregisters self as a 'listener' in mio::Registry.
+ fn reregister(&mut self, registry: &mio::Registry) {
+ let interest = self.event_set();
+ registry
+ .reregister(&mut self.socket, CLIENT, interest)
+ .unwrap();
+ }
+
+ /// Use wants_read/wants_write to register for different mio-level
+ /// IO readiness events.
+ fn event_set(&self) -> mio::Interest {
+ let rd = self.tls_conn.wants_read();
+ let wr = self.tls_conn.wants_write();
+
+ if rd && wr {
+ mio::Interest::READABLE | mio::Interest::WRITABLE
+ } else if wr {
+ mio::Interest::WRITABLE
+ } else {
+ mio::Interest::READABLE
+ }
+ }
+
+ fn is_closed(&self) -> bool {
+ self.closing
+ }
+}
+impl io::Write for TlsClient {
+ fn write(&mut self, bytes: &[u8]) -> io::Result<usize> {
+ self.tls_conn.writer().write(bytes)
+ }
+
+ fn flush(&mut self) -> io::Result<()> {
+ self.tls_conn.writer().flush()
+ }
+}
+
+impl io::Read for TlsClient {
+ fn read(&mut self, bytes: &mut [u8]) -> io::Result<usize> {
+ self.tls_conn.reader().read(bytes)
+ }
+}
+
+const USAGE: &str = "
+Connects to the TLS server at hostname:PORT. The default PORT
+is 443. By default, this reads a request from stdin (to EOF)
+before making the connection. --http replaces this with a
+basic HTTP GET request for /.
+
+If --cafile is not supplied, a built-in set of CA certificates
+are used from the webpki-roots crate.
+
+Usage:
+ tlsclient-mio [options] [--suite SUITE ...] [--proto PROTO ...] [--protover PROTOVER ...] <hostname>
+ tlsclient-mio (--version | -v)
+ tlsclient-mio (--help | -h)
+
+Options:
+ -p, --port PORT Connect to PORT [default: 443].
+ --http Send a basic HTTP GET request for /.
+ --cafile CAFILE Read root certificates from CAFILE.
+ --auth-key KEY Read client authentication key from KEY.
+ --auth-certs CERTS Read client authentication certificates from CERTS.
+ CERTS must match up with KEY.
+ --protover VERSION Disable default TLS version list, and use
+ VERSION instead. May be used multiple times.
+ --suite SUITE Disable default cipher suite list, and use
+ SUITE instead. May be used multiple times.
+ --proto PROTOCOL Send ALPN extension containing PROTOCOL.
+ May be used multiple times to offer several protocols.
+ --no-tickets Disable session ticket support.
+ --no-sni Disable server name indication support.
+ --insecure Disable certificate verification.
+ --verbose Emit log output.
+ --max-frag-size M Limit outgoing messages to M bytes.
+ --version, -v Show tool version.
+ --help, -h Show this screen.
+";
+
+#[derive(Debug, Deserialize)]
+struct Args {
+ flag_port: Option<u16>,
+ flag_http: bool,
+ flag_verbose: bool,
+ flag_protover: Vec<String>,
+ flag_suite: Vec<String>,
+ flag_proto: Vec<String>,
+ flag_max_frag_size: Option<usize>,
+ flag_cafile: Option<String>,
+ flag_no_tickets: bool,
+ flag_no_sni: bool,
+ flag_insecure: bool,
+ flag_auth_key: Option<String>,
+ flag_auth_certs: Option<String>,
+ arg_hostname: String,
+}
+
+// TODO: um, well, it turns out that openssl s_client/s_server
+// that we use for testing doesn't do ipv6. So we can't actually
+// test ipv6 and hence kill this.
+fn lookup_ipv4(host: &str, port: u16) -> SocketAddr {
+ use std::net::ToSocketAddrs;
+
+ let addrs = (host, port).to_socket_addrs().unwrap();
+ for addr in addrs {
+ if let SocketAddr::V4(_) = addr {
+ return addr;
+ }
+ }
+
+ unreachable!("Cannot lookup address");
+}
+
+/// Find a ciphersuite with the given name
+fn find_suite(name: &str) -> Option<rustls::SupportedCipherSuite> {
+ for suite in rustls::ALL_CIPHER_SUITES {
+ let sname = format!("{:?}", suite.suite()).to_lowercase();
+
+ if sname == name.to_string().to_lowercase() {
+ return Some(*suite);
+ }
+ }
+
+ None
+}
+
+/// Make a vector of ciphersuites named in `suites`
+fn lookup_suites(suites: &[String]) -> Vec<rustls::SupportedCipherSuite> {
+ let mut out = Vec::new();
+
+ for csname in suites {
+ let scs = find_suite(csname);
+ match scs {
+ Some(s) => out.push(s),
+ None => panic!("cannot look up ciphersuite '{}'", csname),
+ }
+ }
+
+ out
+}
+
+/// Make a vector of protocol versions named in `versions`
+fn lookup_versions(versions: &[String]) -> Vec<&'static rustls::SupportedProtocolVersion> {
+ let mut out = Vec::new();
+
+ for vname in versions {
+ let version = match vname.as_ref() {
+ "1.2" => &rustls::version::TLS12,
+ "1.3" => &rustls::version::TLS13,
+ _ => panic!(
+ "cannot look up version '{}', valid are '1.2' and '1.3'",
+ vname
+ ),
+ };
+ out.push(version);
+ }
+
+ out
+}
+
+fn load_certs(filename: &str) -> Vec<rustls::Certificate> {
+ let certfile = fs::File::open(filename).expect("cannot open certificate file");
+ let mut reader = BufReader::new(certfile);
+ rustls_pemfile::certs(&mut reader)
+ .unwrap()
+ .iter()
+ .map(|v| rustls::Certificate(v.clone()))
+ .collect()
+}
+
+fn load_private_key(filename: &str) -> rustls::PrivateKey {
+ let keyfile = fs::File::open(filename).expect("cannot open private key file");
+ let mut reader = BufReader::new(keyfile);
+
+ loop {
+ match rustls_pemfile::read_one(&mut reader).expect("cannot parse private key .pem file") {
+ Some(rustls_pemfile::Item::RSAKey(key)) => return rustls::PrivateKey(key),
+ Some(rustls_pemfile::Item::PKCS8Key(key)) => return rustls::PrivateKey(key),
+ Some(rustls_pemfile::Item::ECKey(key)) => return rustls::PrivateKey(key),
+ None => break,
+ _ => {}
+ }
+ }
+
+ panic!(
+ "no keys found in {:?} (encrypted keys not supported)",
+ filename
+ );
+}
+
+#[cfg(feature = "dangerous_configuration")]
+mod danger {
+ pub struct NoCertificateVerification {}
+
+ impl rustls::client::ServerCertVerifier for NoCertificateVerification {
+ fn verify_server_cert(
+ &self,
+ _end_entity: &rustls::Certificate,
+ _intermediates: &[rustls::Certificate],
+ _server_name: &rustls::ServerName,
+ _scts: &mut dyn Iterator<Item = &[u8]>,
+ _ocsp: &[u8],
+ _now: std::time::SystemTime,
+ ) -> Result<rustls::client::ServerCertVerified, rustls::Error> {
+ Ok(rustls::client::ServerCertVerified::assertion())
+ }
+ }
+}
+
+#[cfg(feature = "dangerous_configuration")]
+fn apply_dangerous_options(args: &Args, cfg: &mut rustls::ClientConfig) {
+ if args.flag_insecure {
+ cfg.dangerous()
+ .set_certificate_verifier(Arc::new(danger::NoCertificateVerification {}));
+ }
+}
+
+#[cfg(not(feature = "dangerous_configuration"))]
+fn apply_dangerous_options(args: &Args, _: &mut rustls::ClientConfig) {
+ if args.flag_insecure {
+ panic!("This build does not support --insecure.");
+ }
+}
+
+/// Build a `ClientConfig` from our arguments
+fn make_config(args: &Args) -> Arc<rustls::ClientConfig> {
+ let mut root_store = RootCertStore::empty();
+
+ if args.flag_cafile.is_some() {
+ let cafile = args.flag_cafile.as_ref().unwrap();
+
+ let certfile = fs::File::open(cafile).expect("Cannot open CA file");
+ let mut reader = BufReader::new(certfile);
+ root_store.add_parsable_certificates(&rustls_pemfile::certs(&mut reader).unwrap());
+ } else {
+ root_store.add_server_trust_anchors(
+ webpki_roots::TLS_SERVER_ROOTS
+ .0
+ .iter()
+ .map(|ta| {
+ OwnedTrustAnchor::from_subject_spki_name_constraints(
+ ta.subject,
+ ta.spki,
+ ta.name_constraints,
+ )
+ }),
+ );
+ }
+
+ let suites = if !args.flag_suite.is_empty() {
+ lookup_suites(&args.flag_suite)
+ } else {
+ rustls::DEFAULT_CIPHER_SUITES.to_vec()
+ };
+
+ let versions = if !args.flag_protover.is_empty() {
+ lookup_versions(&args.flag_protover)
+ } else {
+ rustls::DEFAULT_VERSIONS.to_vec()
+ };
+
+ let config = rustls::ClientConfig::builder()
+ .with_cipher_suites(&suites)
+ .with_safe_default_kx_groups()
+ .with_protocol_versions(&versions)
+ .expect("inconsistent cipher-suite/versions selected")
+ .with_root_certificates(root_store);
+
+ let mut config = match (&args.flag_auth_key, &args.flag_auth_certs) {
+ (Some(key_file), Some(certs_file)) => {
+ let certs = load_certs(certs_file);
+ let key = load_private_key(key_file);
+ config
+ .with_single_cert(certs, key)
+ .expect("invalid client auth certs/key")
+ }
+ (None, None) => config.with_no_client_auth(),
+ (_, _) => {
+ panic!("must provide --auth-certs and --auth-key together");
+ }
+ };
+
+ config.key_log = Arc::new(rustls::KeyLogFile::new());
+
+ if args.flag_no_tickets {
+ config.resumption = config
+ .resumption
+ .tls12_resumption(rustls::client::Tls12Resumption::SessionIdOnly);
+ }
+
+ if args.flag_no_sni {
+ config.enable_sni = false;
+ }
+
+ config.alpn_protocols = args
+ .flag_proto
+ .iter()
+ .map(|proto| proto.as_bytes().to_vec())
+ .collect();
+ config.max_fragment_size = args.flag_max_frag_size;
+
+ apply_dangerous_options(args, &mut config);
+
+ Arc::new(config)
+}
+
+/// Parse some arguments, then make a TLS client connection
+/// somewhere.
+fn main() {
+ let version = env!("CARGO_PKG_NAME").to_string() + ", version: " + env!("CARGO_PKG_VERSION");
+
+ let args: Args = Docopt::new(USAGE)
+ .map(|d| d.help(true))
+ .map(|d| d.version(Some(version)))
+ .and_then(|d| d.deserialize())
+ .unwrap_or_else(|e| e.exit());
+
+ if args.flag_verbose {
+ env_logger::Builder::new()
+ .parse_filters("trace")
+ .init();
+ }
+
+ let port = args.flag_port.unwrap_or(443);
+ let addr = lookup_ipv4(args.arg_hostname.as_str(), port);
+
+ let config = make_config(&args);
+
+ let sock = TcpStream::connect(addr).unwrap();
+ let server_name = args
+ .arg_hostname
+ .as_str()
+ .try_into()
+ .expect("invalid DNS name");
+ let mut tlsclient = TlsClient::new(sock, server_name, config);
+
+ if args.flag_http {
+ let httpreq = format!(
+ "GET / HTTP/1.0\r\nHost: {}\r\nConnection: \
+ close\r\nAccept-Encoding: identity\r\n\r\n",
+ args.arg_hostname
+ );
+ tlsclient
+ .write_all(httpreq.as_bytes())
+ .unwrap();
+ } else {
+ let mut stdin = io::stdin();
+ tlsclient
+ .read_source_to_end(&mut stdin)
+ .unwrap();
+ }
+
+ let mut poll = mio::Poll::new().unwrap();
+ let mut events = mio::Events::with_capacity(32);
+ tlsclient.register(poll.registry());
+
+ loop {
+ poll.poll(&mut events, None).unwrap();
+
+ for ev in events.iter() {
+ tlsclient.ready(ev);
+ tlsclient.reregister(poll.registry());
+ }
+ }
+}
diff --git a/rustls-0.21.2/examples/src/bin/tlsserver-mio.rs b/rustls-0.21.2/examples/src/bin/tlsserver-mio.rs
new file mode 100644
index 0000000..edcae1e
--- /dev/null
+++ b/rustls-0.21.2/examples/src/bin/tlsserver-mio.rs
@@ -0,0 +1,673 @@
+use std::sync::Arc;
+
+use mio::net::{TcpListener, TcpStream};
+
+#[macro_use]
+extern crate log;
+
+use std::collections::HashMap;
+use std::fs;
+use std::io;
+use std::io::{BufReader, Read, Write};
+use std::net;
+
+#[macro_use]
+extern crate serde_derive;
+
+use docopt::Docopt;
+
+use rustls::server::{
+ AllowAnyAnonymousOrAuthenticatedClient, AllowAnyAuthenticatedClient, NoClientAuth,
+};
+use rustls::{self, RootCertStore};
+
+// Token for our listening socket.
+const LISTENER: mio::Token = mio::Token(0);
+
+// Which mode the server operates in.
+#[derive(Clone)]
+enum ServerMode {
+ /// Write back received bytes
+ Echo,
+
+ /// Do one read, then write a bodged HTTP response and
+ /// cleanly close the connection.
+ Http,
+
+ /// Forward traffic to/from given port on localhost.
+ Forward(u16),
+}
+
+/// This binds together a TCP listening socket, some outstanding
+/// connections, and a TLS server configuration.
+struct TlsServer {
+ server: TcpListener,
+ connections: HashMap<mio::Token, OpenConnection>,
+ next_id: usize,
+ tls_config: Arc<rustls::ServerConfig>,
+ mode: ServerMode,
+}
+
+impl TlsServer {
+ fn new(server: TcpListener, mode: ServerMode, cfg: Arc<rustls::ServerConfig>) -> Self {
+ Self {
+ server,
+ connections: HashMap::new(),
+ next_id: 2,
+ tls_config: cfg,
+ mode,
+ }
+ }
+
+ fn accept(&mut self, registry: &mio::Registry) -> Result<(), io::Error> {
+ loop {
+ match self.server.accept() {
+ Ok((socket, addr)) => {
+ debug!("Accepting new connection from {:?}", addr);
+
+ let tls_conn =
+ rustls::ServerConnection::new(Arc::clone(&self.tls_config)).unwrap();
+ let mode = self.mode.clone();
+
+ let token = mio::Token(self.next_id);
+ self.next_id += 1;
+
+ let mut connection = OpenConnection::new(socket, token, mode, tls_conn);
+ connection.register(registry);
+ self.connections
+ .insert(token, connection);
+ }
+ Err(ref err) if err.kind() == io::ErrorKind::WouldBlock => return Ok(()),
+ Err(err) => {
+ println!(
+ "encountered error while accepting connection; err={:?}",
+ err
+ );
+ return Err(err);
+ }
+ }
+ }
+ }
+
+ fn conn_event(&mut self, registry: &mio::Registry, event: &mio::event::Event) {
+ let token = event.token();
+
+ if self.connections.contains_key(&token) {
+ self.connections
+ .get_mut(&token)
+ .unwrap()
+ .ready(registry, event);
+
+ if self.connections[&token].is_closed() {
+ self.connections.remove(&token);
+ }
+ }
+ }
+}
+
+/// This is a connection which has been accepted by the server,
+/// and is currently being served.
+///
+/// It has a TCP-level stream, a TLS-level connection state, and some
+/// other state/metadata.
+struct OpenConnection {
+ socket: TcpStream,
+ token: mio::Token,
+ closing: bool,
+ closed: bool,
+ mode: ServerMode,
+ tls_conn: rustls::ServerConnection,
+ back: Option<TcpStream>,
+ sent_http_response: bool,
+}
+
+/// Open a plaintext TCP-level connection for forwarded connections.
+fn open_back(mode: &ServerMode) -> Option<TcpStream> {
+ match *mode {
+ ServerMode::Forward(ref port) => {
+ let addr = net::SocketAddrV4::new(net::Ipv4Addr::new(127, 0, 0, 1), *port);
+ let conn = TcpStream::connect(net::SocketAddr::V4(addr)).unwrap();
+ Some(conn)
+ }
+ _ => None,
+ }
+}
+
+/// This used to be conveniently exposed by mio: map EWOULDBLOCK
+/// errors to something less-errory.
+fn try_read(r: io::Result<usize>) -> io::Result<Option<usize>> {
+ match r {
+ Ok(len) => Ok(Some(len)),
+ Err(e) => {
+ if e.kind() == io::ErrorKind::WouldBlock {
+ Ok(None)
+ } else {
+ Err(e)
+ }
+ }
+ }
+}
+
+impl OpenConnection {
+ fn new(
+ socket: TcpStream,
+ token: mio::Token,
+ mode: ServerMode,
+ tls_conn: rustls::ServerConnection,
+ ) -> Self {
+ let back = open_back(&mode);
+ Self {
+ socket,
+ token,
+ closing: false,
+ closed: false,
+ mode,
+ tls_conn,
+ back,
+ sent_http_response: false,
+ }
+ }
+
+ /// We're a connection, and we have something to do.
+ fn ready(&mut self, registry: &mio::Registry, ev: &mio::event::Event) {
+ // If we're readable: read some TLS. Then
+ // see if that yielded new plaintext. Then
+ // see if the backend is readable too.
+ if ev.is_readable() {
+ self.do_tls_read();
+ self.try_plain_read();
+ self.try_back_read();
+ }
+
+ if ev.is_writable() {
+ self.do_tls_write_and_handle_error();
+ }
+
+ if self.closing {
+ let _ = self
+ .socket
+ .shutdown(net::Shutdown::Both);
+ self.close_back();
+ self.closed = true;
+ self.deregister(registry);
+ } else {
+ self.reregister(registry);
+ }
+ }
+
+ /// Close the backend connection for forwarded sessions.
+ fn close_back(&mut self) {
+ if self.back.is_some() {
+ let back = self.back.as_mut().unwrap();
+ back.shutdown(net::Shutdown::Both)
+ .unwrap();
+ }
+ self.back = None;
+ }
+
+ fn do_tls_read(&mut self) {
+ // Read some TLS data.
+ match self.tls_conn.read_tls(&mut self.socket) {
+ Err(err) => {
+ if let io::ErrorKind::WouldBlock = err.kind() {
+ return;
+ }
+
+ error!("read error {:?}", err);
+ self.closing = true;
+ return;
+ }
+ Ok(0) => {
+ debug!("eof");
+ self.closing = true;
+ return;
+ }
+ Ok(_) => {}
+ };
+
+ // Process newly-received TLS messages.
+ if let Err(err) = self.tls_conn.process_new_packets() {
+ error!("cannot process packet: {:?}", err);
+
+ // last gasp write to send any alerts
+ self.do_tls_write_and_handle_error();
+
+ self.closing = true;
+ }
+ }
+
+ fn try_plain_read(&mut self) {
+ // Read and process all available plaintext.
+ if let Ok(io_state) = self.tls_conn.process_new_packets() {
+ if io_state.plaintext_bytes_to_read() > 0 {
+ let mut buf = Vec::new();
+ buf.resize(io_state.plaintext_bytes_to_read(), 0u8);
+
+ self.tls_conn
+ .reader()
+ .read_exact(&mut buf)
+ .unwrap();
+
+ debug!("plaintext read {:?}", buf.len());
+ self.incoming_plaintext(&buf);
+ }
+ }
+ }
+
+ fn try_back_read(&mut self) {
+ if self.back.is_none() {
+ return;
+ }
+
+ // Try a non-blocking read.
+ let mut buf = [0u8; 1024];
+ let back = self.back.as_mut().unwrap();
+ let rc = try_read(back.read(&mut buf));
+
+ if rc.is_err() {
+ error!("backend read failed: {:?}", rc);
+ self.closing = true;
+ return;
+ }
+
+ let maybe_len = rc.unwrap();
+
+ // If we have a successful but empty read, that's an EOF.
+ // Otherwise, we shove the data into the TLS session.
+ match maybe_len {
+ Some(len) if len == 0 => {
+ debug!("back eof");
+ self.closing = true;
+ }
+ Some(len) => {
+ self.tls_conn
+ .writer()
+ .write_all(&buf[..len])
+ .unwrap();
+ }
+ None => {}
+ };
+ }
+
+ /// Process some amount of received plaintext.
+ fn incoming_plaintext(&mut self, buf: &[u8]) {
+ match self.mode {
+ ServerMode::Echo => {
+ self.tls_conn
+ .writer()
+ .write_all(buf)
+ .unwrap();
+ }
+ ServerMode::Http => {
+ self.send_http_response_once();
+ }
+ ServerMode::Forward(_) => {
+ self.back
+ .as_mut()
+ .unwrap()
+ .write_all(buf)
+ .unwrap();
+ }
+ }
+ }
+
+ fn send_http_response_once(&mut self) {
+ let response =
+ b"HTTP/1.0 200 OK\r\nConnection: close\r\n\r\nHello world from rustls tlsserver\r\n";
+ if !self.sent_http_response {
+ self.tls_conn
+ .writer()
+ .write_all(response)
+ .unwrap();
+ self.sent_http_response = true;
+ self.tls_conn.send_close_notify();
+ }
+ }
+
+ fn tls_write(&mut self) -> io::Result<usize> {
+ self.tls_conn
+ .write_tls(&mut self.socket)
+ }
+
+ fn do_tls_write_and_handle_error(&mut self) {
+ let rc = self.tls_write();
+ if rc.is_err() {
+ error!("write failed {:?}", rc);
+ self.closing = true;
+ }
+ }
+
+ fn register(&mut self, registry: &mio::Registry) {
+ let event_set = self.event_set();
+ registry
+ .register(&mut self.socket, self.token, event_set)
+ .unwrap();
+
+ if self.back.is_some() {
+ registry
+ .register(
+ self.back.as_mut().unwrap(),
+ self.token,
+ mio::Interest::READABLE,
+ )
+ .unwrap();
+ }
+ }
+
+ fn reregister(&mut self, registry: &mio::Registry) {
+ let event_set = self.event_set();
+ registry
+ .reregister(&mut self.socket, self.token, event_set)
+ .unwrap();
+ }
+
+ fn deregister(&mut self, registry: &mio::Registry) {
+ registry
+ .deregister(&mut self.socket)
+ .unwrap();
+
+ if self.back.is_some() {
+ registry
+ .deregister(self.back.as_mut().unwrap())
+ .unwrap();
+ }
+ }
+
+ /// What IO events we're currently waiting for,
+ /// based on wants_read/wants_write.
+ fn event_set(&self) -> mio::Interest {
+ let rd = self.tls_conn.wants_read();
+ let wr = self.tls_conn.wants_write();
+
+ if rd && wr {
+ mio::Interest::READABLE | mio::Interest::WRITABLE
+ } else if wr {
+ mio::Interest::WRITABLE
+ } else {
+ mio::Interest::READABLE
+ }
+ }
+
+ fn is_closed(&self) -> bool {
+ self.closed
+ }
+}
+
+const USAGE: &str = "
+Runs a TLS server on :PORT. The default PORT is 443.
+
+`echo' mode means the server echoes received data on each connection.
+
+`http' mode means the server blindly sends a HTTP response on each
+connection.
+
+`forward' means the server forwards plaintext to a connection made to
+localhost:fport.
+
+`--certs' names the full certificate chain, `--key' provides the
+RSA private key.
+
+Usage:
+ tlsserver-mio --certs CERTFILE --key KEYFILE [--suite SUITE ...] \
+ [--proto PROTO ...] [--protover PROTOVER ...] [options] echo
+ tlsserver-mio --certs CERTFILE --key KEYFILE [--suite SUITE ...] \
+ [--proto PROTO ...] [--protover PROTOVER ...] [options] http
+ tlsserver-mio --certs CERTFILE --key KEYFILE [--suite SUITE ...] \
+ [--proto PROTO ...] [--protover PROTOVER ...] [options] forward <fport>
+ tlsserver-mio (--version | -v)
+ tlsserver-mio (--help | -h)
+
+Options:
+ -p, --port PORT Listen on PORT [default: 443].
+ --certs CERTFILE Read server certificates from CERTFILE.
+ This should contain PEM-format certificates
+ in the right order (the first certificate should
+ certify KEYFILE, the last should be a root CA).
+ --key KEYFILE Read private key from KEYFILE. This should be a RSA
+ private key or PKCS8-encoded private key, in PEM format.
+ --ocsp OCSPFILE Read DER-encoded OCSP response from OCSPFILE and staple
+ to certificate. Optional.
+ --auth CERTFILE Enable client authentication, and accept certificates
+ signed by those roots provided in CERTFILE.
+ --require-auth Send a fatal alert if the client does not complete client
+ authentication.
+ --resumption Support session resumption.
+ --tickets Support tickets.
+ --protover VERSION Disable default TLS version list, and use
+ VERSION instead. May be used multiple times.
+ --suite SUITE Disable default cipher suite list, and use
+ SUITE instead. May be used multiple times.
+ --proto PROTOCOL Negotiate PROTOCOL using ALPN.
+ May be used multiple times.
+ --verbose Emit log output.
+ --version, -v Show tool version.
+ --help, -h Show this screen.
+";
+
+#[derive(Debug, Deserialize)]
+struct Args {
+ cmd_echo: bool,
+ cmd_http: bool,
+ flag_port: Option<u16>,
+ flag_verbose: bool,
+ flag_protover: Vec<String>,
+ flag_suite: Vec<String>,
+ flag_proto: Vec<String>,
+ flag_certs: Option<String>,
+ flag_key: Option<String>,
+ flag_ocsp: Option<String>,
+ flag_auth: Option<String>,
+ flag_require_auth: bool,
+ flag_resumption: bool,
+ flag_tickets: bool,
+ arg_fport: Option<u16>,
+}
+
+fn find_suite(name: &str) -> Option<rustls::SupportedCipherSuite> {
+ for suite in rustls::ALL_CIPHER_SUITES {
+ let sname = format!("{:?}", suite.suite()).to_lowercase();
+
+ if sname == name.to_string().to_lowercase() {
+ return Some(*suite);
+ }
+ }
+
+ None
+}
+
+fn lookup_suites(suites: &[String]) -> Vec<rustls::SupportedCipherSuite> {
+ let mut out = Vec::new();
+
+ for csname in suites {
+ let scs = find_suite(csname);
+ match scs {
+ Some(s) => out.push(s),
+ None => panic!("cannot look up ciphersuite '{}'", csname),
+ }
+ }
+
+ out
+}
+
+/// Make a vector of protocol versions named in `versions`
+fn lookup_versions(versions: &[String]) -> Vec<&'static rustls::SupportedProtocolVersion> {
+ let mut out = Vec::new();
+
+ for vname in versions {
+ let version = match vname.as_ref() {
+ "1.2" => &rustls::version::TLS12,
+ "1.3" => &rustls::version::TLS13,
+ _ => panic!(
+ "cannot look up version '{}', valid are '1.2' and '1.3'",
+ vname
+ ),
+ };
+ out.push(version);
+ }
+
+ out
+}
+
+fn load_certs(filename: &str) -> Vec<rustls::Certificate> {
+ let certfile = fs::File::open(filename).expect("cannot open certificate file");
+ let mut reader = BufReader::new(certfile);
+ rustls_pemfile::certs(&mut reader)
+ .unwrap()
+ .iter()
+ .map(|v| rustls::Certificate(v.clone()))
+ .collect()
+}
+
+fn load_private_key(filename: &str) -> rustls::PrivateKey {
+ let keyfile = fs::File::open(filename).expect("cannot open private key file");
+ let mut reader = BufReader::new(keyfile);
+
+ loop {
+ match rustls_pemfile::read_one(&mut reader).expect("cannot parse private key .pem file") {
+ Some(rustls_pemfile::Item::RSAKey(key)) => return rustls::PrivateKey(key),
+ Some(rustls_pemfile::Item::PKCS8Key(key)) => return rustls::PrivateKey(key),
+ Some(rustls_pemfile::Item::ECKey(key)) => return rustls::PrivateKey(key),
+ None => break,
+ _ => {}
+ }
+ }
+
+ panic!(
+ "no keys found in {:?} (encrypted keys not supported)",
+ filename
+ );
+}
+
+fn load_ocsp(filename: &Option<String>) -> Vec<u8> {
+ let mut ret = Vec::new();
+
+ if let Some(name) = filename {
+ fs::File::open(name)
+ .expect("cannot open ocsp file")
+ .read_to_end(&mut ret)
+ .unwrap();
+ }
+
+ ret
+}
+
+fn make_config(args: &Args) -> Arc<rustls::ServerConfig> {
+ let client_auth = if args.flag_auth.is_some() {
+ let roots = load_certs(args.flag_auth.as_ref().unwrap());
+ let mut client_auth_roots = RootCertStore::empty();
+ for root in roots {
+ client_auth_roots.add(&root).unwrap();
+ }
+ if args.flag_require_auth {
+ AllowAnyAuthenticatedClient::new(client_auth_roots).boxed()
+ } else {
+ AllowAnyAnonymousOrAuthenticatedClient::new(client_auth_roots).boxed()
+ }
+ } else {
+ NoClientAuth::boxed()
+ };
+
+ let suites = if !args.flag_suite.is_empty() {
+ lookup_suites(&args.flag_suite)
+ } else {
+ rustls::ALL_CIPHER_SUITES.to_vec()
+ };
+
+ let versions = if !args.flag_protover.is_empty() {
+ lookup_versions(&args.flag_protover)
+ } else {
+ rustls::ALL_VERSIONS.to_vec()
+ };
+
+ let certs = load_certs(
+ args.flag_certs
+ .as_ref()
+ .expect("--certs option missing"),
+ );
+ let privkey = load_private_key(
+ args.flag_key
+ .as_ref()
+ .expect("--key option missing"),
+ );
+ let ocsp = load_ocsp(&args.flag_ocsp);
+
+ let mut config = rustls::ServerConfig::builder()
+ .with_cipher_suites(&suites)
+ .with_safe_default_kx_groups()
+ .with_protocol_versions(&versions)
+ .expect("inconsistent cipher-suites/versions specified")
+ .with_client_cert_verifier(client_auth)
+ .with_single_cert_with_ocsp_and_sct(certs, privkey, ocsp, vec![])
+ .expect("bad certificates/private key");
+
+ config.key_log = Arc::new(rustls::KeyLogFile::new());
+
+ if args.flag_resumption {
+ config.session_storage = rustls::server::ServerSessionMemoryCache::new(256);
+ }
+
+ if args.flag_tickets {
+ config.ticketer = rustls::Ticketer::new().unwrap();
+ }
+
+ config.alpn_protocols = args
+ .flag_proto
+ .iter()
+ .map(|proto| proto.as_bytes().to_vec())
+ .collect::<Vec<_>>();
+
+ Arc::new(config)
+}
+
+fn main() {
+ let version = env!("CARGO_PKG_NAME").to_string() + ", version: " + env!("CARGO_PKG_VERSION");
+
+ let args: Args = Docopt::new(USAGE)
+ .map(|d| d.help(true))
+ .map(|d| d.version(Some(version)))
+ .and_then(|d| d.deserialize())
+ .unwrap_or_else(|e| e.exit());
+
+ if args.flag_verbose {
+ env_logger::Builder::new()
+ .parse_filters("trace")
+ .init();
+ }
+
+ let mut addr: net::SocketAddr = "0.0.0.0:443".parse().unwrap();
+ addr.set_port(args.flag_port.unwrap_or(443));
+
+ let config = make_config(&args);
+
+ let mut listener = TcpListener::bind(addr).expect("cannot listen on port");
+ let mut poll = mio::Poll::new().unwrap();
+ poll.registry()
+ .register(&mut listener, LISTENER, mio::Interest::READABLE)
+ .unwrap();
+
+ let mode = if args.cmd_echo {
+ ServerMode::Echo
+ } else if args.cmd_http {
+ ServerMode::Http
+ } else {
+ ServerMode::Forward(args.arg_fport.expect("fport required"))
+ };
+
+ let mut tlsserv = TlsServer::new(listener, mode, config);
+
+ let mut events = mio::Events::with_capacity(256);
+ loop {
+ poll.poll(&mut events, None).unwrap();
+
+ for event in events.iter() {
+ match event.token() {
+ LISTENER => {
+ tlsserv
+ .accept(poll.registry())
+ .expect("error accepting socket");
+ }
+ _ => tlsserv.conn_event(poll.registry(), event),
+ }
+ }
+ }
+}
diff --git a/rustls-0.21.2/fuzz/.gitignore b/rustls-0.21.2/fuzz/.gitignore
new file mode 100644
index 0000000..b4c6f0e
--- /dev/null
+++ b/rustls-0.21.2/fuzz/.gitignore
@@ -0,0 +1,3 @@
+
+target
+artifacts
diff --git a/rustls-0.21.2/fuzz/Cargo.toml b/rustls-0.21.2/fuzz/Cargo.toml
new file mode 100644
index 0000000..1c0a3c1
--- /dev/null
+++ b/rustls-0.21.2/fuzz/Cargo.toml
@@ -0,0 +1,46 @@
+
+[package]
+name = "rustls-fuzz"
+version = "0.0.1"
+authors = ["Automatically generated"]
+publish = false
+edition = "2021"
+
+[package.metadata]
+cargo-fuzz = true
+
+[dependencies]
+webpki = "0.22"
+
+[dependencies.rustls]
+path = "../rustls"
+[dependencies.libfuzzer-sys]
+git = "https://github.com/rust-fuzz/libfuzzer-sys.git"
+
+# Prevent this from interfering with workspaces
+[workspace]
+members = ["."]
+
+[[bin]]
+name = "message"
+path = "fuzzers/message.rs"
+
+[[bin]]
+name = "deframer"
+path = "fuzzers/deframer.rs"
+
+[[bin]]
+name = "fragment"
+path = "fuzzers/fragment.rs"
+
+[[bin]]
+name = "persist"
+path = "fuzzers/persist.rs"
+
+[[bin]]
+name = "client"
+path = "fuzzers/client.rs"
+
+[[bin]]
+name = "server"
+path = "fuzzers/server.rs"
diff --git a/rustls-0.21.2/fuzz/README.md b/rustls-0.21.2/fuzz/README.md
new file mode 100644
index 0000000..1fd31f9
--- /dev/null
+++ b/rustls-0.21.2/fuzz/README.md
@@ -0,0 +1,26 @@
+# Fuzz Testing
+
+Rustls supports fuzz testing using [cargo-fuzz]. Fuzz tests are automatically
+run during continuous integration using [oss-fuzz]. You may also run fuzz tests
+locally. See the [cargo-fuzz setup] instructions for requirements.
+
+```bash
+# List available fuzzing targets.
+$ cargo fuzz list
+client
+deframer
+fragment
+message
+persist
+servert
+
+# Run the message fuzz target for a fixed period of time (expressed in seconds).
+$ cargo fuzz run message -- -max_total_time=120
+
+# Clean up generated corpus files
+git clean --interactive -- ./corpus
+```
+
+[cargo-fuzz]: https://rust-fuzz.github.io/book/cargo-fuzz.html
+[oss-fuzz]: https://google.github.io/oss-fuzz/
+[cargo-fuzz setup]: https://rust-fuzz.github.io/book/cargo-fuzz/setup.html
diff --git a/rustls-0.21.2/fuzz/corpus/client/tls12-server.bin b/rustls-0.21.2/fuzz/corpus/client/tls12-server.bin
new file mode 100644
index 0000000..d4bb3f1
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/client/tls12-server.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/client/tls13-server.bin b/rustls-0.21.2/fuzz/corpus/client/tls13-server.bin
new file mode 100644
index 0000000..ebf16d5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/client/tls13-server.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.10280050250016901720.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.10280050250016901720.bin
new file mode 100644
index 0000000..6658025
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.10280050250016901720.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.10990289312340337901.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.10990289312340337901.bin
new file mode 100644
index 0000000..4df1020
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.10990289312340337901.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.11416797448165465899.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.11416797448165465899.bin
new file mode 100644
index 0000000..bc53a38
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.11416797448165465899.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.11453208220996012273.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.11453208220996012273.bin
new file mode 100644
index 0000000..99a9f2b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.11453208220996012273.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.11565037296979808272.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.11565037296979808272.bin
new file mode 100644
index 0000000..892fcbb
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.11565037296979808272.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.11760376156357150936.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.11760376156357150936.bin
new file mode 100644
index 0000000..4ca0c89
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.11760376156357150936.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.12245208494696599323.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.12245208494696599323.bin
new file mode 100644
index 0000000..2c010ff
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.12245208494696599323.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.12355157071787079801.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.12355157071787079801.bin
new file mode 100644
index 0000000..5d2337d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.12355157071787079801.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.12375939412686290950.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.12375939412686290950.bin
new file mode 100644
index 0000000..7935159
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.12375939412686290950.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.12378204967172258450.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.12378204967172258450.bin
new file mode 100644
index 0000000..5fa2cdb
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.12378204967172258450.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.12615425949843913652.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.12615425949843913652.bin
new file mode 100644
index 0000000..f257367
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.12615425949843913652.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.12786326721221384799.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.12786326721221384799.bin
new file mode 100644
index 0000000..8941822
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.12786326721221384799.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.13339784566695133300.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.13339784566695133300.bin
new file mode 100644
index 0000000..a3f7f83
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.13339784566695133300.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.13361831451407093096.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.13361831451407093096.bin
new file mode 100644
index 0000000..f3a5df3
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.13361831451407093096.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.13518407338280213965.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.13518407338280213965.bin
new file mode 100644
index 0000000..ba7a178
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.13518407338280213965.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.13944372952187732560.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.13944372952187732560.bin
new file mode 100644
index 0000000..8c83491
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.13944372952187732560.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.14329079313034565007.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.14329079313034565007.bin
new file mode 100644
index 0000000..827b52b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.14329079313034565007.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.14763597747152221220.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.14763597747152221220.bin
new file mode 100644
index 0000000..4d187f7
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.14763597747152221220.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.15529719457323058694.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.15529719457323058694.bin
new file mode 100644
index 0000000..da43827
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.15529719457323058694.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.16757745138222651512.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.16757745138222651512.bin
new file mode 100644
index 0000000..1f31dfe
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.16757745138222651512.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.17041130500670955403.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.17041130500670955403.bin
new file mode 100644
index 0000000..b0fadb5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.17041130500670955403.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.17076052668804544911.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.17076052668804544911.bin
new file mode 100644
index 0000000..cdfd342
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.17076052668804544911.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.17808584441538747011.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.17808584441538747011.bin
new file mode 100644
index 0000000..11024af
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.17808584441538747011.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.1926005331368283096.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.1926005331368283096.bin
new file mode 100644
index 0000000..50fe12a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.1926005331368283096.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.2519011641324364265.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.2519011641324364265.bin
new file mode 100644
index 0000000..e84e5ab
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.2519011641324364265.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.3043772687617154178.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.3043772687617154178.bin
new file mode 100644
index 0000000..99deb02
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.3043772687617154178.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.3312711214589330727.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.3312711214589330727.bin
new file mode 100644
index 0000000..05ef6bf
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.3312711214589330727.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.3846875027962666933.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.3846875027962666933.bin
new file mode 100644
index 0000000..54e7b53
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.3846875027962666933.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.3913777692829914411.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.3913777692829914411.bin
new file mode 100644
index 0000000..6f4b0cf
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.3913777692829914411.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.4452180125344520836.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.4452180125344520836.bin
new file mode 100644
index 0000000..e49f98a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.4452180125344520836.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.4742310320599043602.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.4742310320599043602.bin
new file mode 100644
index 0000000..e9df84a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.4742310320599043602.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.5389179157252855041.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.5389179157252855041.bin
new file mode 100644
index 0000000..a9b516a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.5389179157252855041.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.5456718882703404602.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.5456718882703404602.bin
new file mode 100644
index 0000000..281ce16
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.5456718882703404602.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.6121018813528470199.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.6121018813528470199.bin
new file mode 100644
index 0000000..cfcaa3f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.6121018813528470199.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.6263407189670520235.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.6263407189670520235.bin
new file mode 100644
index 0000000..9b10eaa
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.6263407189670520235.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.7573777073329161362.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.7573777073329161362.bin
new file mode 100644
index 0000000..f2e972e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.7573777073329161362.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.7765214894001215959.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.7765214894001215959.bin
new file mode 100644
index 0000000..81fa7cc
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.7765214894001215959.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.8003974926653128830.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.8003974926653128830.bin
new file mode 100644
index 0000000..db802cc
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.8003974926653128830.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.8040902803342244309.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.8040902803342244309.bin
new file mode 100644
index 0000000..76eaff5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.8040902803342244309.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.9395714526513626176.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.9395714526513626176.bin
new file mode 100644
index 0000000..477fa7d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.9395714526513626176.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Alert.9705133744397563296.bin b/rustls-0.21.2/fuzz/corpus/message/Alert.9705133744397563296.bin
new file mode 100644
index 0000000..76ae057
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Alert.9705133744397563296.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/ApplicationData.1679947195649814466.bin b/rustls-0.21.2/fuzz/corpus/message/ApplicationData.1679947195649814466.bin
new file mode 100644
index 0000000..18fef3f
--- /dev/null
+++ b/rustls-0.21.2/fuzz/corpus/message/ApplicationData.1679947195649814466.bin
@@ -0,0 +1,34 @@
+YHTTP/1.1 200 OK
+Date: Mon, 08 May 2017 22:57:43 GMT
+Content-Type: text/html; charset=utf-8
+Transfer-Encoding: chunked
+Connection: close
+Set-Cookie: __cfduid=d1755eb7822a3999117381353fbdf59c41494284263; expires=Tue, 08-May-18 22:57:43 GMT; path=/; domain=.jbp.io; HttpOnly
+Last-Modified: Mon, 03 Apr 2017 20:07:46 GMT
+Access-Control-Allow-Origin: *
+Expires: Mon, 08 May 2017 23:07:43 GMT
+Cache-Control: max-age=600
+X-GitHub-Request-Id: 8857:5FC2:18DD116:208AB68:5910F7E7
+Strict-Transport-Security: max-age=2592000
+X-Content-Type-Options: nosniff
+Server: cloudflare-nginx
+CF-RAY: 35c00506a9303536-LHR
+
+be2
+
+
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <meta name="google-site-verification" content="8_3Lj_0Yt688wzUrjZYeLzrNX5RuAaFgyJuma8yTv5k" />
+ <title>jbp.io :: </title>
+ <meta name="author" content="Joseph Birr-Pixton" />
+ <link rel="alternate" type="application/atom+xml" title="Atom feed" href="/atom.xml" />
+ <link rel="alternate" type="application/rss+xml" title="RSS feed" href="/rss.xml" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+ <!-- Fancy font -->
+ <link rel="stylesheet" href="/assets/themes/jbp/css/lily-script.css" type="text/css" />
+
+ <!-- Syntax highlighti
\ No newline at end of file
diff --git a/rustls-0.21.2/fuzz/corpus/message/ApplicationData.9982215765603175582.bin b/rustls-0.21.2/fuzz/corpus/message/ApplicationData.9982215765603175582.bin
new file mode 100644
index 0000000..6cf8427
--- /dev/null
+++ b/rustls-0.21.2/fuzz/corpus/message/ApplicationData.9982215765603175582.bin
@@ -0,0 +1,60 @@
+
+�s, answers, and votes this week" data-value="week" data-shortcut="W">
+ week</a>
+ <a href="?tab=month" data-nav-xhref="" title="Questions with the most views, answers, and votes this month" data-value="month" data-shortcut="M">
+ month</a>
+</div>
+ </div>
+<div id="qlist-wrapper">
+ <div id="question-mini-list">
+
+
+<div class="question-summary narrow"
+ id="question-summary-43857891">
+ <div onclick="window.location.href='/questions/43857891/how-do-i-order-an-array-in-ruby-when-ordering-has-four-different-conditions'" class="cp">
+ <div class="votes">
+ <div class="mini-counts"><span title="1 vote">1</span></div>
+ <div>vote</div>
+ </div>
+ <div class="status answered">
+ <div class="mini-counts"><span title="2 answers">2</span></div>
+ <div>answers</div>
+ </div>
+ <div class="views">
+ <div class="mini-counts"><span title="25 views">25</span></div>
+ <div>views</div>
+ </div>
+ </div>
+ <div class="summary">
+
+ <h3><a href="/questions/43857891/how-do-i-order-an-array-in-ruby-when-ordering-has-four-different-conditions" class="question-hyperlink">How do I order an array in ruby when ordering has four different conditions?</a></h3>
+ <div class="tags t-ruby">
+ <a href="/questions/tagged/ruby" class="post-tag" title="show questions tagged 'ruby'" rel="tag">ruby</a>
+ </div>
+ <div class="started">
+ <a href="/questions/43857891/how-do-i-order-an-array-in-ruby-when-ordering-has-four-different-conditions/?lastactivity" class="started-link">modified <span title="2017-05-08 22:56:47Z" class="relativetime">45 secs ago</span></a>
+ <a href="/users/256970/cary-swoveland">Cary Swoveland</a> <span class="reputation-score" title="reputation score 50,289" dir="ltr">50.3k</span>
+ </div>
+ </div>
+</div>
+
+
+<div class="question-summary narrow"
+ id="question-summary-43858476">
+ <div onclick="window.location.href='/questions/43858476/how-to-create-group-number-from-string'" class="cp">
+ <div class="votes">
+ <div class="mini-counts"><span title="0 votes">0</span></div>
+ <div>votes</div>
+ </div>
+ <div class="status unanswered">
+ <div class="mini-counts"><span title="0 answers">0</span></div>
+ <div>answers</div>
+ </div>
+ <div class="views">
+ <div class="mini-counts"><span title="2 views">2</span></div>
+ <div>views</div>
+ </div>
+ </div>
+ <div class="summary">
+
+ <h3><a href="/questions/43858476/how-to-create-group-number-f
\ No newline at end of file
diff --git a/rustls-0.21.2/fuzz/corpus/message/ChangeCipherSpec.5130871619167228381.bin b/rustls-0.21.2/fuzz/corpus/message/ChangeCipherSpec.5130871619167228381.bin
new file mode 100644
index 0000000..8f87187
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/ChangeCipherSpec.5130871619167228381.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10011143024461322467.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10011143024461322467.bin
new file mode 100644
index 0000000..88ca32e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10011143024461322467.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10077665702210867505.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10077665702210867505.bin
new file mode 100644
index 0000000..0341e62
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10077665702210867505.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10098879893470023836.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10098879893470023836.bin
new file mode 100644
index 0000000..df05504
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10098879893470023836.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1014094126958255749.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1014094126958255749.bin
new file mode 100644
index 0000000..9f24a90
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1014094126958255749.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10141290723738510057.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10141290723738510057.bin
new file mode 100644
index 0000000..d57ae4d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10141290723738510057.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10141834381331746219.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10141834381331746219.bin
new file mode 100644
index 0000000..f95fcc2
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10141834381331746219.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10209460977184754837.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10209460977184754837.bin
new file mode 100644
index 0000000..c5717d3
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10209460977184754837.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10218605480040858007.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10218605480040858007.bin
new file mode 100644
index 0000000..bb254b0
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10218605480040858007.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10240025107753113811.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10240025107753113811.bin
new file mode 100644
index 0000000..3dc38c1
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10240025107753113811.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10371497117445277776.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10371497117445277776.bin
new file mode 100644
index 0000000..56efb86
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10371497117445277776.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10371726514864811512.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10371726514864811512.bin
new file mode 100644
index 0000000..2fdd662
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10371726514864811512.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10404861134591260329.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10404861134591260329.bin
new file mode 100644
index 0000000..f72b2b8
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10404861134591260329.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10435794347579708741.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10435794347579708741.bin
new file mode 100644
index 0000000..8dc2545
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10435794347579708741.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10446208266497761172.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10446208266497761172.bin
new file mode 100644
index 0000000..e49c86c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10446208266497761172.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10456857047407384689.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10456857047407384689.bin
new file mode 100644
index 0000000..9cca1b3
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10456857047407384689.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10458215951434834175.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10458215951434834175.bin
new file mode 100644
index 0000000..ca7d50b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10458215951434834175.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10552517710869239241.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10552517710869239241.bin
new file mode 100644
index 0000000..5a254e1
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10552517710869239241.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10558811065537550384.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10558811065537550384.bin
new file mode 100644
index 0000000..478ed2b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10558811065537550384.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10613091849924479756.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10613091849924479756.bin
new file mode 100644
index 0000000..543ae41
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10613091849924479756.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10659216864320865342.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10659216864320865342.bin
new file mode 100644
index 0000000..08a8cc3
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10659216864320865342.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10681270166105325453.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10681270166105325453.bin
new file mode 100644
index 0000000..8b272e8
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10681270166105325453.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10688022178565531040.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10688022178565531040.bin
new file mode 100644
index 0000000..0d97cd2
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10688022178565531040.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10698695949247460925.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10698695949247460925.bin
new file mode 100644
index 0000000..f11ac35
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10698695949247460925.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10742438438534962209.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10742438438534962209.bin
new file mode 100644
index 0000000..0ab1133
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10742438438534962209.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10874002327852371828.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10874002327852371828.bin
new file mode 100644
index 0000000..8617d59
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10874002327852371828.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10883949373270779757.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10883949373270779757.bin
new file mode 100644
index 0000000..58fdb66
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10883949373270779757.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.10916777788113490974.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.10916777788113490974.bin
new file mode 100644
index 0000000..bd8a91f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.10916777788113490974.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11036929536862183793.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11036929536862183793.bin
new file mode 100644
index 0000000..2db1c76
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11036929536862183793.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11133859442970323138.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11133859442970323138.bin
new file mode 100644
index 0000000..a6bafc5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11133859442970323138.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11200934711857544531.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11200934711857544531.bin
new file mode 100644
index 0000000..3dba354
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11200934711857544531.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11252751319713410600.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11252751319713410600.bin
new file mode 100644
index 0000000..b5d209e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11252751319713410600.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11262390920595632125.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11262390920595632125.bin
new file mode 100644
index 0000000..bafde8e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11262390920595632125.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11263729003567826431.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11263729003567826431.bin
new file mode 100644
index 0000000..a8c5f19
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11263729003567826431.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1128253234623654886.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1128253234623654886.bin
new file mode 100644
index 0000000..0184ff5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1128253234623654886.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11311319071620970474.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11311319071620970474.bin
new file mode 100644
index 0000000..4eaf110
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11311319071620970474.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11402577742008484913.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11402577742008484913.bin
new file mode 100644
index 0000000..b969466
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11402577742008484913.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11420916514041666430.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11420916514041666430.bin
new file mode 100644
index 0000000..e7efb92
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11420916514041666430.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11436898661660187192.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11436898661660187192.bin
new file mode 100644
index 0000000..d7ed937
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11436898661660187192.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11476587042910458435.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11476587042910458435.bin
new file mode 100644
index 0000000..a9300ef
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11476587042910458435.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11577081787284137323.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11577081787284137323.bin
new file mode 100644
index 0000000..b25a3af
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11577081787284137323.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11599548177419428055.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11599548177419428055.bin
new file mode 100644
index 0000000..f336518
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11599548177419428055.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11729926090369047740.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11729926090369047740.bin
new file mode 100644
index 0000000..3be1a97
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11729926090369047740.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11734105735310423560.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11734105735310423560.bin
new file mode 100644
index 0000000..a634b19
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11734105735310423560.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11768011845890387011.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11768011845890387011.bin
new file mode 100644
index 0000000..3474209
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11768011845890387011.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11797635867773909803.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11797635867773909803.bin
new file mode 100644
index 0000000..761739e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11797635867773909803.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11831695944078976098.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11831695944078976098.bin
new file mode 100644
index 0000000..ec60893
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11831695944078976098.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11864301203407148532.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11864301203407148532.bin
new file mode 100644
index 0000000..efd2829
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11864301203407148532.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11897948021151086611.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11897948021151086611.bin
new file mode 100644
index 0000000..01961ab
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11897948021151086611.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1189983604093770200.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1189983604093770200.bin
new file mode 100644
index 0000000..c3a5ca9
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1189983604093770200.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.11899913542638122182.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.11899913542638122182.bin
new file mode 100644
index 0000000..ba05af6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.11899913542638122182.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1201340471094163820.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1201340471094163820.bin
new file mode 100644
index 0000000..4e0690f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1201340471094163820.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12049357286072587683.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12049357286072587683.bin
new file mode 100644
index 0000000..d5ba7ac
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12049357286072587683.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12050074869185469294.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12050074869185469294.bin
new file mode 100644
index 0000000..312fc68
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12050074869185469294.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12095880389901769183.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12095880389901769183.bin
new file mode 100644
index 0000000..0df9fde
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12095880389901769183.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12097987555572946602.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12097987555572946602.bin
new file mode 100644
index 0000000..8e994c8
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12097987555572946602.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12108739684593654595.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12108739684593654595.bin
new file mode 100644
index 0000000..d5693fd
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12108739684593654595.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1210891782701783637.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1210891782701783637.bin
new file mode 100644
index 0000000..3c19037
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1210891782701783637.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12229778010996579180.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12229778010996579180.bin
new file mode 100644
index 0000000..cd6f452
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12229778010996579180.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12272542168539556446.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12272542168539556446.bin
new file mode 100644
index 0000000..99220d8
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12272542168539556446.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12324399657563551716.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12324399657563551716.bin
new file mode 100644
index 0000000..f9af9db
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12324399657563551716.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12419794187727158761.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12419794187727158761.bin
new file mode 100644
index 0000000..6e67027
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12419794187727158761.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12461674601026577652.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12461674601026577652.bin
new file mode 100644
index 0000000..e430cb2
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12461674601026577652.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12542921702091737503.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12542921702091737503.bin
new file mode 100644
index 0000000..78398a8
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12542921702091737503.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12575443973166284515.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12575443973166284515.bin
new file mode 100644
index 0000000..b8cb136
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12575443973166284515.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12619619622709153468.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12619619622709153468.bin
new file mode 100644
index 0000000..d59db4f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12619619622709153468.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12713618516910133238.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12713618516910133238.bin
new file mode 100644
index 0000000..5cb8eff
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12713618516910133238.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12791027514067409694.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12791027514067409694.bin
new file mode 100644
index 0000000..a1f48d3
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12791027514067409694.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12821925002150674327.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12821925002150674327.bin
new file mode 100644
index 0000000..5dccd8c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12821925002150674327.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12866691055333988812.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12866691055333988812.bin
new file mode 100644
index 0000000..b98a30a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12866691055333988812.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12881350425646542526.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12881350425646542526.bin
new file mode 100644
index 0000000..1440ea5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12881350425646542526.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12906714218699487516.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12906714218699487516.bin
new file mode 100644
index 0000000..6a924c3
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12906714218699487516.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12923847857105388415.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12923847857105388415.bin
new file mode 100644
index 0000000..d49f671
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12923847857105388415.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12933585682510177240.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12933585682510177240.bin
new file mode 100644
index 0000000..bd1cf2a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12933585682510177240.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12933927063134556696.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12933927063134556696.bin
new file mode 100644
index 0000000..246164f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12933927063134556696.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12962951870000222901.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12962951870000222901.bin
new file mode 100644
index 0000000..32785cd
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12962951870000222901.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12987742379477651587.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12987742379477651587.bin
new file mode 100644
index 0000000..891b347
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12987742379477651587.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.12992305617680129286.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.12992305617680129286.bin
new file mode 100644
index 0000000..ce818d1
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.12992305617680129286.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13032428774562074898.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13032428774562074898.bin
new file mode 100644
index 0000000..f32d124
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13032428774562074898.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1309579295029779311.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1309579295029779311.bin
new file mode 100644
index 0000000..e429600
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1309579295029779311.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13135207830642795575.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13135207830642795575.bin
new file mode 100644
index 0000000..c0da780
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13135207830642795575.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13146595373118622951.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13146595373118622951.bin
new file mode 100644
index 0000000..40c065f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13146595373118622951.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13208116316761918660.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13208116316761918660.bin
new file mode 100644
index 0000000..c814410
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13208116316761918660.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13252009950983403856.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13252009950983403856.bin
new file mode 100644
index 0000000..195cf3d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13252009950983403856.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13254954579228851613.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13254954579228851613.bin
new file mode 100644
index 0000000..4575d7d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13254954579228851613.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13276329037903871174.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13276329037903871174.bin
new file mode 100644
index 0000000..2898141
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13276329037903871174.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13373545972366589631.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13373545972366589631.bin
new file mode 100644
index 0000000..340ca47
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13373545972366589631.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13401359172328241694.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13401359172328241694.bin
new file mode 100644
index 0000000..74abb7e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13401359172328241694.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13422631897482703892.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13422631897482703892.bin
new file mode 100644
index 0000000..7a4027a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13422631897482703892.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13448396166617358694.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13448396166617358694.bin
new file mode 100644
index 0000000..23bde85
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13448396166617358694.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13462900989360483027.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13462900989360483027.bin
new file mode 100644
index 0000000..776a605
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13462900989360483027.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13490041212957887113.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13490041212957887113.bin
new file mode 100644
index 0000000..9535c6d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13490041212957887113.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13508856728571080946.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13508856728571080946.bin
new file mode 100644
index 0000000..a20d8eb
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13508856728571080946.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13527476206349948098.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13527476206349948098.bin
new file mode 100644
index 0000000..8dd468f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13527476206349948098.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13553527446655009046.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13553527446655009046.bin
new file mode 100644
index 0000000..4518e29
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13553527446655009046.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13567655794415259226.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13567655794415259226.bin
new file mode 100644
index 0000000..fa8c8ed
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13567655794415259226.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13572499048018428911.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13572499048018428911.bin
new file mode 100644
index 0000000..4051f7a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13572499048018428911.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13584197101871325906.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13584197101871325906.bin
new file mode 100644
index 0000000..993262b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13584197101871325906.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13648713539106128587.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13648713539106128587.bin
new file mode 100644
index 0000000..16c1277
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13648713539106128587.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1365796585825694264.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1365796585825694264.bin
new file mode 100644
index 0000000..f0265a3
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1365796585825694264.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13790749913165199198.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13790749913165199198.bin
new file mode 100644
index 0000000..fad1f60
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13790749913165199198.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13814068595971935296.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13814068595971935296.bin
new file mode 100644
index 0000000..b33fd6b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13814068595971935296.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13884570758846245053.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13884570758846245053.bin
new file mode 100644
index 0000000..7eedbc0
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13884570758846245053.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1394349569218781788.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1394349569218781788.bin
new file mode 100644
index 0000000..5a6b793
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1394349569218781788.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13984063482272562700.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13984063482272562700.bin
new file mode 100644
index 0000000..06b1f07
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13984063482272562700.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13984770398439454092.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13984770398439454092.bin
new file mode 100644
index 0000000..b71e44b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13984770398439454092.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.13999267638725815508.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.13999267638725815508.bin
new file mode 100644
index 0000000..21c48a5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.13999267638725815508.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14009877000152811622.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14009877000152811622.bin
new file mode 100644
index 0000000..6a6b74e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14009877000152811622.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14013883575498423468.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14013883575498423468.bin
new file mode 100644
index 0000000..f67a49d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14013883575498423468.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14024049187646346995.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14024049187646346995.bin
new file mode 100644
index 0000000..371d2ce
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14024049187646346995.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14063675181380296895.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14063675181380296895.bin
new file mode 100644
index 0000000..f328531
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14063675181380296895.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14069660426092783164.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14069660426092783164.bin
new file mode 100644
index 0000000..9283a27
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14069660426092783164.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14099606319859446532.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14099606319859446532.bin
new file mode 100644
index 0000000..6af6e23
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14099606319859446532.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14242200054858355158.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14242200054858355158.bin
new file mode 100644
index 0000000..58693dd
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14242200054858355158.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1425510439158102692.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1425510439158102692.bin
new file mode 100644
index 0000000..2dccb8d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1425510439158102692.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14282273754635061222.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14282273754635061222.bin
new file mode 100644
index 0000000..b1d4db9
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14282273754635061222.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14320193797455121029.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14320193797455121029.bin
new file mode 100644
index 0000000..e648c5b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14320193797455121029.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14322628933094490808.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14322628933094490808.bin
new file mode 100644
index 0000000..e42e08a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14322628933094490808.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14393665983695130074.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14393665983695130074.bin
new file mode 100644
index 0000000..ef63ea9
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14393665983695130074.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14412410967361510993.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14412410967361510993.bin
new file mode 100644
index 0000000..d308581
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14412410967361510993.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14429326485950888401.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14429326485950888401.bin
new file mode 100644
index 0000000..ac6b1fd
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14429326485950888401.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14446821313588772895.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14446821313588772895.bin
new file mode 100644
index 0000000..8d069b3
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14446821313588772895.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14525786614546755913.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14525786614546755913.bin
new file mode 100644
index 0000000..075ab08
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14525786614546755913.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14585480434123890306.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14585480434123890306.bin
new file mode 100644
index 0000000..1b15160
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14585480434123890306.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14589551266924465272.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14589551266924465272.bin
new file mode 100644
index 0000000..da698e4
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14589551266924465272.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14617410605578343341.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14617410605578343341.bin
new file mode 100644
index 0000000..da2e28b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14617410605578343341.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14662564964928502601.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14662564964928502601.bin
new file mode 100644
index 0000000..2c6f127
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14662564964928502601.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14695493555000511183.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14695493555000511183.bin
new file mode 100644
index 0000000..1922091
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14695493555000511183.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1469590175970957671.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1469590175970957671.bin
new file mode 100644
index 0000000..8178da6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1469590175970957671.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14703099513472818837.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14703099513472818837.bin
new file mode 100644
index 0000000..156b26d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14703099513472818837.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1473135651763031014.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1473135651763031014.bin
new file mode 100644
index 0000000..22bcc84
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1473135651763031014.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14866688372795221766.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14866688372795221766.bin
new file mode 100644
index 0000000..90eec3b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14866688372795221766.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14908741649050651227.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14908741649050651227.bin
new file mode 100644
index 0000000..293b1cd
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14908741649050651227.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.14923365458552646986.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.14923365458552646986.bin
new file mode 100644
index 0000000..44a757d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.14923365458552646986.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15068056427013946956.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15068056427013946956.bin
new file mode 100644
index 0000000..db96c83
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15068056427013946956.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15176487544662052367.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15176487544662052367.bin
new file mode 100644
index 0000000..3835e14
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15176487544662052367.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1518320918629890656.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1518320918629890656.bin
new file mode 100644
index 0000000..f318adc
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1518320918629890656.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15192629661718834661.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15192629661718834661.bin
new file mode 100644
index 0000000..16f1592
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15192629661718834661.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15228554977041565944.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15228554977041565944.bin
new file mode 100644
index 0000000..4e37a3f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15228554977041565944.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1530973898026006702.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1530973898026006702.bin
new file mode 100644
index 0000000..81a9a7f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1530973898026006702.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15388918098225859116.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15388918098225859116.bin
new file mode 100644
index 0000000..3399bbe
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15388918098225859116.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15392005723087373547.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15392005723087373547.bin
new file mode 100644
index 0000000..e2052cd
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15392005723087373547.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15411291236989586884.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15411291236989586884.bin
new file mode 100644
index 0000000..e9e7fca
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15411291236989586884.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15424787030236756886.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15424787030236756886.bin
new file mode 100644
index 0000000..19d8636
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15424787030236756886.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15437232101358805623.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15437232101358805623.bin
new file mode 100644
index 0000000..9ed3578
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15437232101358805623.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15453568942617885946.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15453568942617885946.bin
new file mode 100644
index 0000000..5951679
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15453568942617885946.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15511476665456364419.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15511476665456364419.bin
new file mode 100644
index 0000000..a39c2ce
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15511476665456364419.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15536109336749205379.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15536109336749205379.bin
new file mode 100644
index 0000000..a207007
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15536109336749205379.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.156657696701620214.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.156657696701620214.bin
new file mode 100644
index 0000000..878c565
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.156657696701620214.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15744220259092203702.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15744220259092203702.bin
new file mode 100644
index 0000000..89093e5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15744220259092203702.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15747644562524183318.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15747644562524183318.bin
new file mode 100644
index 0000000..932027c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15747644562524183318.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15764035480274040664.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15764035480274040664.bin
new file mode 100644
index 0000000..dec13b8
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15764035480274040664.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15785092298493111633.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15785092298493111633.bin
new file mode 100644
index 0000000..68d6f08
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15785092298493111633.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15823145278767166593.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15823145278767166593.bin
new file mode 100644
index 0000000..729c7b5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15823145278767166593.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15828817918393310647.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15828817918393310647.bin
new file mode 100644
index 0000000..0299ed6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15828817918393310647.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15853804441626080064.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15853804441626080064.bin
new file mode 100644
index 0000000..0e77da4
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15853804441626080064.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15924521189391044303.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15924521189391044303.bin
new file mode 100644
index 0000000..8de688e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15924521189391044303.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15932636702503475692.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15932636702503475692.bin
new file mode 100644
index 0000000..700b069
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15932636702503475692.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.15980728767105240219.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.15980728767105240219.bin
new file mode 100644
index 0000000..f6b4db6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.15980728767105240219.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16032892450728185496.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16032892450728185496.bin
new file mode 100644
index 0000000..465ba8f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16032892450728185496.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16070677070745681985.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16070677070745681985.bin
new file mode 100644
index 0000000..fbb1963
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16070677070745681985.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16123262421179431974.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16123262421179431974.bin
new file mode 100644
index 0000000..d61050b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16123262421179431974.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16201754788736281125.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16201754788736281125.bin
new file mode 100644
index 0000000..eb1b367
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16201754788736281125.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16210478671713826865.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16210478671713826865.bin
new file mode 100644
index 0000000..e89322d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16210478671713826865.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1626390092489971117.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1626390092489971117.bin
new file mode 100644
index 0000000..49b89db
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1626390092489971117.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16308850004059631606.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16308850004059631606.bin
new file mode 100644
index 0000000..1ebfaf2
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16308850004059631606.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16383259529830901736.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16383259529830901736.bin
new file mode 100644
index 0000000..008136e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16383259529830901736.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16412278998098028101.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16412278998098028101.bin
new file mode 100644
index 0000000..77f2d3a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16412278998098028101.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16426857520717506228.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16426857520717506228.bin
new file mode 100644
index 0000000..0793d30
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16426857520717506228.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16432119024468853176.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16432119024468853176.bin
new file mode 100644
index 0000000..739f787
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16432119024468853176.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1643490134021521720.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1643490134021521720.bin
new file mode 100644
index 0000000..35ed849
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1643490134021521720.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16436699903170639558.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16436699903170639558.bin
new file mode 100644
index 0000000..fd45fcf
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16436699903170639558.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16437683612303518319.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16437683612303518319.bin
new file mode 100644
index 0000000..446bd83
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16437683612303518319.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16444098854362686463.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16444098854362686463.bin
new file mode 100644
index 0000000..56f6f46
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16444098854362686463.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16472122371040267626.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16472122371040267626.bin
new file mode 100644
index 0000000..c7ad7e8
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16472122371040267626.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16514529420505023990.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16514529420505023990.bin
new file mode 100644
index 0000000..3b618d8
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16514529420505023990.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16523657212788733702.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16523657212788733702.bin
new file mode 100644
index 0000000..47e1c17
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16523657212788733702.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16540589193778243567.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16540589193778243567.bin
new file mode 100644
index 0000000..0068991
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16540589193778243567.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16589685086502189050.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16589685086502189050.bin
new file mode 100644
index 0000000..d10f6a1
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16589685086502189050.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16596178973076867541.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16596178973076867541.bin
new file mode 100644
index 0000000..9432fe9
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16596178973076867541.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16609173880091320790.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16609173880091320790.bin
new file mode 100644
index 0000000..abba05a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16609173880091320790.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16627757275148925447.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16627757275148925447.bin
new file mode 100644
index 0000000..0a2287a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16627757275148925447.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16647171529249569913.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16647171529249569913.bin
new file mode 100644
index 0000000..10408cc
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16647171529249569913.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16703222254862307860.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16703222254862307860.bin
new file mode 100644
index 0000000..d2a8f7b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16703222254862307860.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16722115196302564440.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16722115196302564440.bin
new file mode 100644
index 0000000..9848c60
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16722115196302564440.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16735862169122005385.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16735862169122005385.bin
new file mode 100644
index 0000000..7461ef3
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16735862169122005385.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16811966076719770617.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16811966076719770617.bin
new file mode 100644
index 0000000..3283658
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16811966076719770617.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16833941846957128371.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16833941846957128371.bin
new file mode 100644
index 0000000..825cca6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16833941846957128371.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16876551284119928887.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16876551284119928887.bin
new file mode 100644
index 0000000..ccb633d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16876551284119928887.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1688845106119492085.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1688845106119492085.bin
new file mode 100644
index 0000000..1df456c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1688845106119492085.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16897951102744314465.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16897951102744314465.bin
new file mode 100644
index 0000000..4689bf3
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16897951102744314465.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16948215967012835893.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16948215967012835893.bin
new file mode 100644
index 0000000..e3d08b6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16948215967012835893.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.16992819064390132752.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.16992819064390132752.bin
new file mode 100644
index 0000000..b0934cf
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.16992819064390132752.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17011818371765087662.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17011818371765087662.bin
new file mode 100644
index 0000000..9bc1602
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17011818371765087662.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17045079723342920595.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17045079723342920595.bin
new file mode 100644
index 0000000..3887689
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17045079723342920595.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17055562155747367704.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17055562155747367704.bin
new file mode 100644
index 0000000..777606c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17055562155747367704.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17059185269347141233.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17059185269347141233.bin
new file mode 100644
index 0000000..5199f67
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17059185269347141233.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17144558641001270304.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17144558641001270304.bin
new file mode 100644
index 0000000..01e0f3d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17144558641001270304.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17170083450142864624.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17170083450142864624.bin
new file mode 100644
index 0000000..7ed71d7
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17170083450142864624.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1717690949369415293.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1717690949369415293.bin
new file mode 100644
index 0000000..8220def
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1717690949369415293.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17201788246676815961.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17201788246676815961.bin
new file mode 100644
index 0000000..a6c8b07
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17201788246676815961.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17212335116719329178.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17212335116719329178.bin
new file mode 100644
index 0000000..9639f07
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17212335116719329178.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17213792272579830434.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17213792272579830434.bin
new file mode 100644
index 0000000..2472270
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17213792272579830434.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17232270933043251133.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17232270933043251133.bin
new file mode 100644
index 0000000..ea34c93
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17232270933043251133.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17232478528388315092.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17232478528388315092.bin
new file mode 100644
index 0000000..e632ded
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17232478528388315092.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17235335569215645063.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17235335569215645063.bin
new file mode 100644
index 0000000..cbb0014
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17235335569215645063.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17243615472388120296.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17243615472388120296.bin
new file mode 100644
index 0000000..9f696b6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17243615472388120296.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17258521995883629147.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17258521995883629147.bin
new file mode 100644
index 0000000..07122e9
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17258521995883629147.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17297754318680457736.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17297754318680457736.bin
new file mode 100644
index 0000000..e511722
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17297754318680457736.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17327628122216214740.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17327628122216214740.bin
new file mode 100644
index 0000000..fc7414b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17327628122216214740.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17328079106849016450.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17328079106849016450.bin
new file mode 100644
index 0000000..fbf73dc
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17328079106849016450.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17340575935546108314.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17340575935546108314.bin
new file mode 100644
index 0000000..8daae2d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17340575935546108314.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17396092822317572139.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17396092822317572139.bin
new file mode 100644
index 0000000..0e2bb7e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17396092822317572139.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17424255485062971368.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17424255485062971368.bin
new file mode 100644
index 0000000..07b9f06
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17424255485062971368.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17437492765421933494.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17437492765421933494.bin
new file mode 100644
index 0000000..541a4e4
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17437492765421933494.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17540384758876388884.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17540384758876388884.bin
new file mode 100644
index 0000000..3de8680
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17540384758876388884.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17547321132119983797.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17547321132119983797.bin
new file mode 100644
index 0000000..9b87e6a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17547321132119983797.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17557757898202736160.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17557757898202736160.bin
new file mode 100644
index 0000000..133d7a6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17557757898202736160.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17613422452194830485.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17613422452194830485.bin
new file mode 100644
index 0000000..4526f65
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17613422452194830485.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17617549015880478672.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17617549015880478672.bin
new file mode 100644
index 0000000..934f15d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17617549015880478672.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17661739364750810786.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17661739364750810786.bin
new file mode 100644
index 0000000..263e173
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17661739364750810786.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17696885369015774525.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17696885369015774525.bin
new file mode 100644
index 0000000..2c7df63
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17696885369015774525.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17701872256997425665.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17701872256997425665.bin
new file mode 100644
index 0000000..bf2cb63
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17701872256997425665.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17707996754987920669.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17707996754987920669.bin
new file mode 100644
index 0000000..f090827
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17707996754987920669.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17724600262439791970.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17724600262439791970.bin
new file mode 100644
index 0000000..5fe59db
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17724600262439791970.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17741930369821550680.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17741930369821550680.bin
new file mode 100644
index 0000000..dbddea9
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17741930369821550680.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17792295585508497057.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17792295585508497057.bin
new file mode 100644
index 0000000..621c57d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17792295585508497057.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17807555105284792060.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17807555105284792060.bin
new file mode 100644
index 0000000..36a23f0
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17807555105284792060.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17986253032725764827.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17986253032725764827.bin
new file mode 100644
index 0000000..4c80a59
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17986253032725764827.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.17998948064626831739.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.17998948064626831739.bin
new file mode 100644
index 0000000..87c850b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.17998948064626831739.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.18016443855650646498.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.18016443855650646498.bin
new file mode 100644
index 0000000..7590346
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.18016443855650646498.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.18048927047726097126.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.18048927047726097126.bin
new file mode 100644
index 0000000..a1045a1
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.18048927047726097126.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.18063173879318671919.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.18063173879318671919.bin
new file mode 100644
index 0000000..de7f2e6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.18063173879318671919.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.18132524175804122004.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.18132524175804122004.bin
new file mode 100644
index 0000000..151c8eb
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.18132524175804122004.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.18169800317578718557.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.18169800317578718557.bin
new file mode 100644
index 0000000..5e3548f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.18169800317578718557.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.18232661073919066265.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.18232661073919066265.bin
new file mode 100644
index 0000000..8b43ea6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.18232661073919066265.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.18255834500943036769.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.18255834500943036769.bin
new file mode 100644
index 0000000..dd77be5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.18255834500943036769.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.18266666495466432220.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.18266666495466432220.bin
new file mode 100644
index 0000000..98b2e5c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.18266666495466432220.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.18375574386254795987.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.18375574386254795987.bin
new file mode 100644
index 0000000..7582f3c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.18375574386254795987.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.18391395525380228165.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.18391395525380228165.bin
new file mode 100644
index 0000000..4e44872
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.18391395525380228165.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.18397226621308013042.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.18397226621308013042.bin
new file mode 100644
index 0000000..e37bc3f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.18397226621308013042.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.18755738257883875.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.18755738257883875.bin
new file mode 100644
index 0000000..94fed20
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.18755738257883875.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1928293452725324866.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1928293452725324866.bin
new file mode 100644
index 0000000..d135337
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1928293452725324866.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1936432102197506390.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1936432102197506390.bin
new file mode 100644
index 0000000..d228e7f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1936432102197506390.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.1990053809936248450.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.1990053809936248450.bin
new file mode 100644
index 0000000..18f40f7
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.1990053809936248450.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2027703828861302684.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2027703828861302684.bin
new file mode 100644
index 0000000..147c02a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2027703828861302684.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.212219147091687617.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.212219147091687617.bin
new file mode 100644
index 0000000..ef13cc1
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.212219147091687617.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2152889732115087441.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2152889732115087441.bin
new file mode 100644
index 0000000..501310d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2152889732115087441.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.216457176383865358.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.216457176383865358.bin
new file mode 100644
index 0000000..9b2f7e8
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.216457176383865358.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2240049362618089459.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2240049362618089459.bin
new file mode 100644
index 0000000..874bd9e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2240049362618089459.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2307436573390925099.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2307436573390925099.bin
new file mode 100644
index 0000000..c120bdf
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2307436573390925099.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2313677203008364520.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2313677203008364520.bin
new file mode 100644
index 0000000..7806420
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2313677203008364520.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.236915854650365330.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.236915854650365330.bin
new file mode 100644
index 0000000..f6928ae
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.236915854650365330.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2394528942117922419.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2394528942117922419.bin
new file mode 100644
index 0000000..a8638c2
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2394528942117922419.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2413796706176055860.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2413796706176055860.bin
new file mode 100644
index 0000000..6caef83
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2413796706176055860.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2460040447535057550.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2460040447535057550.bin
new file mode 100644
index 0000000..0ff3c90
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2460040447535057550.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2480875953640570249.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2480875953640570249.bin
new file mode 100644
index 0000000..e29d227
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2480875953640570249.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2527216998239295833.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2527216998239295833.bin
new file mode 100644
index 0000000..e8d69bc
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2527216998239295833.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2541693875114751894.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2541693875114751894.bin
new file mode 100644
index 0000000..22ae7b9
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2541693875114751894.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2544717604075640181.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2544717604075640181.bin
new file mode 100644
index 0000000..cf21cf0
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2544717604075640181.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2557834332224711296.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2557834332224711296.bin
new file mode 100644
index 0000000..fbd8414
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2557834332224711296.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.258f5d2d7a8677c9fac.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.258f5d2d7a8677c9fac.bin
new file mode 100644
index 0000000..000f3ac
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.258f5d2d7a8677c9fac.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2673545329900462347.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2673545329900462347.bin
new file mode 100644
index 0000000..f80a90d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2673545329900462347.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2796810502847829071.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2796810502847829071.bin
new file mode 100644
index 0000000..7f42aac
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2796810502847829071.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2826272846341584836.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2826272846341584836.bin
new file mode 100644
index 0000000..766a69f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2826272846341584836.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2861014807371483795.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2861014807371483795.bin
new file mode 100644
index 0000000..3c1194a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2861014807371483795.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2949493553066767632.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2949493553066767632.bin
new file mode 100644
index 0000000..cd6bdc8
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2949493553066767632.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2961173759902739226.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2961173759902739226.bin
new file mode 100644
index 0000000..a4f8ba5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2961173759902739226.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2979609226092629843.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2979609226092629843.bin
new file mode 100644
index 0000000..754b465
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2979609226092629843.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.2984998126444994396.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.2984998126444994396.bin
new file mode 100644
index 0000000..512e83e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.2984998126444994396.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.298518078319368406.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.298518078319368406.bin
new file mode 100644
index 0000000..cf52dd0
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.298518078319368406.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3014389673921418933.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3014389673921418933.bin
new file mode 100644
index 0000000..1eb5f72
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3014389673921418933.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3014957178821188133.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3014957178821188133.bin
new file mode 100644
index 0000000..e18ba54
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3014957178821188133.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.311760158055179110.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.311760158055179110.bin
new file mode 100644
index 0000000..1b7d3fa
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.311760158055179110.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.312526042889499214.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.312526042889499214.bin
new file mode 100644
index 0000000..a58db6f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.312526042889499214.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3128225394297022352.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3128225394297022352.bin
new file mode 100644
index 0000000..e63a043
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3128225394297022352.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3166330578799441096.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3166330578799441096.bin
new file mode 100644
index 0000000..307a41b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3166330578799441096.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3312843528368099392.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3312843528368099392.bin
new file mode 100644
index 0000000..4e7fa5a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3312843528368099392.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3313106910834900992.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3313106910834900992.bin
new file mode 100644
index 0000000..58e4d3d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3313106910834900992.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3347571752696288062.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3347571752696288062.bin
new file mode 100644
index 0000000..fb4772c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3347571752696288062.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.337084820905431502.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.337084820905431502.bin
new file mode 100644
index 0000000..cfdf35e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.337084820905431502.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3424182835622235744.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3424182835622235744.bin
new file mode 100644
index 0000000..b273860
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3424182835622235744.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3429739447374499365.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3429739447374499365.bin
new file mode 100644
index 0000000..f73040b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3429739447374499365.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3475973011125062162.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3475973011125062162.bin
new file mode 100644
index 0000000..4955fc6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3475973011125062162.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3513484021335611760.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3513484021335611760.bin
new file mode 100644
index 0000000..9204e40
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3513484021335611760.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3651484916918355509.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3651484916918355509.bin
new file mode 100644
index 0000000..5b03754
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3651484916918355509.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3705955763815240136.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3705955763815240136.bin
new file mode 100644
index 0000000..b875300
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3705955763815240136.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3710356333193877990.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3710356333193877990.bin
new file mode 100644
index 0000000..9c2dd3e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3710356333193877990.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3804365713197001559.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3804365713197001559.bin
new file mode 100644
index 0000000..c435a32
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3804365713197001559.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3808040219747534364.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3808040219747534364.bin
new file mode 100644
index 0000000..00f4c70
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3808040219747534364.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3919273420495969490.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3919273420495969490.bin
new file mode 100644
index 0000000..2883298
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3919273420495969490.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.3932516291045283953.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.3932516291045283953.bin
new file mode 100644
index 0000000..084515b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.3932516291045283953.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4039761311411713437.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4039761311411713437.bin
new file mode 100644
index 0000000..932d492
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4039761311411713437.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4144209600586588395.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4144209600586588395.bin
new file mode 100644
index 0000000..d9f29e1
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4144209600586588395.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4191645962065905074.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4191645962065905074.bin
new file mode 100644
index 0000000..3803518
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4191645962065905074.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.41955172152373455.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.41955172152373455.bin
new file mode 100644
index 0000000..bbea907
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.41955172152373455.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4218531966621319110.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4218531966621319110.bin
new file mode 100644
index 0000000..7fb0b93
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4218531966621319110.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4241179859159128002.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4241179859159128002.bin
new file mode 100644
index 0000000..da7480b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4241179859159128002.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4249735697352582921.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4249735697352582921.bin
new file mode 100644
index 0000000..d9e1709
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4249735697352582921.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.42758048396447472.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.42758048396447472.bin
new file mode 100644
index 0000000..f877c0f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.42758048396447472.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4293087073316750727.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4293087073316750727.bin
new file mode 100644
index 0000000..01a05bb
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4293087073316750727.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4296382558190650032.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4296382558190650032.bin
new file mode 100644
index 0000000..1938d51
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4296382558190650032.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4325811598920991662.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4325811598920991662.bin
new file mode 100644
index 0000000..70399d0
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4325811598920991662.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4355816358040777333.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4355816358040777333.bin
new file mode 100644
index 0000000..aaa1e1c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4355816358040777333.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4386518903704075196.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4386518903704075196.bin
new file mode 100644
index 0000000..e33c265
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4386518903704075196.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4389944769660451751.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4389944769660451751.bin
new file mode 100644
index 0000000..a58dae8
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4389944769660451751.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4476635384469125163.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4476635384469125163.bin
new file mode 100644
index 0000000..7607971
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4476635384469125163.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4477750639374584176.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4477750639374584176.bin
new file mode 100644
index 0000000..10b42c1
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4477750639374584176.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4542241670017875095.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4542241670017875095.bin
new file mode 100644
index 0000000..a760a18
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4542241670017875095.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4543184149485589730.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4543184149485589730.bin
new file mode 100644
index 0000000..5d505a6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4543184149485589730.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4611628590351112109.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4611628590351112109.bin
new file mode 100644
index 0000000..df5c6fc
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4611628590351112109.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4619114321623197837.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4619114321623197837.bin
new file mode 100644
index 0000000..699654e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4619114321623197837.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4642615169580265307.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4642615169580265307.bin
new file mode 100644
index 0000000..8c9aaa1
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4642615169580265307.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4649155104014981666.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4649155104014981666.bin
new file mode 100644
index 0000000..b7a2682
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4649155104014981666.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4667273675775908022.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4667273675775908022.bin
new file mode 100644
index 0000000..af4e655
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4667273675775908022.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4674721369255096757.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4674721369255096757.bin
new file mode 100644
index 0000000..69a74b1
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4674721369255096757.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.478596588601994286.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.478596588601994286.bin
new file mode 100644
index 0000000..4db3ee5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.478596588601994286.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4786048730765981951.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4786048730765981951.bin
new file mode 100644
index 0000000..88ccb94
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4786048730765981951.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4865792012087462837.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4865792012087462837.bin
new file mode 100644
index 0000000..1d72b7a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4865792012087462837.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4908233617135292311.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4908233617135292311.bin
new file mode 100644
index 0000000..d644deb
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4908233617135292311.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4933016559055960857.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4933016559055960857.bin
new file mode 100644
index 0000000..68587dc
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4933016559055960857.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4938077362928474541.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4938077362928474541.bin
new file mode 100644
index 0000000..ce38f59
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4938077362928474541.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4962843938424694078.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4962843938424694078.bin
new file mode 100644
index 0000000..296b447
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4962843938424694078.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.4989740266270094088.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.4989740266270094088.bin
new file mode 100644
index 0000000..ca2c9eb
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.4989740266270094088.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5048545998314720549.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5048545998314720549.bin
new file mode 100644
index 0000000..9122198
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5048545998314720549.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5073427320423541646.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5073427320423541646.bin
new file mode 100644
index 0000000..c9f129b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5073427320423541646.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5217191805520860833.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5217191805520860833.bin
new file mode 100644
index 0000000..770beb6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5217191805520860833.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5286900913693115812.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5286900913693115812.bin
new file mode 100644
index 0000000..aad6193
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5286900913693115812.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.529945189212952632.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.529945189212952632.bin
new file mode 100644
index 0000000..e109784
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.529945189212952632.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5301156670834358897.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5301156670834358897.bin
new file mode 100644
index 0000000..e443ee0
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5301156670834358897.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5334486403455255697.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5334486403455255697.bin
new file mode 100644
index 0000000..99f1c9e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5334486403455255697.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5343060974765799244.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5343060974765799244.bin
new file mode 100644
index 0000000..7b75bc3
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5343060974765799244.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5362217997294593162.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5362217997294593162.bin
new file mode 100644
index 0000000..19c633e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5362217997294593162.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5380983266882457468.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5380983266882457468.bin
new file mode 100644
index 0000000..fba3d49
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5380983266882457468.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5402136492075007865.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5402136492075007865.bin
new file mode 100644
index 0000000..f39ade2
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5402136492075007865.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5405917007365442721.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5405917007365442721.bin
new file mode 100644
index 0000000..41d681a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5405917007365442721.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5443290700947309763.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5443290700947309763.bin
new file mode 100644
index 0000000..5f93bad
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5443290700947309763.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5481698826224529923.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5481698826224529923.bin
new file mode 100644
index 0000000..15c6f6c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5481698826224529923.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.556291143183377611.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.556291143183377611.bin
new file mode 100644
index 0000000..ae3c4ec
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.556291143183377611.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5586540596524415926.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5586540596524415926.bin
new file mode 100644
index 0000000..52e9788
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5586540596524415926.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5594608350705202011.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5594608350705202011.bin
new file mode 100644
index 0000000..57a73bf
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5594608350705202011.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5603812265702676658.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5603812265702676658.bin
new file mode 100644
index 0000000..e51c631
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5603812265702676658.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5604960497954348281.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5604960497954348281.bin
new file mode 100644
index 0000000..b27aa89
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5604960497954348281.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5659375494835764612.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5659375494835764612.bin
new file mode 100644
index 0000000..eb48c09
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5659375494835764612.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5663356738021631797.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5663356738021631797.bin
new file mode 100644
index 0000000..392d49f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5663356738021631797.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5707260217432481891.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5707260217432481891.bin
new file mode 100644
index 0000000..f40068b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5707260217432481891.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5716774200892842818.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5716774200892842818.bin
new file mode 100644
index 0000000..d2f9d66
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5716774200892842818.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5830259757122116254.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5830259757122116254.bin
new file mode 100644
index 0000000..9d719e7
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5830259757122116254.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5837042724063548647.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5837042724063548647.bin
new file mode 100644
index 0000000..4f36ad5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5837042724063548647.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5871341296679804474.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5871341296679804474.bin
new file mode 100644
index 0000000..864a164
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5871341296679804474.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5874804588086026422.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5874804588086026422.bin
new file mode 100644
index 0000000..c1cbe1a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5874804588086026422.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5945093118224632448.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5945093118224632448.bin
new file mode 100644
index 0000000..eb91412
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5945093118224632448.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.5947361360692291135.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.5947361360692291135.bin
new file mode 100644
index 0000000..b06edb6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.5947361360692291135.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.609922810419403201.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.609922810419403201.bin
new file mode 100644
index 0000000..5d797a0
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.609922810419403201.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6128290413270962414.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6128290413270962414.bin
new file mode 100644
index 0000000..9188958
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6128290413270962414.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6148392331334603742.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6148392331334603742.bin
new file mode 100644
index 0000000..049fc34
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6148392331334603742.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6167545766526183896.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6167545766526183896.bin
new file mode 100644
index 0000000..4c8fb20
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6167545766526183896.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6183457994786268025.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6183457994786268025.bin
new file mode 100644
index 0000000..6563fcf
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6183457994786268025.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6246254988516583397.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6246254988516583397.bin
new file mode 100644
index 0000000..6104750
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6246254988516583397.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6256301128162194777.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6256301128162194777.bin
new file mode 100644
index 0000000..2631566
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6256301128162194777.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6270507649448991536.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6270507649448991536.bin
new file mode 100644
index 0000000..20bac75
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6270507649448991536.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6286086053383889700.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6286086053383889700.bin
new file mode 100644
index 0000000..c22048e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6286086053383889700.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6299110277522314252.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6299110277522314252.bin
new file mode 100644
index 0000000..99c0b73
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6299110277522314252.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6303189164313223915.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6303189164313223915.bin
new file mode 100644
index 0000000..6173e49
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6303189164313223915.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6317949579808964373.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6317949579808964373.bin
new file mode 100644
index 0000000..9cd72d5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6317949579808964373.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6349375420330136752.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6349375420330136752.bin
new file mode 100644
index 0000000..003e85d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6349375420330136752.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6373804566315576832.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6373804566315576832.bin
new file mode 100644
index 0000000..b823a50
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6373804566315576832.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.645143445693394463.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.645143445693394463.bin
new file mode 100644
index 0000000..fb1893b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.645143445693394463.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6473429051855997343.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6473429051855997343.bin
new file mode 100644
index 0000000..c80ef15
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6473429051855997343.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6483112328197560295.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6483112328197560295.bin
new file mode 100644
index 0000000..f045d15
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6483112328197560295.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6514385179381560358.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6514385179381560358.bin
new file mode 100644
index 0000000..40905e9
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6514385179381560358.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6556857782474775662.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6556857782474775662.bin
new file mode 100644
index 0000000..d74a00c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6556857782474775662.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6560990876465882110.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6560990876465882110.bin
new file mode 100644
index 0000000..8b99100
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6560990876465882110.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6575881671932139607.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6575881671932139607.bin
new file mode 100644
index 0000000..2a09757
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6575881671932139607.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6628510697901476085.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6628510697901476085.bin
new file mode 100644
index 0000000..2bae399
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6628510697901476085.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6647381434165417392.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6647381434165417392.bin
new file mode 100644
index 0000000..e194c98
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6647381434165417392.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6673499158063844346.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6673499158063844346.bin
new file mode 100644
index 0000000..17405e6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6673499158063844346.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6711490333833806543.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6711490333833806543.bin
new file mode 100644
index 0000000..711ec22
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6711490333833806543.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6784046683896858205.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6784046683896858205.bin
new file mode 100644
index 0000000..f9be8bf
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6784046683896858205.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6825348629043782682.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6825348629043782682.bin
new file mode 100644
index 0000000..45d8e53
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6825348629043782682.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6845537131354319507.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6845537131354319507.bin
new file mode 100644
index 0000000..6625706
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6845537131354319507.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6904555378333487352.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6904555378333487352.bin
new file mode 100644
index 0000000..6883118
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6904555378333487352.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.691322331639227581.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.691322331639227581.bin
new file mode 100644
index 0000000..0ffa6da
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.691322331639227581.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6930647023716087459.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6930647023716087459.bin
new file mode 100644
index 0000000..e00f1a7
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6930647023716087459.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.6934963550557282434.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.6934963550557282434.bin
new file mode 100644
index 0000000..5c2551c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.6934963550557282434.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.706496323736965313.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.706496323736965313.bin
new file mode 100644
index 0000000..6b94937
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.706496323736965313.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7139546534683738103.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7139546534683738103.bin
new file mode 100644
index 0000000..7ad9a91
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7139546534683738103.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7140789886103116970.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7140789886103116970.bin
new file mode 100644
index 0000000..ec6179d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7140789886103116970.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7165460482174603572.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7165460482174603572.bin
new file mode 100644
index 0000000..78ef666
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7165460482174603572.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7169103668165722696.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7169103668165722696.bin
new file mode 100644
index 0000000..62e9930
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7169103668165722696.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7204317303965803185.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7204317303965803185.bin
new file mode 100644
index 0000000..f1382d2
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7204317303965803185.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7215377677155798562.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7215377677155798562.bin
new file mode 100644
index 0000000..a77c697
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7215377677155798562.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7239483366845560219.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7239483366845560219.bin
new file mode 100644
index 0000000..ff19612
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7239483366845560219.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7247230710855987371.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7247230710855987371.bin
new file mode 100644
index 0000000..1570484
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7247230710855987371.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7307410286450529411.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7307410286450529411.bin
new file mode 100644
index 0000000..a5d3175
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7307410286450529411.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7315528097243481803.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7315528097243481803.bin
new file mode 100644
index 0000000..d173b18
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7315528097243481803.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7346079841998135763.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7346079841998135763.bin
new file mode 100644
index 0000000..19f5a99
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7346079841998135763.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7346234843398406674.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7346234843398406674.bin
new file mode 100644
index 0000000..29efafd
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7346234843398406674.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7417584038269759849.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7417584038269759849.bin
new file mode 100644
index 0000000..a37a195
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7417584038269759849.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7455508748687829568.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7455508748687829568.bin
new file mode 100644
index 0000000..cdc500d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7455508748687829568.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7465643599440370514.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7465643599440370514.bin
new file mode 100644
index 0000000..999df69
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7465643599440370514.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.748961855245476356.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.748961855245476356.bin
new file mode 100644
index 0000000..dfa318c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.748961855245476356.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7516591636737017402.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7516591636737017402.bin
new file mode 100644
index 0000000..64e4ce7
--- /dev/null
+++ b/rustls-0.21.2/fuzz/corpus/message/Handshake.7516591636737017402.bin
@@ -0,0 +1,23 @@
+>+ssl.com�wowmoarhost610.badssl.com�wowmoarhost611.badssl.com�wowmoarhost612.badssl.com�wowmoarhost613.badssl.com�wowmoarhost614.badssl.com�wowmoarhost615.badssl.com�wowmoarhost616.badssl.com�wowmoarhost617.badssl.com�wowmoarhost618.badssl.com�wowmoarhost619.badssl.com�wowmoarhost62.badssl.com�wowmoarhost620.badssl.com�wowmoarhost621.badssl.com�wowmoarhost622.badssl.com�wowmoarhost623.badssl.com�wowmoarhost624.badssl.com�wowmoarhost625.badssl.com�wowmoarhost626.badss [...]
*�H��
� ��B9ڔr5�3�"8�S͐|hhZ1�Uܦ�"��xտ�y�9��B𦩘���H�a�q��*lP�1,��hd�{gO��pύ��<��h��:;�/5��c�@�ny<�8��B
+ȑ���ԋ�����UDF�P���np+�-d�9>�("�$�dUid
+����7�
+JoS ����L1L��Gt�1���@[���vl�$?��' ���\C� �����]����Z҂P�p�Ȑm� 0�0��+.n��u6l�nۣ|�0
*�H��
0��10 UGB10UGreater Manchester10USalford10U
+COMODO CA Limited1+0)U"COMODO RSA Certification Authority0
140212000000Z
290211235959Z0��10 UGB10UGreater Manchester10USalford10U
+COMODO CA Limited1604U-COMODO RSA Domain Validation Secure Server CA0�"0
*�H��
� 0�
+� ���Y��85�,���I�d�bE:�����ġmw�����>���I���Kی ���^e�>
�L°�E^R/4�H$d�A� ���gޞ�z�S�;|���Uo�G
+|��"������W�p`���-�������{��*�(!�Mo�O%��z5�&�F�ЬY5��N�CP?Y�lQ!�X��uPx>L���k���;��R��$n�'QE�p�%C�
�J���~��m�.'s]�E0���A��D�ڹ���兂� ��e0�a0U#0���~=���<����8���22�0U��j:�Zؐ�Vs�C�:(��0U��0U�0� 0U%0++0U 00U 0g�0LUE0C0A�?�=�;http://crl.comodoca.com/COMODORSACertificationAuthority.crl0q+e0c0;+0�/http://crt.comodoca.com/COMODORSAAddTrustCA.crt0$+0�http://ocsp.comodoca.com0
*�H��
� N+vO�b6��w�'��D���>��ff>�I�5���ݕ��5�6u���Pr|��w���� ʣg.V{�D�B��]
PF�Yl����:B���K4{';�o$;r�ctX<l?O��Ȩ��7�E�l��^�&�뭣���
f5s2`N�݊a,nRwh��uQ t����8C(����]G'`��8;lr���B��o�E� ����ٵ�sx��#���l����T|����U��I^�d��>���iͿ�H�b��FW�3���c����J����ϏR�
�>��Q���t���t�.S��z����&��Ҡ�7[(;1�W-Z��y�^ f����9���C��������$=�����`��[CG�K՚_�ԇ����07����B攨���$Q�Β��P�@{�Y�ݬ�w�4��ؐ�-�7�`�g ��BE��h��f$7�)�F%����Ԇ(jDp&#b���o���p�Vw�x��%��Pr� :���c4��q� ��o�� x0�t0�\�'f�V�I��p����"0
*�H��
0o10 USE10U
+AddTrust AB1&0$UAddTrust External TTP Network1"0 UAddTrust External CA Root0
000530104838Z
200530104838Z0��10 UGB10UGreater Manchester10USalford10U
+COMODO CA Limited1+0)U"COMODO RSA Certification Authority0�"0
*�H��
� 0�
+� ��T��
+V��
$���Dgt�+7�}#p q�S���*�KV��pr�a�K�=�a�����>
+�>\���4z�k眳���zv�q����
��l�߰��~��Ħ/O���gCr� ։�k,�폘�~��n�ب�$�Ckb�U����l������li��xH0Eխ�
<E`�2�Q'�g��.�k�F�� ��e�H��N��F7���́HCgNr*�\�L(�\"{������Q�� FNm>����|3WA<�Q��\�,c�W�?��]ě�E��Z$���V=�o��IX�������7����:��CB���ٻ�`��(V��
+�q���=���H�<���
"L���V;�Ӣ�[��"R���i�Le�-pt�g)iR���PjUF���(ap�â�,!�G�(�Ev��'�ծ��P�k�L�q0������@���B��3:.\A�c�qk+즊�1\:jG��yY� ��j��r�WJ�K����LA��=^(��̿�QڧG�S ���0��0U#0����z4�&���&T���$�T0U��~=���<����8���22�0U��0U�0�0U
+00U 0DU=0;09�7�5�3http://crl.usertrust.com/AddTrustExternalCARoot.crl05+)0'0%+0�http://ocsp.usertrust.com0
*�H��
� d���_����)W
�Z���>�vn�Rp�<�M
tj́�%�à*]L����m�T u��']�y7@w����;���4~+�yӫWE�(����P���߅Wi}��R�s����nf��-���Y�LΣ�qL|G;���l�>\��.�����HM��ȩs��{#�ޢ�MU�zaE�h�^@k#�yzk��oF�{�=Kؓ�YZ�A$��`XG��nF���_���ظ�@�͗9�����܇�Ѧ��;o8o :0�60��0
*�H��
0o10 USE10U
+AddTrust AB1&0$UAddTrust External TTP Network1"0 UAddTrust External CA Root0
000530104838Z
200530104838Z0o10 USE10U
+AddTrust AB1&0$UAddTrust External TTP Network1"0 UAddTrust External CA Root0�"0
*�H��
� 0�
+� ��3�� -9�N[��l͵�#��ޛ3��)L}���J������mPZ֗)�Z��Iz�.���ʿ78->�A�pV��O?�2�t�ȐT��_x��@<�a�^����jP�ךN���q��q�P`
+��8���i&��L�O#�:O���Ο�io��B�kD�ǭ�mA_rZq7�ye�Y��7� /
r��8r��E�]*}������D��+�C %�a�ijX#��3�VuY��)�F�
++e��Bo��{���]S�4Z' ���0��0U���z4�&���&T���$�T0U0U�0�0��U#��0������z4�&���&T���$�T�s�q0o10 USE10U
+AddTrust AB1&0$UAddTrust External TTP Network1"0 UAddTrust External CA Root�0
*�H��
� ����%��#����A��لy��[#6e���w��AlG`�Q��2=���&ǀ��Z���xy�!��L
+�5���Q�Җ��~N�p�9�Q-�����Fu�$���B���pg��5J�+z�QB�zc�满�+�6�
�c~y{�
@�jݏ�����BQ�E���b!h C<��|�$ة�s�?V18�q�����.ጘ��1�DL�sIv`����k.��LZ�y
+.՞c&U��Z{мǏN�
\ No newline at end of file
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7567177748330669261.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7567177748330669261.bin
new file mode 100644
index 0000000..e56c456
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7567177748330669261.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.761091977985466479.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.761091977985466479.bin
new file mode 100644
index 0000000..801cce9
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.761091977985466479.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7656268277965224869.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7656268277965224869.bin
new file mode 100644
index 0000000..59ff729
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7656268277965224869.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7690239762888976874.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7690239762888976874.bin
new file mode 100644
index 0000000..d8fb20e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7690239762888976874.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7719692407614242099.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7719692407614242099.bin
new file mode 100644
index 0000000..42634ec
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7719692407614242099.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7720957275282168636.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7720957275282168636.bin
new file mode 100644
index 0000000..4f9b588
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7720957275282168636.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7794784808116194704.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7794784808116194704.bin
new file mode 100644
index 0000000..ccee8ff
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7794784808116194704.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7813730008683262876.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7813730008683262876.bin
new file mode 100644
index 0000000..ddc12ad
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7813730008683262876.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7885327095706217153.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7885327095706217153.bin
new file mode 100644
index 0000000..d1351bf
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7885327095706217153.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7906248215225931460.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7906248215225931460.bin
new file mode 100644
index 0000000..23dbebb
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7906248215225931460.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7948817873499846774.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7948817873499846774.bin
new file mode 100644
index 0000000..91599ed
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7948817873499846774.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.7952341792523028764.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.7952341792523028764.bin
new file mode 100644
index 0000000..e743d0f
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.7952341792523028764.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8013259530313775093.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8013259530313775093.bin
new file mode 100644
index 0000000..ebdd0c6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8013259530313775093.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8075604299203105949.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8075604299203105949.bin
new file mode 100644
index 0000000..1ec8cad
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8075604299203105949.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8172081604114400514.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8172081604114400514.bin
new file mode 100644
index 0000000..c7d64ef
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8172081604114400514.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8189830343061708537.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8189830343061708537.bin
new file mode 100644
index 0000000..884ff33
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8189830343061708537.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8221216873901994192.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8221216873901994192.bin
new file mode 100644
index 0000000..b4eb542
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8221216873901994192.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8248374086501392768.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8248374086501392768.bin
new file mode 100644
index 0000000..ebe46f2
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8248374086501392768.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8392255840240310515.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8392255840240310515.bin
new file mode 100644
index 0000000..83a115b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8392255840240310515.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8396327429954042116.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8396327429954042116.bin
new file mode 100644
index 0000000..2c3fbae
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8396327429954042116.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8406587813025302152.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8406587813025302152.bin
new file mode 100644
index 0000000..63093c2
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8406587813025302152.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8407774444968010290.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8407774444968010290.bin
new file mode 100644
index 0000000..635613c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8407774444968010290.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8440398803691469570.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8440398803691469570.bin
new file mode 100644
index 0000000..7040726
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8440398803691469570.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8485098093571729014.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8485098093571729014.bin
new file mode 100644
index 0000000..9ae652a
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8485098093571729014.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.849776811515966891.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.849776811515966891.bin
new file mode 100644
index 0000000..a1d7e92
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.849776811515966891.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8560931306029320922.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8560931306029320922.bin
new file mode 100644
index 0000000..ed27ae6
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8560931306029320922.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.864255644696956933.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.864255644696956933.bin
new file mode 100644
index 0000000..2e9aca4
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.864255644696956933.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8693230236911388473.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8693230236911388473.bin
new file mode 100644
index 0000000..081c7c2
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8693230236911388473.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8729890745367494493.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8729890745367494493.bin
new file mode 100644
index 0000000..521fd90
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8729890745367494493.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8860398728547306665.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8860398728547306665.bin
new file mode 100644
index 0000000..2fb8bbd
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8860398728547306665.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8867642025619914951.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8867642025619914951.bin
new file mode 100644
index 0000000..6696aef
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8867642025619914951.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8904084412973289274.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8904084412973289274.bin
new file mode 100644
index 0000000..ab67ef2
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8904084412973289274.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8969192033003128338.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8969192033003128338.bin
new file mode 100644
index 0000000..0266fae
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8969192033003128338.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8971115354707129304.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8971115354707129304.bin
new file mode 100644
index 0000000..78a59da
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8971115354707129304.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8984984283856126818.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8984984283856126818.bin
new file mode 100644
index 0000000..65c8b2b
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8984984283856126818.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.8991433515362915263.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.8991433515362915263.bin
new file mode 100644
index 0000000..689365d
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.8991433515362915263.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9069047612017088350.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9069047612017088350.bin
new file mode 100644
index 0000000..2e5f711
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9069047612017088350.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9089706207584821560.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9089706207584821560.bin
new file mode 100644
index 0000000..4338eae
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9089706207584821560.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9240147047837819581.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9240147047837819581.bin
new file mode 100644
index 0000000..69c7f61
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9240147047837819581.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9243195678680727758.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9243195678680727758.bin
new file mode 100644
index 0000000..c8f6f93
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9243195678680727758.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9252077617801921335.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9252077617801921335.bin
new file mode 100644
index 0000000..48e0b11
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9252077617801921335.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9297844479670622147.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9297844479670622147.bin
new file mode 100644
index 0000000..37d9913
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9297844479670622147.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9311845630904179522.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9311845630904179522.bin
new file mode 100644
index 0000000..7956eda
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9311845630904179522.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9312662581830733323.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9312662581830733323.bin
new file mode 100644
index 0000000..2909eac
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9312662581830733323.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9317589580822515162.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9317589580822515162.bin
new file mode 100644
index 0000000..477bd71
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9317589580822515162.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9429010528239790739.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9429010528239790739.bin
new file mode 100644
index 0000000..a9aeede
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9429010528239790739.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9454286992762375905.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9454286992762375905.bin
new file mode 100644
index 0000000..16699e8
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9454286992762375905.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9525167095567049454.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9525167095567049454.bin
new file mode 100644
index 0000000..c0e9e57
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9525167095567049454.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9550899685530869009.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9550899685530869009.bin
new file mode 100644
index 0000000..e4a673e
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9550899685530869009.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9745946828873281910.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9745946828873281910.bin
new file mode 100644
index 0000000..5b4e6cc
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9745946828873281910.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9818098016546753604.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9818098016546753604.bin
new file mode 100644
index 0000000..a0aec93
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9818098016546753604.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9850803183111560401.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9850803183111560401.bin
new file mode 100644
index 0000000..d12d790
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9850803183111560401.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9890336611007943713.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9890336611007943713.bin
new file mode 100644
index 0000000..37efbea
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9890336611007943713.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9921068590203068234.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9921068590203068234.bin
new file mode 100644
index 0000000..84f91bb
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9921068590203068234.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9967963985197802467.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9967963985197802467.bin
new file mode 100644
index 0000000..b7bb5c5
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9967963985197802467.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/message/Handshake.9996393024757669485.bin b/rustls-0.21.2/fuzz/corpus/message/Handshake.9996393024757669485.bin
new file mode 100644
index 0000000..9b9202c
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/message/Handshake.9996393024757669485.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/server/tls12-client.bin b/rustls-0.21.2/fuzz/corpus/server/tls12-client.bin
new file mode 100644
index 0000000..23717fb
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/server/tls12-client.bin differ
diff --git a/rustls-0.21.2/fuzz/corpus/server/tls13-client.bin b/rustls-0.21.2/fuzz/corpus/server/tls13-client.bin
new file mode 100644
index 0000000..e276402
Binary files /dev/null and b/rustls-0.21.2/fuzz/corpus/server/tls13-client.bin differ
diff --git a/rustls-0.21.2/fuzz/fuzzers/client.rs b/rustls-0.21.2/fuzz/fuzzers/client.rs
new file mode 100644
index 0000000..42c931d
--- /dev/null
+++ b/rustls-0.21.2/fuzz/fuzzers/client.rs
@@ -0,0 +1,23 @@
+#![no_main]
+#[macro_use]
+extern crate libfuzzer_sys;
+extern crate rustls;
+extern crate webpki;
+
+use rustls::{ClientConfig, ClientConnection, RootCertStore};
+use std::io;
+use std::sync::Arc;
+
+fuzz_target!(|data: &[u8]| {
+ let root_store = RootCertStore::empty();
+ let config = Arc::new(
+ ClientConfig::builder()
+ .with_safe_defaults()
+ .with_root_certificates(root_store)
+ .with_no_client_auth(),
+ );
+ let example_com = "example.com".try_into().unwrap();
+ let mut client = ClientConnection::new(config, example_com).unwrap();
+ let _ = client.read_tls(&mut io::Cursor::new(data));
+ let _ = client.process_new_packets();
+});
diff --git a/rustls-0.21.2/fuzz/fuzzers/deframer.rs b/rustls-0.21.2/fuzz/fuzzers/deframer.rs
new file mode 100644
index 0000000..4923e7b
--- /dev/null
+++ b/rustls-0.21.2/fuzz/fuzzers/deframer.rs
@@ -0,0 +1,25 @@
+#![no_main]
+#[macro_use]
+extern crate libfuzzer_sys;
+extern crate rustls;
+
+use rustls::internal::msgs::deframer;
+use rustls::internal::msgs::message::Message;
+use rustls::internal::record_layer::RecordLayer;
+use std::io;
+
+fuzz_target!(|data: &[u8]| {
+ let mut dfm = deframer::MessageDeframer::default();
+ if dfm
+ .read(&mut io::Cursor::new(data))
+ .is_err()
+ {
+ return;
+ }
+ dfm.has_pending();
+
+ let mut rl = RecordLayer::new();
+ while let Ok(Some(decrypted)) = dfm.pop(&mut rl) {
+ Message::try_from(decrypted.message).ok();
+ }
+});
diff --git a/rustls-0.21.2/fuzz/fuzzers/fragment.rs b/rustls-0.21.2/fuzz/fuzzers/fragment.rs
new file mode 100644
index 0000000..e7d9f7b
--- /dev/null
+++ b/rustls-0.21.2/fuzz/fuzzers/fragment.rs
@@ -0,0 +1,34 @@
+#![no_main]
+#[macro_use]
+extern crate libfuzzer_sys;
+extern crate rustls;
+
+use rustls::internal::msgs::base::Payload;
+use rustls::internal::msgs::codec::Reader;
+use rustls::internal::msgs::fragmenter::MessageFragmenter;
+use rustls::internal::msgs::message::{Message, OpaqueMessage, PlainMessage};
+
+fuzz_target!(|data: &[u8]| {
+ let mut rdr = Reader::init(data);
+ let msg = match OpaqueMessage::read(&mut rdr) {
+ Ok(msg) => msg,
+ Err(_) => return,
+ };
+
+ let msg = match Message::try_from(msg.into_plain_message()) {
+ Ok(msg) => msg,
+ Err(_) => return,
+ };
+
+ let mut frg = MessageFragmenter::default();
+ frg.set_max_fragment_size(Some(32))
+ .unwrap();
+ for msg in frg.fragment_message(&PlainMessage::from(msg)) {
+ Message::try_from(PlainMessage {
+ typ: msg.typ,
+ version: msg.version,
+ payload: Payload(msg.payload.to_vec()),
+ })
+ .ok();
+ }
+});
diff --git a/rustls-0.21.2/fuzz/fuzzers/message.rs b/rustls-0.21.2/fuzz/fuzzers/message.rs
new file mode 100644
index 0000000..5ed92e9
--- /dev/null
+++ b/rustls-0.21.2/fuzz/fuzzers/message.rs
@@ -0,0 +1,23 @@
+#![no_main]
+#[macro_use]
+extern crate libfuzzer_sys;
+extern crate rustls;
+
+use rustls::internal::msgs::codec::Reader;
+use rustls::internal::msgs::message::{Message, OpaqueMessage, PlainMessage};
+
+fuzz_target!(|data: &[u8]| {
+ let mut rdr = Reader::init(data);
+ if let Ok(m) = OpaqueMessage::read(&mut rdr) {
+ let msg = match Message::try_from(m.into_plain_message()) {
+ Ok(msg) => msg,
+ Err(_) => return,
+ };
+ //println!("msg = {:#?}", m);
+ let enc = PlainMessage::from(msg)
+ .into_unencrypted_opaque()
+ .encode();
+ //println!("data = {:?}", &data[..rdr.used()]);
+ assert_eq!(enc, data[..rdr.used()]);
+ }
+});
diff --git a/rustls-0.21.2/fuzz/fuzzers/persist.rs b/rustls-0.21.2/fuzz/fuzzers/persist.rs
new file mode 100644
index 0000000..52c5872
--- /dev/null
+++ b/rustls-0.21.2/fuzz/fuzzers/persist.rs
@@ -0,0 +1,20 @@
+#![no_main]
+#[macro_use]
+extern crate libfuzzer_sys;
+extern crate rustls;
+
+use rustls::internal::msgs::codec::{Codec, Reader};
+use rustls::internal::msgs::persist;
+
+fn try_type<T>(data: &[u8])
+where
+ T: Codec,
+{
+ let mut rdr = Reader::init(data);
+
+ let _ = T::read(&mut rdr);
+}
+
+fuzz_target!(|data: &[u8]| {
+ try_type::<persist::ServerSessionValue>(data);
+});
diff --git a/rustls-0.21.2/fuzz/fuzzers/server.rs b/rustls-0.21.2/fuzz/fuzzers/server.rs
new file mode 100644
index 0000000..0fe7c1c
--- /dev/null
+++ b/rustls-0.21.2/fuzz/fuzzers/server.rs
@@ -0,0 +1,33 @@
+#![no_main]
+#[macro_use]
+extern crate libfuzzer_sys;
+extern crate rustls;
+
+use rustls::server::ResolvesServerCert;
+use rustls::{ServerConfig, ServerConnection};
+
+use std::io;
+use std::sync::Arc;
+
+struct Fail;
+
+impl ResolvesServerCert for Fail {
+ fn resolve(
+ &self,
+ _client_hello: rustls::server::ClientHello,
+ ) -> Option<Arc<rustls::sign::CertifiedKey>> {
+ None
+ }
+}
+
+fuzz_target!(|data: &[u8]| {
+ let config = Arc::new(
+ ServerConfig::builder()
+ .with_safe_defaults()
+ .with_no_client_auth()
+ .with_cert_resolver(Arc::new(Fail)),
+ );
+ let mut server = ServerConnection::new(config).unwrap();
+ let _ = server.read_tls(&mut io::Cursor::new(data));
+ let _ = server.process_new_packets();
+});
diff --git a/rustls-0.21.2/rustls/Cargo.toml b/rustls-0.21.2/rustls/Cargo.toml
new file mode 100644
index 0000000..e83329d
--- /dev/null
+++ b/rustls-0.21.2/rustls/Cargo.toml
@@ -0,0 +1,57 @@
+[package]
+name = "rustls"
+version = "0.21.2"
+edition = "2021"
+rust-version = "1.60"
+license = "Apache-2.0 OR ISC OR MIT"
+readme = "../README.md"
+description = "Rustls is a modern TLS library written in Rust."
+homepage = "https://github.com/rustls/rustls"
+repository = "https://github.com/rustls/rustls"
+categories = ["network-programming", "cryptography"]
+autobenches = false
+build = "build.rs"
+
+[build-dependencies]
+rustversion = { version = "1.0.6", optional = true }
+
+[dependencies]
+log = { version = "0.4.4", optional = true }
+ring = "0.16.20"
+sct = "0.7.0"
+webpki = { package = "rustls-webpki", version = "0.100.0", features = ["alloc", "std"] }
+
+[features]
+default = ["logging", "tls12"]
+logging = ["log"]
+dangerous_configuration = []
+secret_extraction = []
+quic = []
+tls12 = []
+read_buf = ["rustversion"]
+
+[dev-dependencies]
+bencher = "0.1.5"
+env_logger = "0.10"
+log = "0.4.4"
+webpki-roots = "0.23.0"
+rustls-pemfile = "1.0.0"
+base64 = "0.21"
+
+[[example]]
+name = "bogo_shim"
+path = "examples/internal/bogo_shim.rs"
+required-features = ["dangerous_configuration", "quic"]
+
+[[example]]
+name = "bench"
+path = "examples/internal/bench.rs"
+
+[[bench]]
+name = "benchmarks"
+path = "benches/benchmarks.rs"
+harness = false
+
+[package.metadata.docs.rs]
+all-features = true
+rustdoc-args = ["--cfg", "docsrs"]
diff --git a/rustls-0.21.2/rustls/LICENSE-APACHE b/rustls-0.21.2/rustls/LICENSE-APACHE
new file mode 120000
index 0000000..965b606
--- /dev/null
+++ b/rustls-0.21.2/rustls/LICENSE-APACHE
@@ -0,0 +1 @@
+../LICENSE-APACHE
\ No newline at end of file
diff --git a/rustls-0.21.2/rustls/LICENSE-ISC b/rustls-0.21.2/rustls/LICENSE-ISC
new file mode 120000
index 0000000..c302b2e
--- /dev/null
+++ b/rustls-0.21.2/rustls/LICENSE-ISC
@@ -0,0 +1 @@
+../LICENSE-ISC
\ No newline at end of file
diff --git a/rustls-0.21.2/rustls/LICENSE-MIT b/rustls-0.21.2/rustls/LICENSE-MIT
new file mode 120000
index 0000000..76219eb
--- /dev/null
+++ b/rustls-0.21.2/rustls/LICENSE-MIT
@@ -0,0 +1 @@
+../LICENSE-MIT
\ No newline at end of file
diff --git a/rustls-0.21.2/rustls/benches/benchmarks.rs b/rustls-0.21.2/rustls/benches/benchmarks.rs
new file mode 100644
index 0000000..c0f64d8
--- /dev/null
+++ b/rustls-0.21.2/rustls/benches/benchmarks.rs
@@ -0,0 +1,20 @@
+use bencher::{benchmark_group, benchmark_main, Bencher};
+
+#[path = "../tests/common/mod.rs"]
+mod test_utils;
+use test_utils::*;
+
+use rustls::ServerConnection;
+
+use std::io;
+use std::sync::Arc;
+
+fn bench_ewouldblock(c: &mut Bencher) {
+ let server_config = make_server_config(KeyType::Rsa);
+ let mut server = ServerConnection::new(Arc::new(server_config)).unwrap();
+ let mut read_ewouldblock = FailsReads::new(io::ErrorKind::WouldBlock);
+ c.iter(|| server.read_tls(&mut read_ewouldblock));
+}
+
+benchmark_group!(benches, bench_ewouldblock);
+benchmark_main!(benches);
diff --git a/rustls-0.21.2/rustls/build.rs b/rustls-0.21.2/rustls/build.rs
new file mode 100644
index 0000000..9c73252
--- /dev/null
+++ b/rustls-0.21.2/rustls/build.rs
@@ -0,0 +1,13 @@
+/// This build script allows us to enable the `read_buf` language feature only
+/// for Rust Nightly.
+///
+/// See the comment in lib.rs to understand why we need this.
+
+#[cfg_attr(feature = "read_buf", rustversion::not(nightly))]
+fn main() {}
+
+#[cfg(feature = "read_buf")]
+#[rustversion::nightly]
+fn main() {
+ println!("cargo:rustc-cfg=read_buf");
+}
diff --git a/rustls-0.21.2/rustls/examples/internal/bench.rs b/rustls-0.21.2/rustls/examples/internal/bench.rs
new file mode 100644
index 0000000..357ccec
--- /dev/null
+++ b/rustls-0.21.2/rustls/examples/internal/bench.rs
@@ -0,0 +1,675 @@
+// This program does assorted benchmarking of rustls.
+//
+// Note: we don't use any of the standard 'cargo bench', 'test::Bencher',
+// etc. because it's unstable at the time of writing.
+
+use std::env;
+use std::fs;
+use std::io::{self, Read, Write};
+use std::ops::Deref;
+use std::ops::DerefMut;
+use std::sync::Arc;
+use std::time::{Duration, Instant};
+
+use rustls::client::Resumption;
+use rustls::server::{
+ AllowAnyAuthenticatedClient, NoClientAuth, NoServerSessionStorage, ServerSessionMemoryCache,
+};
+use rustls::RootCertStore;
+use rustls::Ticketer;
+use rustls::{ClientConfig, ClientConnection};
+use rustls::{ConnectionCommon, SideData};
+use rustls::{ServerConfig, ServerConnection};
+
+fn duration_nanos(d: Duration) -> f64 {
+ (d.as_secs() as f64) + f64::from(d.subsec_nanos()) / 1e9
+}
+
+fn _bench<Fsetup, Ftest, S>(count: usize, name: &'static str, f_setup: Fsetup, f_test: Ftest)
+where
+ Fsetup: Fn() -> S,
+ Ftest: Fn(S),
+{
+ let mut times = Vec::new();
+
+ for _ in 0..count {
+ let state = f_setup();
+ let start = Instant::now();
+ f_test(state);
+ times.push(duration_nanos(Instant::now().duration_since(start)));
+ }
+
+ println!("{}", name);
+ println!("{:?}", times);
+}
+
+fn time<F>(mut f: F) -> f64
+where
+ F: FnMut(),
+{
+ let start = Instant::now();
+ f();
+ let end = Instant::now();
+ duration_nanos(end.duration_since(start))
+}
+
+fn transfer<L, R, LS, RS>(left: &mut L, right: &mut R, expect_data: Option<usize>) -> f64
+where
+ L: DerefMut + Deref<Target = ConnectionCommon<LS>>,
+ R: DerefMut + Deref<Target = ConnectionCommon<RS>>,
+ LS: SideData,
+ RS: SideData,
+{
+ let mut tls_buf = [0u8; 262144];
+ let mut read_time = 0f64;
+ let mut data_left = expect_data;
+ let mut data_buf = [0u8; 8192];
+
+ loop {
+ let mut sz = 0;
+
+ while left.wants_write() {
+ let written = left
+ .write_tls(&mut tls_buf[sz..].as_mut())
+ .unwrap();
+ if written == 0 {
+ break;
+ }
+
+ sz += written;
+ }
+
+ if sz == 0 {
+ return read_time;
+ }
+
+ let mut offs = 0;
+ loop {
+ let start = Instant::now();
+ match right.read_tls(&mut tls_buf[offs..sz].as_ref()) {
+ Ok(read) => {
+ right.process_new_packets().unwrap();
+ offs += read;
+ }
+ Err(err) => {
+ panic!("error on transfer {}..{}: {}", offs, sz, err);
+ }
+ }
+
+ if let Some(left) = &mut data_left {
+ loop {
+ let sz = match right.reader().read(&mut data_buf) {
+ Ok(sz) => sz,
+ Err(err) if err.kind() == io::ErrorKind::WouldBlock => break,
+ Err(err) => panic!("failed to read data: {}", err),
+ };
+
+ *left -= sz;
+ if *left == 0 {
+ break;
+ }
+ }
+ }
+
+ let end = Instant::now();
+ read_time += duration_nanos(end.duration_since(start));
+ if sz == offs {
+ break;
+ }
+ }
+ }
+}
+
+#[derive(PartialEq, Clone, Copy)]
+enum ClientAuth {
+ No,
+ Yes,
+}
+
+#[derive(PartialEq, Clone, Copy)]
+enum ResumptionParam {
+ No,
+ SessionID,
+ Tickets,
+}
+
+impl ResumptionParam {
+ fn label(&self) -> &'static str {
+ match *self {
+ Self::No => "no-resume",
+ Self::SessionID => "sessionid",
+ Self::Tickets => "tickets",
+ }
+ }
+}
+
+// copied from tests/api.rs
+#[derive(PartialEq, Clone, Copy, Debug)]
+enum KeyType {
+ Rsa,
+ Ecdsa,
+ Ed25519,
+}
+
+struct BenchmarkParam {
+ key_type: KeyType,
+ ciphersuite: rustls::SupportedCipherSuite,
+ version: &'static rustls::SupportedProtocolVersion,
+}
+
+impl BenchmarkParam {
+ const fn new(
+ key_type: KeyType,
+ ciphersuite: rustls::SupportedCipherSuite,
+ version: &'static rustls::SupportedProtocolVersion,
+ ) -> Self {
+ Self {
+ key_type,
+ ciphersuite,
+ version,
+ }
+ }
+}
+
+static ALL_BENCHMARKS: &[BenchmarkParam] = &[
+ #[cfg(feature = "tls12")]
+ BenchmarkParam::new(
+ KeyType::Rsa,
+ rustls::cipher_suite::TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256,
+ &rustls::version::TLS12,
+ ),
+ #[cfg(feature = "tls12")]
+ BenchmarkParam::new(
+ KeyType::Ecdsa,
+ rustls::cipher_suite::TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,
+ &rustls::version::TLS12,
+ ),
+ #[cfg(feature = "tls12")]
+ BenchmarkParam::new(
+ KeyType::Rsa,
+ rustls::cipher_suite::TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256,
+ &rustls::version::TLS12,
+ ),
+ #[cfg(feature = "tls12")]
+ BenchmarkParam::new(
+ KeyType::Rsa,
+ rustls::cipher_suite::TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
+ &rustls::version::TLS12,
+ ),
+ #[cfg(feature = "tls12")]
+ BenchmarkParam::new(
+ KeyType::Rsa,
+ rustls::cipher_suite::TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
+ &rustls::version::TLS12,
+ ),
+ #[cfg(feature = "tls12")]
+ BenchmarkParam::new(
+ KeyType::Ecdsa,
+ rustls::cipher_suite::TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
+ &rustls::version::TLS12,
+ ),
+ #[cfg(feature = "tls12")]
+ BenchmarkParam::new(
+ KeyType::Ecdsa,
+ rustls::cipher_suite::TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
+ &rustls::version::TLS12,
+ ),
+ BenchmarkParam::new(
+ KeyType::Rsa,
+ rustls::cipher_suite::TLS13_CHACHA20_POLY1305_SHA256,
+ &rustls::version::TLS13,
+ ),
+ BenchmarkParam::new(
+ KeyType::Rsa,
+ rustls::cipher_suite::TLS13_AES_256_GCM_SHA384,
+ &rustls::version::TLS13,
+ ),
+ BenchmarkParam::new(
+ KeyType::Rsa,
+ rustls::cipher_suite::TLS13_AES_128_GCM_SHA256,
+ &rustls::version::TLS13,
+ ),
+ BenchmarkParam::new(
+ KeyType::Ecdsa,
+ rustls::cipher_suite::TLS13_AES_128_GCM_SHA256,
+ &rustls::version::TLS13,
+ ),
+ BenchmarkParam::new(
+ KeyType::Ed25519,
+ rustls::cipher_suite::TLS13_AES_128_GCM_SHA256,
+ &rustls::version::TLS13,
+ ),
+];
+
+impl KeyType {
+ fn path_for(&self, part: &str) -> String {
+ match self {
+ Self::Rsa => format!("test-ca/rsa/{}", part),
+ Self::Ecdsa => format!("test-ca/ecdsa/{}", part),
+ Self::Ed25519 => format!("test-ca/eddsa/{}", part),
+ }
+ }
+
+ fn get_chain(&self) -> Vec<rustls::Certificate> {
+ rustls_pemfile::certs(&mut io::BufReader::new(
+ fs::File::open(self.path_for("end.fullchain")).unwrap(),
+ ))
+ .unwrap()
+ .iter()
+ .map(|v| rustls::Certificate(v.clone()))
+ .collect()
+ }
+
+ fn get_key(&self) -> rustls::PrivateKey {
+ rustls::PrivateKey(
+ rustls_pemfile::pkcs8_private_keys(&mut io::BufReader::new(
+ fs::File::open(self.path_for("end.key")).unwrap(),
+ ))
+ .unwrap()[0]
+ .clone(),
+ )
+ }
+
+ fn get_client_chain(&self) -> Vec<rustls::Certificate> {
+ rustls_pemfile::certs(&mut io::BufReader::new(
+ fs::File::open(self.path_for("client.fullchain")).unwrap(),
+ ))
+ .unwrap()
+ .iter()
+ .map(|v| rustls::Certificate(v.clone()))
+ .collect()
+ }
+
+ fn get_client_key(&self) -> rustls::PrivateKey {
+ rustls::PrivateKey(
+ rustls_pemfile::pkcs8_private_keys(&mut io::BufReader::new(
+ fs::File::open(self.path_for("client.key")).unwrap(),
+ ))
+ .unwrap()[0]
+ .clone(),
+ )
+ }
+}
+
+fn make_server_config(
+ params: &BenchmarkParam,
+ client_auth: ClientAuth,
+ resume: ResumptionParam,
+ max_fragment_size: Option<usize>,
+) -> ServerConfig {
+ let client_auth = match client_auth {
+ ClientAuth::Yes => {
+ let roots = params.key_type.get_chain();
+ let mut client_auth_roots = RootCertStore::empty();
+ for root in roots {
+ client_auth_roots.add(&root).unwrap();
+ }
+ Arc::new(AllowAnyAuthenticatedClient::new(client_auth_roots))
+ }
+ ClientAuth::No => NoClientAuth::boxed(),
+ };
+
+ let mut cfg = ServerConfig::builder()
+ .with_safe_default_cipher_suites()
+ .with_safe_default_kx_groups()
+ .with_protocol_versions(&[params.version])
+ .unwrap()
+ .with_client_cert_verifier(client_auth)
+ .with_single_cert(params.key_type.get_chain(), params.key_type.get_key())
+ .expect("bad certs/private key?");
+
+ if resume == ResumptionParam::SessionID {
+ cfg.session_storage = ServerSessionMemoryCache::new(128);
+ } else if resume == ResumptionParam::Tickets {
+ cfg.ticketer = Ticketer::new().unwrap();
+ } else {
+ cfg.session_storage = Arc::new(NoServerSessionStorage {});
+ }
+
+ cfg.max_fragment_size = max_fragment_size;
+ cfg
+}
+
+fn make_client_config(
+ params: &BenchmarkParam,
+ clientauth: ClientAuth,
+ resume: ResumptionParam,
+) -> ClientConfig {
+ let mut root_store = RootCertStore::empty();
+ let mut rootbuf =
+ io::BufReader::new(fs::File::open(params.key_type.path_for("ca.cert")).unwrap());
+ root_store.add_parsable_certificates(&rustls_pemfile::certs(&mut rootbuf).unwrap());
+
+ let cfg = ClientConfig::builder()
+ .with_cipher_suites(&[params.ciphersuite])
+ .with_safe_default_kx_groups()
+ .with_protocol_versions(&[params.version])
+ .unwrap()
+ .with_root_certificates(root_store);
+
+ let mut cfg = if clientauth == ClientAuth::Yes {
+ cfg.with_single_cert(
+ params.key_type.get_client_chain(),
+ params.key_type.get_client_key(),
+ )
+ .unwrap()
+ } else {
+ cfg.with_no_client_auth()
+ };
+
+ if resume != ResumptionParam::No {
+ cfg.resumption = Resumption::in_memory_sessions(128);
+ } else {
+ cfg.resumption = Resumption::disabled();
+ }
+
+ cfg
+}
+
+fn apply_work_multiplier(work: u64) -> u64 {
+ let mul = match env::var("BENCH_MULTIPLIER") {
+ Ok(val) => val
+ .parse::<f64>()
+ .expect("invalid BENCH_MULTIPLIER value"),
+ Err(_) => 1.,
+ };
+
+ ((work as f64) * mul).round() as u64
+}
+
+fn bench_handshake(params: &BenchmarkParam, clientauth: ClientAuth, resume: ResumptionParam) {
+ let client_config = Arc::new(make_client_config(params, clientauth, resume));
+ let server_config = Arc::new(make_server_config(params, clientauth, resume, None));
+
+ assert!(params.ciphersuite.version() == params.version);
+
+ let rounds = apply_work_multiplier(if resume == ResumptionParam::No {
+ 512
+ } else {
+ 4096
+ });
+ let mut client_time = 0f64;
+ let mut server_time = 0f64;
+
+ for _ in 0..rounds {
+ let server_name = "localhost".try_into().unwrap();
+ let mut client = ClientConnection::new(Arc::clone(&client_config), server_name).unwrap();
+ let mut server = ServerConnection::new(Arc::clone(&server_config)).unwrap();
+
+ server_time += time(|| {
+ transfer(&mut client, &mut server, None);
+ });
+ client_time += time(|| {
+ transfer(&mut server, &mut client, None);
+ });
+ server_time += time(|| {
+ transfer(&mut client, &mut server, None);
+ });
+ client_time += time(|| {
+ transfer(&mut server, &mut client, None);
+ });
+ }
+
+ println!(
+ "handshakes\t{:?}\t{:?}\t{:?}\tclient\t{}\t{}\t{:.2}\thandshake/s",
+ params.version,
+ params.key_type,
+ params.ciphersuite.suite(),
+ if clientauth == ClientAuth::Yes {
+ "mutual"
+ } else {
+ "server-auth"
+ },
+ resume.label(),
+ (rounds as f64) / client_time
+ );
+ println!(
+ "handshakes\t{:?}\t{:?}\t{:?}\tserver\t{}\t{}\t{:.2}\thandshake/s",
+ params.version,
+ params.key_type,
+ params.ciphersuite.suite(),
+ if clientauth == ClientAuth::Yes {
+ "mutual"
+ } else {
+ "server-auth"
+ },
+ resume.label(),
+ (rounds as f64) / server_time
+ );
+}
+
+fn do_handshake_step(client: &mut ClientConnection, server: &mut ServerConnection) -> bool {
+ if server.is_handshaking() || client.is_handshaking() {
+ transfer(client, server, None);
+ transfer(server, client, None);
+ true
+ } else {
+ false
+ }
+}
+
+fn do_handshake(client: &mut ClientConnection, server: &mut ServerConnection) {
+ while do_handshake_step(client, server) {}
+}
+
+fn bench_bulk(params: &BenchmarkParam, plaintext_size: u64, max_fragment_size: Option<usize>) {
+ let client_config = Arc::new(make_client_config(
+ params,
+ ClientAuth::No,
+ ResumptionParam::No,
+ ));
+ let server_config = Arc::new(make_server_config(
+ params,
+ ClientAuth::No,
+ ResumptionParam::No,
+ max_fragment_size,
+ ));
+
+ let server_name = "localhost".try_into().unwrap();
+ let mut client = ClientConnection::new(client_config, server_name).unwrap();
+ client.set_buffer_limit(None);
+ let mut server = ServerConnection::new(Arc::clone(&server_config)).unwrap();
+ server.set_buffer_limit(None);
+
+ do_handshake(&mut client, &mut server);
+
+ let mut buf = Vec::new();
+ buf.resize(plaintext_size as usize, 0u8);
+
+ let total_data = apply_work_multiplier(if plaintext_size < 8192 {
+ 64 * 1024 * 1024
+ } else {
+ 1024 * 1024 * 1024
+ });
+ let rounds = total_data / plaintext_size;
+ let mut time_send = 0f64;
+ let mut time_recv = 0f64;
+
+ for _ in 0..rounds {
+ time_send += time(|| {
+ server.writer().write_all(&buf).unwrap();
+ });
+
+ time_recv += transfer(&mut server, &mut client, Some(buf.len()));
+ }
+
+ let mfs_str = format!(
+ "max_fragment_size:{}",
+ max_fragment_size
+ .map(|v| v.to_string())
+ .unwrap_or_else(|| "default".to_string())
+ );
+ let total_mbs = ((plaintext_size * rounds) as f64) / (1024. * 1024.);
+ println!(
+ "bulk\t{:?}\t{:?}\t{}\tsend\t{:.2}\tMB/s",
+ params.version,
+ params.ciphersuite.suite(),
+ mfs_str,
+ total_mbs / time_send
+ );
+ println!(
+ "bulk\t{:?}\t{:?}\t{}\trecv\t{:.2}\tMB/s",
+ params.version,
+ params.ciphersuite.suite(),
+ mfs_str,
+ total_mbs / time_recv
+ );
+}
+
+fn bench_memory(params: &BenchmarkParam, conn_count: u64) {
+ let client_config = Arc::new(make_client_config(
+ params,
+ ClientAuth::No,
+ ResumptionParam::No,
+ ));
+ let server_config = Arc::new(make_server_config(
+ params,
+ ClientAuth::No,
+ ResumptionParam::No,
+ None,
+ ));
+
+ // The target here is to end up with conn_count post-handshake
+ // server and client sessions.
+ let conn_count = (conn_count / 2) as usize;
+ let mut servers = Vec::with_capacity(conn_count);
+ let mut clients = Vec::with_capacity(conn_count);
+
+ for _i in 0..conn_count {
+ servers.push(ServerConnection::new(Arc::clone(&server_config)).unwrap());
+ let server_name = "localhost".try_into().unwrap();
+ clients.push(ClientConnection::new(Arc::clone(&client_config), server_name).unwrap());
+ }
+
+ for _step in 0..5 {
+ for (client, server) in clients
+ .iter_mut()
+ .zip(servers.iter_mut())
+ {
+ do_handshake_step(client, server);
+ }
+ }
+
+ for client in clients.iter_mut() {
+ client
+ .writer()
+ .write_all(&[0u8; 1024])
+ .unwrap();
+ }
+
+ for (client, server) in clients
+ .iter_mut()
+ .zip(servers.iter_mut())
+ {
+ transfer(client, server, Some(1024));
+ }
+}
+
+fn lookup_matching_benches(name: &str) -> Vec<&BenchmarkParam> {
+ let r: Vec<&BenchmarkParam> = ALL_BENCHMARKS
+ .iter()
+ .filter(|params| {
+ format!("{:?}", params.ciphersuite.suite()).to_lowercase() == name.to_lowercase()
+ })
+ .collect();
+
+ if r.is_empty() {
+ panic!("unknown suite {:?}", name);
+ }
+
+ r
+}
+
+fn selected_tests(mut args: env::Args) {
+ let mode = args
+ .next()
+ .expect("first argument must be mode");
+
+ match mode.as_ref() {
+ "bulk" => match args.next() {
+ Some(suite) => {
+ let len = args
+ .next()
+ .map(|arg| {
+ arg.parse::<u64>()
+ .expect("3rd arg must be plaintext size integer")
+ })
+ .unwrap_or(1048576);
+ let mfs = args.next().map(|arg| {
+ arg.parse::<usize>()
+ .expect("4th arg must be max_fragment_size integer")
+ });
+ for param in lookup_matching_benches(&suite).iter() {
+ bench_bulk(param, len, mfs);
+ }
+ }
+ None => {
+ panic!("bulk needs ciphersuite argument");
+ }
+ },
+
+ "handshake" | "handshake-resume" | "handshake-ticket" => match args.next() {
+ Some(suite) => {
+ let resume = if mode == "handshake" {
+ ResumptionParam::No
+ } else if mode == "handshake-resume" {
+ ResumptionParam::SessionID
+ } else {
+ ResumptionParam::Tickets
+ };
+
+ for param in lookup_matching_benches(&suite).iter() {
+ bench_handshake(param, ClientAuth::No, resume);
+ }
+ }
+ None => {
+ panic!("handshake* needs ciphersuite argument");
+ }
+ },
+
+ "memory" => match args.next() {
+ Some(suite) => {
+ let count = args
+ .next()
+ .map(|arg| {
+ arg.parse::<u64>()
+ .expect("3rd arg must be connection count integer")
+ })
+ .unwrap_or(1000000);
+ for param in lookup_matching_benches(&suite).iter() {
+ bench_memory(param, count);
+ }
+ }
+ None => {
+ panic!("memory needs ciphersuite argument");
+ }
+ },
+
+ _ => {
+ panic!("unsupported mode {:?}", mode);
+ }
+ }
+}
+
+fn all_tests() {
+ for test in ALL_BENCHMARKS.iter() {
+ bench_bulk(test, 1024 * 1024, None);
+ bench_bulk(test, 1024 * 1024, Some(10000));
+ bench_handshake(test, ClientAuth::No, ResumptionParam::No);
+ bench_handshake(test, ClientAuth::Yes, ResumptionParam::No);
+ bench_handshake(test, ClientAuth::No, ResumptionParam::SessionID);
+ bench_handshake(test, ClientAuth::Yes, ResumptionParam::SessionID);
+ bench_handshake(test, ClientAuth::No, ResumptionParam::Tickets);
+ bench_handshake(test, ClientAuth::Yes, ResumptionParam::Tickets);
+ }
+}
+
+fn main() {
+ let mut args = env::args();
+ if args.len() > 1 {
+ args.next();
+ selected_tests(args);
+ } else {
+ all_tests();
+ }
+}
diff --git a/rustls-0.21.2/rustls/examples/internal/bogo_shim.rs b/rustls-0.21.2/rustls/examples/internal/bogo_shim.rs
new file mode 100644
index 0000000..df8c231
--- /dev/null
+++ b/rustls-0.21.2/rustls/examples/internal/bogo_shim.rs
@@ -0,0 +1,1259 @@
+// This is a test shim for the BoringSSL-Go ('bogo') TLS
+// test suite. See bogo/ for this in action.
+//
+// https://boringssl.googlesource.com/boringssl/+/master/ssl/test
+//
+
+use rustls::client::{ClientConfig, ClientConnection, Resumption};
+use rustls::internal::msgs::codec::Codec;
+use rustls::internal::msgs::persist;
+use rustls::server::{ClientHello, ServerConfig, ServerConnection};
+use rustls::{
+ self, client, kx_group, server, sign, version, AlertDescription, Certificate, CertificateError,
+ Connection, DistinguishedName, Error, InvalidMessage, NamedGroup, PeerIncompatible,
+ PeerMisbehaved, PrivateKey, ProtocolVersion, ServerName, Side, SignatureAlgorithm,
+ SignatureScheme, SupportedKxGroup, SupportedProtocolVersion, Ticketer, ALL_KX_GROUPS,
+};
+
+use base64::prelude::{Engine, BASE64_STANDARD};
+use env_logger;
+
+use std::io::{self, BufReader, Read, Write};
+use std::sync::Arc;
+use std::time::{self, SystemTime};
+use std::{env, fs, net, process, thread};
+
+static BOGO_NACK: i32 = 89;
+
+macro_rules! println_err(
+ ($($arg:tt)*) => { {
+ writeln!(&mut ::std::io::stderr(), $($arg)*).unwrap();
+ } }
+);
+
+#[derive(Debug)]
+struct Options {
+ port: u16,
+ side: Side,
+ max_fragment: Option<usize>,
+ resumes: usize,
+ verify_peer: bool,
+ require_any_client_cert: bool,
+ offer_no_client_cas: bool,
+ tickets: bool,
+ resume_with_tickets_disabled: bool,
+ queue_data: bool,
+ queue_data_on_resume: bool,
+ only_write_one_byte_after_handshake: bool,
+ only_write_one_byte_after_handshake_on_resume: bool,
+ shut_down_after_handshake: bool,
+ check_close_notify: bool,
+ host_name: String,
+ use_sni: bool,
+ send_sct: bool,
+ key_file: String,
+ cert_file: String,
+ protocols: Vec<String>,
+ reject_alpn: bool,
+ support_tls13: bool,
+ support_tls12: bool,
+ min_version: Option<ProtocolVersion>,
+ max_version: Option<ProtocolVersion>,
+ server_ocsp_response: Vec<u8>,
+ server_sct_list: Vec<u8>,
+ use_signing_scheme: u16,
+ curves: Option<Vec<u16>>,
+ export_keying_material: usize,
+ export_keying_material_label: String,
+ export_keying_material_context: String,
+ export_keying_material_context_used: bool,
+ read_size: usize,
+ quic_transport_params: Vec<u8>,
+ expect_quic_transport_params: Vec<u8>,
+ enable_early_data: bool,
+ expect_ticket_supports_early_data: bool,
+ expect_accept_early_data: bool,
+ expect_reject_early_data: bool,
+ expect_version: u16,
+ resumption_delay: u32,
+ queue_early_data_after_received_messages: Vec<usize>,
+}
+
+impl Options {
+ fn new() -> Self {
+ Options {
+ port: 0,
+ side: Side::Client,
+ max_fragment: None,
+ resumes: 0,
+ verify_peer: false,
+ tickets: true,
+ resume_with_tickets_disabled: false,
+ host_name: "example.com".to_string(),
+ use_sni: false,
+ send_sct: false,
+ queue_data: false,
+ queue_data_on_resume: false,
+ only_write_one_byte_after_handshake: false,
+ only_write_one_byte_after_handshake_on_resume: false,
+ shut_down_after_handshake: false,
+ check_close_notify: false,
+ require_any_client_cert: false,
+ offer_no_client_cas: false,
+ key_file: "".to_string(),
+ cert_file: "".to_string(),
+ protocols: vec![],
+ reject_alpn: false,
+ support_tls13: true,
+ support_tls12: true,
+ min_version: None,
+ max_version: None,
+ server_ocsp_response: vec![],
+ server_sct_list: vec![],
+ use_signing_scheme: 0,
+ curves: None,
+ export_keying_material: 0,
+ export_keying_material_label: "".to_string(),
+ export_keying_material_context: "".to_string(),
+ export_keying_material_context_used: false,
+ read_size: 512,
+ quic_transport_params: vec![],
+ expect_quic_transport_params: vec![],
+ enable_early_data: false,
+ expect_ticket_supports_early_data: false,
+ expect_accept_early_data: false,
+ expect_reject_early_data: false,
+ expect_version: 0,
+ resumption_delay: 0,
+ queue_early_data_after_received_messages: vec![],
+ }
+ }
+
+ fn version_allowed(&self, vers: ProtocolVersion) -> bool {
+ (self.min_version.is_none() || vers.get_u16() >= self.min_version.unwrap().get_u16())
+ && (self.max_version.is_none() || vers.get_u16() <= self.max_version.unwrap().get_u16())
+ }
+
+ fn tls13_supported(&self) -> bool {
+ self.support_tls13 && self.version_allowed(ProtocolVersion::TLSv1_3)
+ }
+
+ fn tls12_supported(&self) -> bool {
+ self.support_tls12 && self.version_allowed(ProtocolVersion::TLSv1_2)
+ }
+
+ fn supported_versions(&self) -> Vec<&'static SupportedProtocolVersion> {
+ let mut versions = vec![];
+
+ if self.tls12_supported() {
+ versions.push(&version::TLS12);
+ }
+
+ if self.tls13_supported() {
+ versions.push(&version::TLS13);
+ }
+ versions
+ }
+}
+
+fn load_cert(filename: &str) -> Vec<Certificate> {
+ let certfile = fs::File::open(filename).expect("cannot open certificate file");
+ let mut reader = BufReader::new(certfile);
+ rustls_pemfile::certs(&mut reader)
+ .unwrap()
+ .iter()
+ .map(|v| Certificate(v.clone()))
+ .collect()
+}
+
+fn load_key(filename: &str) -> PrivateKey {
+ let keyfile = fs::File::open(filename).expect("cannot open private key file");
+ let mut reader = BufReader::new(keyfile);
+ let keys = rustls_pemfile::pkcs8_private_keys(&mut reader).unwrap();
+ assert!(keys.len() == 1);
+ PrivateKey(keys[0].clone())
+}
+
+fn split_protocols(protos: &str) -> Vec<String> {
+ let mut ret = Vec::new();
+
+ let mut offs = 0;
+ while offs < protos.len() {
+ let len = protos.as_bytes()[offs] as usize;
+ let item = protos[offs + 1..offs + 1 + len].to_string();
+ ret.push(item);
+ offs += 1 + len;
+ }
+
+ ret
+}
+
+struct DummyClientAuth {
+ mandatory: bool,
+}
+
+impl server::ClientCertVerifier for DummyClientAuth {
+ fn offer_client_auth(&self) -> bool {
+ true
+ }
+
+ fn client_auth_mandatory(&self) -> bool {
+ self.mandatory
+ }
+
+ fn client_auth_root_subjects(&self) -> &[DistinguishedName] {
+ &[]
+ }
+
+ fn verify_client_cert(
+ &self,
+ _end_entity: &Certificate,
+ _intermediates: &[Certificate],
+ _now: SystemTime,
+ ) -> Result<server::ClientCertVerified, Error> {
+ Ok(server::ClientCertVerified::assertion())
+ }
+}
+
+struct DummyServerAuth {
+ send_sct: bool,
+}
+
+impl client::ServerCertVerifier for DummyServerAuth {
+ fn verify_server_cert(
+ &self,
+ _end_entity: &Certificate,
+ _certs: &[Certificate],
+ _hostname: &ServerName,
+ _scts: &mut dyn Iterator<Item = &[u8]>,
+ _ocsp: &[u8],
+ _now: SystemTime,
+ ) -> Result<client::ServerCertVerified, Error> {
+ Ok(client::ServerCertVerified::assertion())
+ }
+
+ fn request_scts(&self) -> bool {
+ self.send_sct
+ }
+}
+
+struct FixedSignatureSchemeSigningKey {
+ key: Arc<dyn sign::SigningKey>,
+ scheme: SignatureScheme,
+}
+
+impl sign::SigningKey for FixedSignatureSchemeSigningKey {
+ fn choose_scheme(&self, offered: &[SignatureScheme]) -> Option<Box<dyn sign::Signer>> {
+ if offered.contains(&self.scheme) {
+ self.key.choose_scheme(&[self.scheme])
+ } else {
+ self.key.choose_scheme(&[])
+ }
+ }
+ fn algorithm(&self) -> SignatureAlgorithm {
+ self.key.algorithm()
+ }
+}
+
+struct FixedSignatureSchemeServerCertResolver {
+ resolver: Arc<dyn server::ResolvesServerCert>,
+ scheme: SignatureScheme,
+}
+
+impl server::ResolvesServerCert for FixedSignatureSchemeServerCertResolver {
+ fn resolve(&self, client_hello: ClientHello) -> Option<Arc<sign::CertifiedKey>> {
+ let mut certkey = self.resolver.resolve(client_hello)?;
+ Arc::make_mut(&mut certkey).key = Arc::new(FixedSignatureSchemeSigningKey {
+ key: certkey.key.clone(),
+ scheme: self.scheme,
+ });
+ Some(certkey)
+ }
+}
+
+struct FixedSignatureSchemeClientCertResolver {
+ resolver: Arc<dyn client::ResolvesClientCert>,
+ scheme: SignatureScheme,
+}
+
+impl client::ResolvesClientCert for FixedSignatureSchemeClientCertResolver {
+ fn resolve(
+ &self,
+ acceptable_issuers: &[&[u8]],
+ sigschemes: &[SignatureScheme],
+ ) -> Option<Arc<sign::CertifiedKey>> {
+ if !sigschemes.contains(&self.scheme) {
+ quit(":NO_COMMON_SIGNATURE_ALGORITHMS:");
+ }
+ let mut certkey = self
+ .resolver
+ .resolve(acceptable_issuers, sigschemes)?;
+ Arc::make_mut(&mut certkey).key = Arc::new(FixedSignatureSchemeSigningKey {
+ key: certkey.key.clone(),
+ scheme: self.scheme,
+ });
+ Some(certkey)
+ }
+
+ fn has_certs(&self) -> bool {
+ self.resolver.has_certs()
+ }
+}
+
+fn lookup_scheme(scheme: u16) -> SignatureScheme {
+ match scheme {
+ 0x0401 => SignatureScheme::RSA_PKCS1_SHA256,
+ 0x0501 => SignatureScheme::RSA_PKCS1_SHA384,
+ 0x0601 => SignatureScheme::RSA_PKCS1_SHA512,
+ 0x0403 => SignatureScheme::ECDSA_NISTP256_SHA256,
+ 0x0503 => SignatureScheme::ECDSA_NISTP384_SHA384,
+ 0x0804 => SignatureScheme::RSA_PSS_SHA256,
+ 0x0805 => SignatureScheme::RSA_PSS_SHA384,
+ 0x0806 => SignatureScheme::RSA_PSS_SHA512,
+ 0x0807 => SignatureScheme::ED25519,
+ // TODO: add support for Ed448
+ // 0x0808 => SignatureScheme::ED448,
+ _ => {
+ println_err!("Unsupported signature scheme {:04x}", scheme);
+ process::exit(BOGO_NACK);
+ }
+ }
+}
+
+fn lookup_kx_group(group: u16) -> &'static SupportedKxGroup {
+ match group {
+ 0x001d => &kx_group::X25519,
+ 0x0017 => &kx_group::SECP256R1,
+ 0x0018 => &kx_group::SECP384R1,
+ _ => {
+ println_err!("Unsupported kx group {:04x}", group);
+ process::exit(BOGO_NACK);
+ }
+ }
+}
+
+struct ServerCacheWithResumptionDelay {
+ delay: u32,
+ storage: Arc<dyn server::StoresServerSessions>,
+}
+
+impl ServerCacheWithResumptionDelay {
+ fn new(delay: u32) -> Arc<Self> {
+ Arc::new(Self {
+ delay,
+ storage: server::ServerSessionMemoryCache::new(32),
+ })
+ }
+}
+
+fn align_time() {
+ /* we don't have an injectable clock source in rustls' public api, and
+ * resumption timing is in seconds resolution, so tests that use
+ * resumption_delay tend to be flickery if the seconds time ticks
+ * during this.
+ *
+ * this function delays until a fresh second ticks, which alleviates
+ * this. gross!
+ */
+ fn sample() -> u64 {
+ time::SystemTime::now()
+ .duration_since(time::SystemTime::UNIX_EPOCH)
+ .unwrap()
+ .as_secs()
+ }
+
+ let start_secs = sample();
+ while start_secs == sample() {
+ thread::sleep(time::Duration::from_millis(20));
+ }
+}
+
+impl server::StoresServerSessions for ServerCacheWithResumptionDelay {
+ fn put(&self, key: Vec<u8>, value: Vec<u8>) -> bool {
+ let mut ssv = persist::ServerSessionValue::read_bytes(&value).unwrap();
+ ssv.creation_time_sec -= self.delay as u64;
+
+ self.storage
+ .put(key, ssv.get_encoding())
+ }
+
+ fn get(&self, key: &[u8]) -> Option<Vec<u8>> {
+ self.storage.get(key)
+ }
+
+ fn take(&self, key: &[u8]) -> Option<Vec<u8>> {
+ self.storage.take(key)
+ }
+
+ fn can_cache(&self) -> bool {
+ self.storage.can_cache()
+ }
+}
+
+fn make_server_cfg(opts: &Options) -> Arc<ServerConfig> {
+ let client_auth =
+ if opts.verify_peer || opts.offer_no_client_cas || opts.require_any_client_cert {
+ Arc::new(DummyClientAuth {
+ mandatory: opts.require_any_client_cert,
+ })
+ } else {
+ server::NoClientAuth::boxed()
+ };
+
+ let cert = load_cert(&opts.cert_file);
+ let key = load_key(&opts.key_file);
+
+ let kx_groups = if let Some(curves) = &opts.curves {
+ curves
+ .iter()
+ .map(|curveid| lookup_kx_group(*curveid))
+ .collect()
+ } else {
+ ALL_KX_GROUPS.to_vec()
+ };
+
+ let mut cfg = ServerConfig::builder()
+ .with_safe_default_cipher_suites()
+ .with_kx_groups(&kx_groups)
+ .with_protocol_versions(&opts.supported_versions())
+ .unwrap()
+ .with_client_cert_verifier(client_auth)
+ .with_single_cert_with_ocsp_and_sct(
+ cert.clone(),
+ key,
+ opts.server_ocsp_response.clone(),
+ opts.server_sct_list.clone(),
+ )
+ .unwrap();
+
+ cfg.session_storage = ServerCacheWithResumptionDelay::new(opts.resumption_delay);
+ cfg.max_fragment_size = opts.max_fragment;
+ cfg.send_tls13_tickets = 1;
+
+ if opts.use_signing_scheme > 0 {
+ let scheme = lookup_scheme(opts.use_signing_scheme);
+ cfg.cert_resolver = Arc::new(FixedSignatureSchemeServerCertResolver {
+ resolver: cfg.cert_resolver.clone(),
+ scheme,
+ });
+ }
+
+ if opts.tickets {
+ cfg.ticketer = Ticketer::new().unwrap();
+ } else if opts.resumes == 0 {
+ cfg.session_storage = Arc::new(server::NoServerSessionStorage {});
+ }
+
+ if !opts.protocols.is_empty() {
+ cfg.alpn_protocols = opts
+ .protocols
+ .iter()
+ .map(|proto| proto.as_bytes().to_vec())
+ .collect::<Vec<_>>();
+ }
+
+ if opts.reject_alpn {
+ cfg.alpn_protocols = vec![b"invalid".to_vec()];
+ }
+
+ if opts.enable_early_data {
+ // see kMaxEarlyDataAccepted in boringssl, which bogo validates
+ cfg.max_early_data_size = 14336;
+ cfg.send_half_rtt_data = true;
+ }
+
+ Arc::new(cfg)
+}
+
+struct ClientCacheWithoutKxHints {
+ delay: u32,
+ storage: Arc<client::ClientSessionMemoryCache>,
+}
+
+impl ClientCacheWithoutKxHints {
+ fn new(delay: u32) -> Arc<ClientCacheWithoutKxHints> {
+ Arc::new(ClientCacheWithoutKxHints {
+ delay,
+ storage: Arc::new(client::ClientSessionMemoryCache::new(32)),
+ })
+ }
+}
+
+impl client::ClientSessionStore for ClientCacheWithoutKxHints {
+ fn set_kx_hint(&self, _: &ServerName, _: NamedGroup) {}
+ fn kx_hint(&self, _: &ServerName) -> Option<NamedGroup> {
+ None
+ }
+
+ fn set_tls12_session(
+ &self,
+ server_name: &ServerName,
+ mut value: client::Tls12ClientSessionValue,
+ ) {
+ value.rewind_epoch(self.delay);
+ self.storage
+ .set_tls12_session(server_name, value);
+ }
+
+ fn tls12_session(&self, server_name: &ServerName) -> Option<client::Tls12ClientSessionValue> {
+ self.storage.tls12_session(server_name)
+ }
+
+ fn remove_tls12_session(&self, server_name: &ServerName) {
+ self.storage
+ .remove_tls12_session(server_name);
+ }
+
+ fn insert_tls13_ticket(
+ &self,
+ server_name: &ServerName,
+ mut value: client::Tls13ClientSessionValue,
+ ) {
+ value.rewind_epoch(self.delay);
+ self.storage
+ .insert_tls13_ticket(server_name, value)
+ }
+
+ fn take_tls13_ticket(
+ &self,
+ server_name: &ServerName,
+ ) -> Option<client::Tls13ClientSessionValue> {
+ self.storage
+ .take_tls13_ticket(server_name)
+ }
+}
+
+fn make_client_cfg(opts: &Options) -> Arc<ClientConfig> {
+ let kx_groups = if let Some(curves) = &opts.curves {
+ curves
+ .iter()
+ .map(|curveid| lookup_kx_group(*curveid))
+ .collect()
+ } else {
+ ALL_KX_GROUPS.to_vec()
+ };
+
+ let cfg = ClientConfig::builder()
+ .with_safe_default_cipher_suites()
+ .with_kx_groups(&kx_groups)
+ .with_protocol_versions(&opts.supported_versions())
+ .expect("inconsistent settings")
+ .with_custom_certificate_verifier(Arc::new(DummyServerAuth {
+ send_sct: opts.send_sct,
+ }));
+
+ let mut cfg = if !opts.cert_file.is_empty() && !opts.key_file.is_empty() {
+ let cert = load_cert(&opts.cert_file);
+ let key = load_key(&opts.key_file);
+ cfg.with_single_cert(cert, key).unwrap()
+ } else {
+ cfg.with_no_client_auth()
+ };
+
+ if !opts.cert_file.is_empty() && opts.use_signing_scheme > 0 {
+ let scheme = lookup_scheme(opts.use_signing_scheme);
+ cfg.client_auth_cert_resolver = Arc::new(FixedSignatureSchemeClientCertResolver {
+ resolver: cfg.client_auth_cert_resolver.clone(),
+ scheme,
+ });
+ }
+
+ cfg.resumption = Resumption::store(ClientCacheWithoutKxHints::new(opts.resumption_delay));
+ cfg.enable_sni = opts.use_sni;
+ cfg.max_fragment_size = opts.max_fragment;
+
+ if !opts.protocols.is_empty() {
+ cfg.alpn_protocols = opts
+ .protocols
+ .iter()
+ .map(|proto| proto.as_bytes().to_vec())
+ .collect();
+ }
+
+ if opts.enable_early_data {
+ cfg.enable_early_data = true;
+ }
+
+ Arc::new(cfg)
+}
+
+fn quit(why: &str) -> ! {
+ println_err!("{}", why);
+ process::exit(0)
+}
+
+fn quit_err(why: &str) -> ! {
+ println_err!("{}", why);
+ process::exit(1)
+}
+
+fn handle_err(err: Error) -> ! {
+ println!("TLS error: {:?}", err);
+ thread::sleep(time::Duration::from_millis(100));
+
+ match err {
+ Error::InappropriateHandshakeMessage { .. } | Error::InappropriateMessage { .. } => {
+ quit(":UNEXPECTED_MESSAGE:")
+ }
+ Error::AlertReceived(AlertDescription::RecordOverflow) => {
+ quit(":TLSV1_ALERT_RECORD_OVERFLOW:")
+ }
+ Error::AlertReceived(AlertDescription::HandshakeFailure) => quit(":HANDSHAKE_FAILURE:"),
+ Error::AlertReceived(AlertDescription::ProtocolVersion) => quit(":WRONG_VERSION:"),
+ Error::AlertReceived(AlertDescription::InternalError) => {
+ quit(":PEER_ALERT_INTERNAL_ERROR:")
+ }
+ Error::InvalidMessage(
+ InvalidMessage::MissingData("AlertDescription")
+ | InvalidMessage::TrailingData("AlertMessagePayload"),
+ ) => quit(":BAD_ALERT:"),
+ Error::InvalidMessage(
+ InvalidMessage::TrailingData("ChangeCipherSpecPayload") | InvalidMessage::InvalidCcs,
+ ) => quit(":BAD_CHANGE_CIPHER_SPEC:"),
+ Error::InvalidMessage(
+ InvalidMessage::InvalidKeyUpdate
+ | InvalidMessage::MissingData(_)
+ | InvalidMessage::TrailingData(_)
+ | InvalidMessage::UnexpectedMessage("HelloRetryRequest")
+ | InvalidMessage::NoSignatureSchemes
+ | InvalidMessage::UnsupportedCompression,
+ ) => quit(":BAD_HANDSHAKE_MSG:"),
+ Error::InvalidMessage(InvalidMessage::InvalidCertRequest)
+ | Error::InvalidMessage(InvalidMessage::InvalidDhParams)
+ | Error::InvalidMessage(InvalidMessage::MissingKeyExchange) => quit(":BAD_HANDSHAKE_MSG:"),
+ Error::InvalidMessage(InvalidMessage::InvalidContentType)
+ | Error::InvalidMessage(InvalidMessage::InvalidEmptyPayload)
+ | Error::InvalidMessage(InvalidMessage::UnknownProtocolVersion)
+ | Error::InvalidMessage(InvalidMessage::MessageTooLarge) => quit(":GARBAGE:"),
+ Error::InvalidMessage(InvalidMessage::UnexpectedMessage(_)) => quit(":GARBAGE:"),
+ Error::DecryptError => quit(":DECRYPTION_FAILED_OR_BAD_RECORD_MAC:"),
+ Error::NoApplicationProtocol => quit(":NO_APPLICATION_PROTOCOL:"),
+ Error::PeerIncompatible(
+ PeerIncompatible::ServerSentHelloRetryRequestWithUnknownExtension,
+ ) => quit(":UNEXPECTED_EXTENSION:"),
+ Error::PeerIncompatible(_) => quit(":INCOMPATIBLE:"),
+ Error::PeerMisbehaved(PeerMisbehaved::MissingPskModesExtension) => {
+ quit(":MISSING_EXTENSION:")
+ }
+ Error::PeerMisbehaved(PeerMisbehaved::TooMuchEarlyDataReceived) => {
+ quit(":TOO_MUCH_READ_EARLY_DATA:")
+ }
+ Error::PeerMisbehaved(_) => quit(":PEER_MISBEHAVIOUR:"),
+ Error::NoCertificatesPresented => quit(":NO_CERTS:"),
+ Error::AlertReceived(AlertDescription::UnexpectedMessage) => quit(":BAD_ALERT:"),
+ Error::AlertReceived(AlertDescription::DecompressionFailure) => {
+ quit_err(":SSLV3_ALERT_DECOMPRESSION_FAILURE:")
+ }
+ Error::InvalidCertificate(CertificateError::BadEncoding) => {
+ quit(":CANNOT_PARSE_LEAF_CERT:")
+ }
+ Error::InvalidCertificate(CertificateError::BadSignature) => quit(":BAD_SIGNATURE:"),
+ Error::InvalidCertificate(e) => quit(&format!(":BAD_CERT: ({:?})", e)),
+ Error::PeerSentOversizedRecord => quit(":DATA_LENGTH_TOO_LONG:"),
+ _ => {
+ println_err!("unhandled error: {:?}", err);
+ quit(":FIXME:")
+ }
+ }
+}
+
+fn flush(sess: &mut Connection, conn: &mut net::TcpStream) {
+ while sess.wants_write() {
+ match sess.write_tls(conn) {
+ Err(err) => {
+ println!("IO error: {:?}", err);
+ process::exit(0);
+ }
+ Ok(_) => {}
+ }
+ }
+ conn.flush().unwrap();
+}
+
+fn client(conn: &mut Connection) -> &mut ClientConnection {
+ conn.try_into().unwrap()
+}
+
+fn server(conn: &mut Connection) -> &mut ServerConnection {
+ match conn {
+ Connection::Server(s) => s,
+ _ => panic!("Connection is not a ServerConnection"),
+ }
+}
+
+const MAX_MESSAGE_SIZE: usize = 0xffff + 5;
+
+fn after_read(sess: &mut Connection, conn: &mut net::TcpStream) {
+ if let Err(err) = sess.process_new_packets() {
+ flush(sess, conn); /* send any alerts before exiting */
+ handle_err(err);
+ }
+}
+
+fn read_n_bytes(sess: &mut Connection, conn: &mut net::TcpStream, n: usize) {
+ let mut bytes = [0u8; MAX_MESSAGE_SIZE];
+ match conn.read(&mut bytes[..n]) {
+ Ok(count) => {
+ println!("read {:?} bytes", count);
+ sess.read_tls(&mut io::Cursor::new(&mut bytes[..count]))
+ .expect("read_tls not expected to fail reading from buffer");
+ }
+ Err(ref err) if err.kind() == io::ErrorKind::ConnectionReset => {}
+ Err(err) => panic!("invalid read: {}", err),
+ };
+
+ after_read(sess, conn);
+}
+
+fn read_all_bytes(sess: &mut Connection, conn: &mut net::TcpStream) {
+ match sess.read_tls(conn) {
+ Ok(_) => {}
+ Err(ref err) if err.kind() == io::ErrorKind::ConnectionReset => {}
+ Err(err) => panic!("invalid read: {}", err),
+ };
+
+ after_read(sess, conn);
+}
+
+fn exec(opts: &Options, mut sess: Connection, count: usize) {
+ let mut sent_message = false;
+
+ let addrs = [
+ net::SocketAddr::from((net::Ipv6Addr::LOCALHOST, opts.port)),
+ net::SocketAddr::from((net::Ipv4Addr::LOCALHOST, opts.port)),
+ ];
+ let mut conn = net::TcpStream::connect(&addrs[..]).expect("cannot connect");
+ let mut sent_shutdown = false;
+ let mut sent_exporter = false;
+ let mut quench_writes = false;
+
+ loop {
+ if !sent_message && (opts.queue_data || (opts.queue_data_on_resume && count > 0)) {
+ if !opts
+ .queue_early_data_after_received_messages
+ .is_empty()
+ {
+ flush(&mut sess, &mut conn);
+ for message_size_estimate in &opts.queue_early_data_after_received_messages {
+ read_n_bytes(&mut sess, &mut conn, *message_size_estimate);
+ }
+ println!("now ready for early data");
+ }
+
+ if count > 0 && opts.enable_early_data {
+ let len = client(&mut sess)
+ .early_data()
+ .expect("0rtt not available")
+ .write(b"hello")
+ .expect("0rtt write failed");
+ sess.writer()
+ .write_all(&b"hello"[len..])
+ .unwrap();
+ sent_message = true;
+ } else if !opts.only_write_one_byte_after_handshake {
+ let _ = sess.writer().write_all(b"hello");
+ sent_message = true;
+ }
+ }
+
+ if !quench_writes {
+ flush(&mut sess, &mut conn);
+ }
+
+ if sess.wants_read() {
+ read_all_bytes(&mut sess, &mut conn);
+ }
+
+ if opts.side == Side::Server && opts.enable_early_data {
+ if let Some(ref mut ed) = server(&mut sess).early_data() {
+ let mut data = Vec::new();
+ let data_len = ed
+ .read_to_end(&mut data)
+ .expect("cannot read early_data");
+
+ for b in data.iter_mut() {
+ *b ^= 0xff;
+ }
+
+ sess.writer()
+ .write_all(&data[..data_len])
+ .expect("cannot echo early_data in 1rtt data");
+ }
+ }
+
+ if !sess.is_handshaking() && opts.export_keying_material > 0 && !sent_exporter {
+ let mut export = Vec::new();
+ export.resize(opts.export_keying_material, 0u8);
+ sess.export_keying_material(
+ &mut export,
+ opts.export_keying_material_label
+ .as_bytes(),
+ if opts.export_keying_material_context_used {
+ Some(
+ opts.export_keying_material_context
+ .as_bytes(),
+ )
+ } else {
+ None
+ },
+ )
+ .unwrap();
+ sess.writer()
+ .write_all(&export)
+ .unwrap();
+ sent_exporter = true;
+ }
+
+ if !sess.is_handshaking() && opts.only_write_one_byte_after_handshake && !sent_message {
+ println!("writing message and then only one byte of its tls frame");
+ flush(&mut sess, &mut conn);
+
+ sess.writer()
+ .write_all(b"hello")
+ .unwrap();
+ sent_message = true;
+
+ let mut one_byte = [0u8];
+ let mut cursor = io::Cursor::new(&mut one_byte[..]);
+ sess.write_tls(&mut cursor).unwrap();
+ conn.write_all(&one_byte)
+ .expect("IO error");
+
+ quench_writes = true;
+ }
+
... 78954 lines suppressed ...
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org