Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions reticle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ impl ClientBuilder {
self
}

/// sets the confidential policy provider to URL source with the specified url
pub fn with_policies_url(mut self, url: &str) -> libattest::Result<Self> {
self.policies = Box::new(UrlPolicies::new(url)?);
Ok(self)
}

pub async fn build(self) -> Result<Client, AttestationError> {
let reqwest_client = reqwest::Client::builder()
.default_headers(self.headers)
Expand Down
Loading