Function
reject_transport_credentials
(
headers: &std::collections::HashMap<String, String>,
url: &Option<String>,
)
Source from the content-addressed store, hash-verified
| 474 | } |
| 475 | |
| 476 | fn reject_transport_credentials( |
| 477 | headers: &std::collections::HashMap<String, String>, |
| 478 | url: &Option<String>, |
| 479 | ) -> Result<(), Status> { |
| 480 | if !headers.is_empty() || url.is_some() { |
| 481 | return Err(Status::invalid_argument( |
| 482 | "trusted local sync does not accept auth_headers or remote_url", |
| 483 | )); |
| 484 | } |
| 485 | Ok(()) |
| 486 | } |
| 487 | |
| 488 | fn auth_status(error: auth::AuthError) -> Status { |
| 489 | match error { |
Tested by
no test coverage detected