pub struct WebPkiSupportedAlgorithms {
pub all: &'static [&'static dyn SignatureVerificationAlgorithm],
pub mapping: &'static [(SignatureScheme, &'static [&'static dyn SignatureVerificationAlgorithm])],
}展开描述
Describes which webpki signature verification algorithms are 受支持并
how they map 到 TLS SignatureSchemes.
字段§
§all: &'static [&'static dyn SignatureVerificationAlgorithm]A list of all supported signature verification algorithms.
用 用于 验证 certificate chains.
此 order of this list is not significant.
§mapping: &'static [(SignatureScheme, &'static [&'static dyn SignatureVerificationAlgorithm])]A mapping 从 TLS SignatureSchemes 到 matching webpki signature verification algorithms.
This is one (SignatureScheme) 到 many (SignatureVerificationAlgorithm) because
(depending on the protocol version) there is not necessary 一个 1-到-1 mapping.
For TLS1.2, all SignatureVerificationAlgorithms are tried in sequence.
For TLS 1.3, only the first is tried.
此 supported schemes in this mapping is communicated 到 the peer 并 the order is significant. 此 first mapping is our highest preference.
实现§
Source§impl WebPkiSupportedAlgorithms
impl WebPkiSupportedAlgorithms
Sourcepub fn supported_schemes(&self) -> Vec<SignatureScheme>
pub fn supported_schemes(&self) -> Vec<SignatureScheme>
返回 mapping 中的所有 scheme 项,保持顺序。
Trait 实现§
Source§impl Clone for WebPkiSupportedAlgorithms
impl Clone for WebPkiSupportedAlgorithms
Source§fn clone(&self) -> WebPkiSupportedAlgorithms
fn clone(&self) -> WebPkiSupportedAlgorithms
返回值的副本。 更多信息
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment 从
source. 更多信息Source§impl Debug for WebPkiSupportedAlgorithms
impl Debug for WebPkiSupportedAlgorithms
impl Copy for WebPkiSupportedAlgorithms
自动 Trait 实现§
impl Freeze for WebPkiSupportedAlgorithms
impl !RefUnwindSafe for WebPkiSupportedAlgorithms
impl Send for WebPkiSupportedAlgorithms
impl Sync for WebPkiSupportedAlgorithms
impl Unpin for WebPkiSupportedAlgorithms
impl UnsafeUnpin for WebPkiSupportedAlgorithms
impl !UnwindSafe for WebPkiSupportedAlgorithms
Blanket 实现§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows 从 an owned value. 更多信息