commit | 4989a1b25c690255db597bec23844ed92174de05 | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Tue Apr 05 08:10:15 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Apr 05 08:10:15 2022 +0000 |
tree | 77d0cfd77b8e787cea9698a359edded16b851fb5 | |
parent | 6af6bff3a6261b522b9877929b54ee988ab4e0f2 [diff] | |
parent | befd9a6c19cff52c9ab9eae794ed1c71a5e29e41 [diff] |
Use the library in bcc_main am: befd9a6c19 Original change: https://android-review.googlesource.com/c/platform/tools/security/+/2049604 Change-Id: Ie4f3ab3a0b944201104673251f25608d44210304 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/remote_provisioning/cert_validator/src/bcc_main.rs b/remote_provisioning/cert_validator/src/bcc_main.rs index 0c8c3f8..6d2924f 100644 --- a/remote_provisioning/cert_validator/src/bcc_main.rs +++ b/remote_provisioning/cert_validator/src/bcc_main.rs
@@ -3,15 +3,9 @@ //! certificates are valid and that any given cert in the series correctly //! signs the next. -pub mod bcc; -pub mod deviceinfo; -pub mod dice; -pub mod publickey; -pub mod valueas; - -use std::env; - use anyhow::{ensure, Result}; +use cert_request_validator::bcc; +use std::env; fn main() -> Result<()> { ensure!(env::args().len() > 1, "Provide at least one bcc certificate file"); @@ -21,4 +15,4 @@ arr.push(item.to_string()); } bcc::entry::check_sign1_cert_chain(&arr) -} \ No newline at end of file +}