Commit 1f2a8a2 1 parent bef457f commit 1f2a8a2 Copy full SHA for 1f2a8a2
File tree 2 files changed +28
-4
lines changed
2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,13 @@ impl<'a> EndEntityCert<'a> {
143
143
/// `time` is the time for which the validation is effective (usually the
144
144
/// current time).
145
145
#[ allow( deprecated) ]
146
- #[ deprecated( since = "0.101.2" , note = "Use `verify_for_usage` instead" ) ]
146
+ #[ deprecated(
147
+ since = "0.101.2" ,
148
+ note = "The per-usage trust anchor representations and verification functions are deprecated in \
149
+ favor of the general-purpose `TrustAnchor` type and `EndEntity::verify_for_usage` function. \
150
+ The new `verify_for_usage` function expresses trust anchor and end entity purpose with the \
151
+ key usage argument."
152
+ ) ]
147
153
pub fn verify_is_valid_tls_server_cert (
148
154
& self ,
149
155
supported_sig_algs : & [ & SignatureAlgorithm ] ,
@@ -173,7 +179,13 @@ impl<'a> EndEntityCert<'a> {
173
179
/// the time for which the validation is effective (usually the current
174
180
/// time).
175
181
#[ allow( deprecated) ]
176
- #[ deprecated( since = "0.101.2" , note = "Use `verify_for_usage` instead" ) ]
182
+ #[ deprecated(
183
+ since = "0.101.2" ,
184
+ note = "The per-usage trust anchor representations and verification functions are deprecated in \
185
+ favor of the general-purpose `TrustAnchor` type and `EndEntity::verify_for_usage` function. \
186
+ The new `verify_for_usage` function expresses trust anchor and end entity purpose with the \
187
+ key usage argument."
188
+ ) ]
177
189
pub fn verify_is_valid_tls_client_cert (
178
190
& self ,
179
191
supported_sig_algs : & [ & SignatureAlgorithm ] ,
Original file line number Diff line number Diff line change @@ -24,12 +24,24 @@ pub struct TrustAnchor<'a> {
24
24
}
25
25
26
26
/// Trust anchors which may be used for authenticating servers.
27
- #[ deprecated( since = "0.101.2" ) ]
27
+ #[ deprecated(
28
+ since = "0.101.2" ,
29
+ note = "The per-usage trust anchor representations and verification functions are deprecated in \
30
+ favor of the general-purpose `TrustAnchor` type and `EndEntity::verify_for_usage` function. \
31
+ The new `verify_for_usage` function expresses trust anchor and end entity purpose with the \
32
+ key usage argument."
33
+ ) ]
28
34
#[ derive( Debug ) ]
29
35
pub struct TlsServerTrustAnchors < ' a > ( pub & ' a [ TrustAnchor < ' a > ] ) ;
30
36
31
37
/// Trust anchors which may be used for authenticating clients.
32
- #[ deprecated( since = "0.101.2" ) ]
38
+ #[ deprecated(
39
+ since = "0.101.2" ,
40
+ note = "The per-usage trust anchor representations and verification functions are deprecated in \
41
+ favor of the general-purpose `TrustAnchor` type and `EndEntity::verify_for_usage` function. \
42
+ The new `verify_for_usage` function expresses trust anchor and end entity purpose with the \
43
+ key usage argument."
44
+ ) ]
33
45
#[ derive( Debug ) ]
34
46
pub struct TlsClientTrustAnchors < ' a > ( pub & ' a [ TrustAnchor < ' a > ] ) ;
35
47
You can’t perform that action at this time.
0 commit comments