Function
reject_transport_credentials
(
headers: &std::collections::HashMap<String, String>,
url: &Option<String>,
)
Source from the content-addressed store, hash-verified
| 411 | } |
| 412 | |
| 413 | fn reject_transport_credentials( |
| 414 | headers: &std::collections::HashMap<String, String>, |
| 415 | url: &Option<String>, |
| 416 | ) -> Result<(), Status> { |
| 417 | if !headers.is_empty() || url.is_some() { |
| 418 | return Err(Status::invalid_argument( |
| 419 | "trusted local sync does not accept auth_headers or remote_url", |
| 420 | )); |
| 421 | } |
| 422 | Ok(()) |
| 423 | } |
| 424 | |
| 425 | fn auth_status(error: auth::AuthError) -> Status { |
| 426 | match error { |
Tested by
no test coverage detected