net/transport/tls | crypto/constants : Match the order of impl members with the trait

This commit is contained in:
nighthawk24
2024-02-20 15:59:29 +01:00
committed by skoupidi
parent 668743b83a
commit 3d4bd17a2e
2 changed files with 11 additions and 11 deletions

View File

@@ -71,10 +71,6 @@ fn validate_dnsname(cert: &X509Certificate) -> std::result::Result<(), rustls::E
#[derive(Debug)]
struct ServerCertificateVerifier;
impl ServerCertVerifier for ServerCertificateVerifier {
fn supported_verify_schemes(&self) -> Vec<SignatureScheme> {
vec![SignatureScheme::ED25519]
}
fn verify_server_cert(
&self,
end_entity: &CertificateDer,
@@ -151,20 +147,20 @@ impl ServerCertVerifier for ServerCertificateVerifier {
Ok(HandshakeSignatureValid::assertion())
}
fn supported_verify_schemes(&self) -> Vec<SignatureScheme> {
vec![SignatureScheme::ED25519]
}
}
#[derive(Debug)]
struct ClientCertificateVerifier;
impl ClientCertVerifier for ClientCertificateVerifier {
fn supported_verify_schemes(&self) -> Vec<SignatureScheme> {
vec![SignatureScheme::ED25519]
}
fn client_auth_mandatory(&self) -> bool {
fn offer_client_auth(&self) -> bool {
true
}
fn offer_client_auth(&self) -> bool {
fn client_auth_mandatory(&self) -> bool {
true
}
@@ -246,6 +242,10 @@ impl ClientCertVerifier for ClientCertificateVerifier {
Ok(HandshakeSignatureValid::assertion())
}
fn supported_verify_schemes(&self) -> Vec<SignatureScheme> {
vec![SignatureScheme::ED25519]
}
}
pub struct TlsUpgrade {

View File

@@ -133,8 +133,8 @@ impl ConstBaseFieldElement {
impl FixedPoints<pallas::Affine> for OrchardFixedBases {
type FullScalar = OrchardFixedBasesFull;
type Base = ConstBaseFieldElement;
type ShortScalar = ValueCommitV;
type Base = ConstBaseFieldElement;
}
impl FixedPoint<pallas::Affine> for OrchardFixedBasesFull {