(&self, count: u32)
| 305 | } |
| 306 | |
| 307 | async fn get_logs(&self, count: u32) -> Result<Vec<CTLog>> { |
| 308 | let url = format!( |
| 309 | "{}/?q={}&output=json&limit={}", |
| 310 | BASE_URL, self.base_domain, count |
| 311 | ); |
| 312 | let response = reqwest::get(&url).await?; |
| 313 | Ok(response.json().await?) |
| 314 | } |
| 315 | |
| 316 | async fn check_one_log(&self, log: &CTLog) -> Result<()> { |
| 317 | let cert_url = format!("{}/?d={}", BASE_URL, log.id); |