@@ -8,8 +8,9 @@ use clap::{Parser, Subcommand};
88use eyre:: { Context , Report } ;
99use rustls_pki_types:: CertificateDer ;
1010use rustls_pki_types:: pem:: PemObject ;
11- use upki:: revocation:: { Index , Manifest , RevocationCheckInput , fetch } ;
11+ use upki:: revocation:: { Index , Manifest , RevocationCheckInput } ;
1212use upki:: { Config , ConfigPath } ;
13+ use upki:: { intermediates, revocation} ;
1314
1415#[ tokio:: main( flavor = "current_thread" ) ]
1516async fn main ( ) -> Result < ExitCode , Report > {
@@ -33,7 +34,15 @@ async fn main() -> Result<ExitCode, Report> {
3334 let config = Config :: from_file_or_default ( & config_path) ?;
3435
3536 Ok ( match args. command {
36- Command :: Fetch { dry_run } => fetch ( dry_run, & config) . await ?,
37+ Command :: Fetch { dry_run } => {
38+ match (
39+ revocation:: fetch ( dry_run, & config) . await ?,
40+ intermediates:: fetch ( dry_run, & config) . await ?,
41+ ) {
42+ ( ExitCode :: SUCCESS , ExitCode :: SUCCESS ) => ExitCode :: SUCCESS ,
43+ ( ..) => ExitCode :: FAILURE ,
44+ }
45+ }
3746 Command :: Verify => Manifest :: from_config ( & config) ?. verify ( & config) ?,
3847 Command :: ShowConfigPath => unreachable ! ( ) ,
3948 Command :: ShowConfig => {
0 commit comments