Skip to content

Commit

Permalink
cli/insecure: fix supported schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-tekuri committed Apr 25, 2024
1 parent aa5a4b4 commit f7b2c6c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/boon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ use std::{env, error::Error, fs::File, io::BufReader, process, str::FromStr, syn

use boon::{Compiler, Draft, Schemas, UrlLoader};
use getopts::Options;
use rustls::{
client::danger::{HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier},
SignatureScheme,
};
use rustls::client::danger::{HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier};
use serde_json::Value;
use ureq::Agent;
use url::Url;
Expand Down Expand Up @@ -279,6 +276,8 @@ impl ServerCertVerifier for InsecureVerifier {
}

fn supported_verify_schemes(&self) -> Vec<rustls::SignatureScheme> {
vec![SignatureScheme::RSA_PSS_SHA256]
rustls::crypto::ring::default_provider()
.signature_verification_algorithms
.supported_schemes()
}
}

0 comments on commit f7b2c6c

Please sign in to comment.