fix all examples with renamed method names
This commit is contained in:
parent
1555f383f9
commit
ddc34a5a10
@ -19,7 +19,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
|
|
||||||
let config = RaTlsConfig::new().allow_instance_measurement(
|
let config = RaTlsConfig::new().allow_instance_measurement(
|
||||||
// InstanceMeasurement::new().with_mrsigners(vec![mrsigner])
|
// InstanceMeasurement::new().with_mrsigners(vec![mrsigner])
|
||||||
InstanceMeasurement::new().load_mr_signer_from_processor()?,
|
InstanceMeasurement::new().with_current_mrsigner()?,
|
||||||
);
|
);
|
||||||
|
|
||||||
let tls = ClientConfig::from_ratls_config(config)
|
let tls = ClientConfig::from_ratls_config(config)
|
||||||
|
@ -35,7 +35,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
|
|
||||||
let config = RaTlsConfig::new().allow_instance_measurement(
|
let config = RaTlsConfig::new().allow_instance_measurement(
|
||||||
// InstanceMeasurement::new().with_mrsigners(vec![mrsigner])
|
// InstanceMeasurement::new().with_mrsigners(vec![mrsigner])
|
||||||
InstanceMeasurement::new().load_mr_signer_from_processor()?,
|
InstanceMeasurement::new().with_current_mrsigner()?,
|
||||||
);
|
);
|
||||||
|
|
||||||
let mut tls = ServerConfig::from_ratls_config(config)
|
let mut tls = ServerConfig::from_ratls_config(config)
|
||||||
|
@ -12,7 +12,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
let client = ClientBuilder::new()
|
let client = ClientBuilder::new()
|
||||||
.use_ratls(RaTlsConfig::new().allow_instance_measurement(
|
.use_ratls(RaTlsConfig::new().allow_instance_measurement(
|
||||||
// InstanceMeasurement::new().with_mrsigners(vec![mrsigner]),
|
// InstanceMeasurement::new().with_mrsigners(vec![mrsigner]),
|
||||||
InstanceMeasurement::new().load_mr_signer_from_processor()?,
|
InstanceMeasurement::new().with_current_mrsigner()?,
|
||||||
))
|
))
|
||||||
.build()?;
|
.build()?;
|
||||||
let res = client.get("https://127.0.0.1:8000").send().await?;
|
let res = client.get("https://127.0.0.1:8000").send().await?;
|
||||||
|
@ -20,7 +20,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
SocketAddr::from(([127, 0, 0, 1], 8000)),
|
SocketAddr::from(([127, 0, 0, 1], 8000)),
|
||||||
RaTlsConfig::new().allow_instance_measurement(
|
RaTlsConfig::new().allow_instance_measurement(
|
||||||
// InstanceMeasurement::new().with_mrsigners(vec![mrsigner]),
|
// InstanceMeasurement::new().with_mrsigners(vec![mrsigner]),
|
||||||
InstanceMeasurement::new().load_mr_signer_from_processor()?,
|
InstanceMeasurement::new().with_current_mrsigner()?,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
Loading…
Reference in New Issue
Block a user