Skip to content

Commit f2f98b1

Browse files
author
tlspuffin
committed
1 parent 90f3cd3 commit f2f98b1

File tree

105 files changed

+307
-119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+307
-119
lines changed

website/api/search-index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/api/src/tlspuffin/tls/fn_extensions.rs.html

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,23 @@
657657
<a href="#657" id="657">657</a>
658658
<a href="#658" id="658">658</a>
659659
<a href="#659" id="659">659</a>
660+
<a href="#660" id="660">660</a>
661+
<a href="#661" id="661">661</a>
662+
<a href="#662" id="662">662</a>
663+
<a href="#663" id="663">663</a>
664+
<a href="#664" id="664">664</a>
665+
<a href="#665" id="665">665</a>
666+
<a href="#666" id="666">666</a>
667+
<a href="#667" id="667">667</a>
668+
<a href="#668" id="668">668</a>
669+
<a href="#669" id="669">669</a>
670+
<a href="#670" id="670">670</a>
671+
<a href="#671" id="671">671</a>
672+
<a href="#672" id="672">672</a>
673+
<a href="#673" id="673">673</a>
674+
<a href="#674" id="674">674</a>
675+
<a href="#675" id="675">675</a>
676+
<a href="#676" id="676">676</a>
660677
</pre></div><pre class="rust"><code><span class="attr">#![allow(clippy::ptr_arg)]
661678
#![allow(dead_code)]
662679

@@ -866,9 +883,26 @@
866883
<span class="doccomment">/// CertificateType =&gt; 0x0009,
867884
</span>}
868885
<span class="doccomment">/// EllipticCurves =&gt; 0x000a,
869-
</span><span class="kw">pub fn </span>fn_support_group_extension(group: <span class="kw-2">&amp;</span>NamedGroup) -&gt; <span class="prelude-ty">Result</span>&lt;ClientExtension, FnError&gt; {
870-
<span class="prelude-val">Ok</span>(ClientExtension::NamedGroups(NamedGroups(<span class="macro">vec!</span>[<span class="kw-2">*</span>group])))
886+
</span><span class="kw">pub fn </span>fn_support_group_extension_make(
887+
groups: <span class="kw-2">&amp;</span>Vec&lt;NamedGroup&gt;,
888+
) -&gt; <span class="prelude-ty">Result</span>&lt;ClientExtension, FnError&gt; {
889+
<span class="prelude-val">Ok</span>(ClientExtension::NamedGroups(NamedGroups(groups.clone())))
871890
}
891+
892+
<span class="kw">pub fn </span>fn_support_group_extension_new() -&gt; <span class="prelude-ty">Result</span>&lt;Vec&lt;NamedGroup&gt;, FnError&gt; {
893+
<span class="prelude-val">Ok</span>(<span class="macro">vec!</span>[])
894+
}
895+
896+
<span class="kw">pub fn </span>fn_support_group_extension_append(
897+
groups: <span class="kw-2">&amp;</span>Vec&lt;NamedGroup&gt;,
898+
group: <span class="kw-2">&amp;</span>NamedGroup,
899+
) -&gt; <span class="prelude-ty">Result</span>&lt;Vec&lt;NamedGroup&gt;, FnError&gt; {
900+
<span class="kw">let </span><span class="kw-2">mut </span>new_groups = groups.clone();
901+
new_groups.push(group.clone());
902+
903+
<span class="prelude-val">Ok</span>(new_groups)
904+
}
905+
872906
<span class="comment">// ECPointFormats =&gt; 0x000b,
873907
</span><span class="kw">pub fn </span>fn_ec_point_formats_extension() -&gt; <span class="prelude-ty">Result</span>&lt;ClientExtension, FnError&gt; {
874908
<span class="prelude-val">Ok</span>(ClientExtension::ECPointFormats(ECPointFormatList(<span class="macro">vec!</span>[

website/api/src/tlspuffin/tls/fn_utils.rs.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,10 @@
643643
<a href="#643" id="643">643</a>
644644
<a href="#644" id="644">644</a>
645645
<a href="#645" id="645">645</a>
646+
<a href="#646" id="646">646</a>
647+
<a href="#647" id="647">647</a>
648+
<a href="#648" id="648">648</a>
649+
<a href="#649" id="649">649</a>
646650
</pre></div><pre class="rust"><code><span class="attr">#![allow(clippy::ptr_arg)]
647651
#![allow(dead_code)]
648652

@@ -1277,6 +1281,10 @@
12771281
<span class="prelude-val">Ok</span>(new_certs)
12781282
}
12791283

1284+
<span class="kw">pub fn </span>fn_named_group_secp256r1() -&gt; <span class="prelude-ty">Result</span>&lt;NamedGroup, FnError&gt; {
1285+
<span class="prelude-val">Ok</span>(NamedGroup::secp256r1)
1286+
}
1287+
12801288
<span class="kw">pub fn </span>fn_named_group_secp384r1() -&gt; <span class="prelude-ty">Result</span>&lt;NamedGroup, FnError&gt; {
12811289
<span class="prelude-val">Ok</span>(NamedGroup::secp384r1)
12821290
}

website/api/src/tlspuffin/tls/mod.rs.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@
292292
<a href="#292" id="292">292</a>
293293
<a href="#293" id="293">293</a>
294294
<a href="#294" id="294">294</a>
295+
<a href="#295" id="295">295</a>
296+
<a href="#296" id="296">296</a>
297+
<a href="#297" id="297">297</a>
295298
</pre></div><pre class="rust"><code><span class="doccomment">//! The *tls* module provides concrete implementations for the functions used in the term.
296299
//!
297300
//! The module offers a variety of
@@ -428,7 +431,6 @@
428431
fn_status_request_extension
429432
fn_status_request_server_extension
430433
fn_status_request_certificate_extension
431-
fn_support_group_extension
432434
fn_ec_point_formats_extension
433435
fn_ec_point_formats_server_extension
434436
fn_signature_algorithm_extension
@@ -508,6 +510,9 @@
508510
fn_cipher_suite13_aes_128_ccm_sha256
509511
fn_weak_export_cipher_suite
510512
fn_secure_rsa_cipher_suite12
513+
fn_support_group_extension_new
514+
fn_support_group_extension_make
515+
fn_support_group_extension_append [list]
511516
<span class="comment">// utils
512517
</span>fn_new_flight
513518
fn_append_flight [list]
@@ -545,6 +550,7 @@
545550
fn_append_certificate [list]
546551
fn_new_certificate_entries
547552
fn_append_certificate_entry [list]
553+
fn_named_group_secp256r1
548554
fn_named_group_secp384r1
549555
fn_named_group_x25519
550556
fn_u64_to_u32

website/api/src/tlspuffin/tls/rustls/msgs/message.rs.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,8 @@
546546
<a href="#546" id="546">546</a>
547547
<a href="#547" id="547">547</a>
548548
<a href="#548" id="548">548</a>
549+
<a href="#549" id="549">549</a>
550+
<a href="#550" id="550">550</a>
549551
</pre></div><pre class="rust"><code><span class="kw">use </span>std::any::TypeId;
550552

551553
<span class="kw">use </span>extractable_macro::Extractable;
@@ -966,6 +968,7 @@
966968
</span><span class="kw">impl </span>VecCodecWoSize <span class="kw">for </span>CertificateEntry {} <span class="comment">// u24
967969
</span><span class="kw">impl </span>VecCodecWoSize <span class="kw">for </span>CipherSuite {} <span class="comment">// u16
968970
</span><span class="kw">impl </span>VecCodecWoSize <span class="kw">for </span>PresharedKeyIdentity {} <span class="comment">//u16
971+
</span><span class="kw">impl </span>VecCodecWoSize <span class="kw">for </span>NamedGroup {} <span class="comment">//u16
969972

970973
</span><span class="attr">#[macro_export]
971974
</span><span class="macro">macro_rules!</span> try_read {
@@ -1078,6 +1081,7 @@
10781081
VecU16OfPayloadU8,
10791082
Vec&lt;u8&gt;,
10801083
<span class="prelude-ty">Option</span>&lt;Vec&lt;u8&gt;&gt;,
1084+
Vec&lt;NamedGroup&gt;,
10811085
Vec&lt;Vec&lt;u8&gt;&gt;,
10821086
bool,
10831087
<span class="comment">// Option&lt;Vec&lt;Vec&lt;u8&gt;&gt;&gt;,

website/api/src/tlspuffin/tls/seeds.rs.html

Lines changed: 88 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2615,6 +2615,46 @@
26152615
<a href="#2615" id="2615">2615</a>
26162616
<a href="#2616" id="2616">2616</a>
26172617
<a href="#2617" id="2617">2617</a>
2618+
<a href="#2618" id="2618">2618</a>
2619+
<a href="#2619" id="2619">2619</a>
2620+
<a href="#2620" id="2620">2620</a>
2621+
<a href="#2621" id="2621">2621</a>
2622+
<a href="#2622" id="2622">2622</a>
2623+
<a href="#2623" id="2623">2623</a>
2624+
<a href="#2624" id="2624">2624</a>
2625+
<a href="#2625" id="2625">2625</a>
2626+
<a href="#2626" id="2626">2626</a>
2627+
<a href="#2627" id="2627">2627</a>
2628+
<a href="#2628" id="2628">2628</a>
2629+
<a href="#2629" id="2629">2629</a>
2630+
<a href="#2630" id="2630">2630</a>
2631+
<a href="#2631" id="2631">2631</a>
2632+
<a href="#2632" id="2632">2632</a>
2633+
<a href="#2633" id="2633">2633</a>
2634+
<a href="#2634" id="2634">2634</a>
2635+
<a href="#2635" id="2635">2635</a>
2636+
<a href="#2636" id="2636">2636</a>
2637+
<a href="#2637" id="2637">2637</a>
2638+
<a href="#2638" id="2638">2638</a>
2639+
<a href="#2639" id="2639">2639</a>
2640+
<a href="#2640" id="2640">2640</a>
2641+
<a href="#2641" id="2641">2641</a>
2642+
<a href="#2642" id="2642">2642</a>
2643+
<a href="#2643" id="2643">2643</a>
2644+
<a href="#2644" id="2644">2644</a>
2645+
<a href="#2645" id="2645">2645</a>
2646+
<a href="#2646" id="2646">2646</a>
2647+
<a href="#2647" id="2647">2647</a>
2648+
<a href="#2648" id="2648">2648</a>
2649+
<a href="#2649" id="2649">2649</a>
2650+
<a href="#2650" id="2650">2650</a>
2651+
<a href="#2651" id="2651">2651</a>
2652+
<a href="#2652" id="2652">2652</a>
2653+
<a href="#2653" id="2653">2653</a>
2654+
<a href="#2654" id="2654">2654</a>
2655+
<a href="#2655" id="2655">2655</a>
2656+
<a href="#2656" id="2656">2656</a>
2657+
<a href="#2657" id="2657">2657</a>
26182658
</pre></div><pre class="rust"><code><span class="doccomment">//! Implementation of special traces. Each may represent a special TLS execution like a full
26192659
//! handshake or an execution which crashes OpenSSL.
26202660
</span><span class="attr">#![allow(dead_code)]
@@ -3417,7 +3457,12 @@
34173457
(fn_client_extensions_append(
34183458
(fn_client_extensions_append(
34193459
fn_client_extensions_new,
3420-
(fn_support_group_extension(fn_named_group_secp384r1))
3460+
(fn_support_group_extension_make(
3461+
(fn_support_group_extension_append(
3462+
fn_support_group_extension_new,
3463+
fn_named_group_secp384r1
3464+
))
3465+
))
34213466
)),
34223467
fn_signature_algorithm_extension
34233468
)),
@@ -3579,7 +3624,12 @@
35793624
(fn_client_extensions_append(
35803625
(fn_client_extensions_append(
35813626
fn_client_extensions_new,
3582-
(fn_support_group_extension(fn_named_group_secp384r1))
3627+
(fn_support_group_extension_make(
3628+
(fn_support_group_extension_append(
3629+
fn_support_group_extension_new,
3630+
fn_named_group_secp384r1
3631+
))
3632+
))
35833633
)),
35843634
fn_signature_algorithm_extension
35853635
)),
@@ -3664,7 +3714,12 @@
36643714
(fn_client_extensions_append(
36653715
(fn_client_extensions_append(
36663716
fn_client_extensions_new,
3667-
(fn_support_group_extension(fn_named_group_secp384r1))
3717+
(fn_support_group_extension_make(
3718+
(fn_support_group_extension_append(
3719+
fn_support_group_extension_new,
3720+
fn_named_group_secp384r1
3721+
))
3722+
))
36683723
)),
36693724
fn_signature_algorithm_extension
36703725
)),
@@ -3827,7 +3882,12 @@
38273882
(fn_client_extensions_append(
38283883
(fn_client_extensions_append(
38293884
fn_client_extensions_new,
3830-
(fn_support_group_extension(fn_named_group_secp384r1))
3885+
(fn_support_group_extension_make(
3886+
(fn_support_group_extension_append(
3887+
fn_support_group_extension_new,
3888+
fn_named_group_secp384r1
3889+
))
3890+
))
38313891
)),
38323892
fn_signature_algorithm_extension
38333893
)),
@@ -3965,7 +4025,12 @@
39654025
(fn_client_extensions_append(
39664026
(fn_client_extensions_append(
39674027
fn_client_extensions_new,
3968-
(fn_support_group_extension(fn_named_group_secp384r1))
4028+
(fn_support_group_extension_make(
4029+
(fn_support_group_extension_append(
4030+
fn_support_group_extension_new,
4031+
fn_named_group_secp384r1
4032+
))
4033+
))
39694034
)),
39704035
fn_signature_algorithm_extension
39714036
)),
@@ -4088,7 +4153,12 @@
40884153
(fn_client_extensions_append(
40894154
(fn_client_extensions_append(
40904155
fn_client_extensions_new,
4091-
(fn_support_group_extension(fn_named_group_secp384r1))
4156+
(fn_support_group_extension_make(
4157+
(fn_support_group_extension_append(
4158+
fn_support_group_extension_new,
4159+
fn_named_group_secp384r1
4160+
))
4161+
))
40924162
)),
40934163
fn_signature_algorithm_extension
40944164
)),
@@ -4276,7 +4346,12 @@
42764346
(fn_client_extensions_append(
42774347
(fn_client_extensions_append(
42784348
fn_client_extensions_new,
4279-
(fn_support_group_extension(fn_named_group_secp384r1))
4349+
(fn_support_group_extension_make(
4350+
(fn_support_group_extension_append(
4351+
fn_support_group_extension_new,
4352+
fn_named_group_secp384r1
4353+
))
4354+
))
42804355
)),
42814356
fn_signature_algorithm_extension
42824357
)),
@@ -4479,7 +4554,12 @@
44794554
(fn_client_extensions_append(
44804555
(fn_client_extensions_append(
44814556
fn_client_extensions_new,
4482-
(fn_support_group_extension(fn_named_group_secp384r1))
4557+
(fn_support_group_extension_make(
4558+
(fn_support_group_extension_append(
4559+
fn_support_group_extension_new,
4560+
fn_named_group_secp384r1
4561+
))
4562+
))
44834563
)),
44844564
fn_signature_algorithm_extension
44854565
)),

website/api/src/tlspuffin/tls/vulnerabilities.rs.html

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,31 @@
11471147
<a href="#1147" id="1147">1147</a>
11481148
<a href="#1148" id="1148">1148</a>
11491149
<a href="#1149" id="1149">1149</a>
1150+
<a href="#1150" id="1150">1150</a>
1151+
<a href="#1151" id="1151">1151</a>
1152+
<a href="#1152" id="1152">1152</a>
1153+
<a href="#1153" id="1153">1153</a>
1154+
<a href="#1154" id="1154">1154</a>
1155+
<a href="#1155" id="1155">1155</a>
1156+
<a href="#1156" id="1156">1156</a>
1157+
<a href="#1157" id="1157">1157</a>
1158+
<a href="#1158" id="1158">1158</a>
1159+
<a href="#1159" id="1159">1159</a>
1160+
<a href="#1160" id="1160">1160</a>
1161+
<a href="#1161" id="1161">1161</a>
1162+
<a href="#1162" id="1162">1162</a>
1163+
<a href="#1163" id="1163">1163</a>
1164+
<a href="#1164" id="1164">1164</a>
1165+
<a href="#1165" id="1165">1165</a>
1166+
<a href="#1166" id="1166">1166</a>
1167+
<a href="#1167" id="1167">1167</a>
1168+
<a href="#1168" id="1168">1168</a>
1169+
<a href="#1169" id="1169">1169</a>
1170+
<a href="#1170" id="1170">1170</a>
1171+
<a href="#1171" id="1171">1171</a>
1172+
<a href="#1172" id="1172">1172</a>
1173+
<a href="#1173" id="1173">1173</a>
1174+
<a href="#1174" id="1174">1174</a>
11501175
</pre></div><pre class="rust"><code><span class="attr">#![allow(dead_code)]
11511176

11521177
</span><span class="kw">use </span>puffin::agent::{AgentDescriptor, AgentName};
@@ -1182,7 +1207,12 @@
11821207
(fn_client_extensions_append(
11831208
(fn_client_extensions_append(
11841209
fn_client_extensions_new,
1185-
(fn_support_group_extension(fn_named_group_secp384r1))
1210+
(fn_support_group_extension_make(
1211+
(fn_support_group_extension_append(
1212+
fn_support_group_extension_new,
1213+
fn_named_group_secp384r1
1214+
))
1215+
))
11861216
)),
11871217
fn_signature_algorithm_extension
11881218
)),
@@ -1350,7 +1380,12 @@
13501380
(fn_client_extensions_append(
13511381
(fn_client_extensions_append(
13521382
fn_client_extensions_new,
1353-
(fn_support_group_extension(fn_named_group_secp384r1))
1383+
(fn_support_group_extension_make(
1384+
(fn_support_group_extension_append(
1385+
fn_support_group_extension_new,
1386+
fn_named_group_secp384r1
1387+
))
1388+
))
13541389
)),
13551390
fn_signature_algorithm_extension
13561391
)),
@@ -1487,7 +1522,12 @@
14871522
(fn_client_extensions_append(
14881523
(fn_client_extensions_append(
14891524
fn_client_extensions_new,
1490-
(fn_support_group_extension(fn_named_group_secp384r1))
1525+
(fn_support_group_extension_make(
1526+
(fn_support_group_extension_append(
1527+
fn_support_group_extension_new,
1528+
fn_named_group_secp384r1
1529+
))
1530+
))
14911531
)),
14921532
fn_ec_point_formats_extension
14931533
)),
@@ -1559,7 +1599,12 @@
15591599
(fn_client_extensions_append(
15601600
(fn_client_extensions_append(
15611601
fn_client_extensions_new,
1562-
(fn_support_group_extension(fn_named_group_secp384r1))
1602+
(fn_support_group_extension_make(
1603+
(fn_support_group_extension_append(
1604+
fn_support_group_extension_new,
1605+
fn_named_group_secp384r1
1606+
))
1607+
))
15631608
)),
15641609
fn_ec_point_formats_extension
15651610
)),
@@ -1703,7 +1748,12 @@
17031748
(fn_client_extensions_append(
17041749
(fn_client_extensions_append(
17051750
fn_client_extensions_new,
1706-
(fn_support_group_extension(fn_named_group_secp384r1))
1751+
(fn_support_group_extension_make(
1752+
(fn_support_group_extension_append(
1753+
fn_support_group_extension_new,
1754+
fn_named_group_secp384r1
1755+
))
1756+
))
17071757
)),
17081758
fn_signature_algorithm_extension
17091759
)),

website/api/tlspuffin/all.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)