-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Richard Zak <[email protected]>
- Loading branch information
Showing
3 changed files
with
70 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]> | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
#![allow(unused_variables, unused_imports)] // temporary until CRL validation enabled | ||
|
||
pub mod config; | ||
pub mod quote; | ||
|
||
|
@@ -42,7 +40,7 @@ impl Sgx { | |
signer = signer.verify_crt(cert)?; | ||
} | ||
|
||
//PkiPath::from(chain).check_crl(crls)?; | ||
PkiPath::from(chain).check_crl(crls)?; | ||
|
||
Ok(signer) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]> | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
#![allow(unused_variables, unused_imports)] // temporary until CRL validation enabled | ||
|
||
pub mod config; | ||
|
||
use self::config::Config; | ||
|
@@ -254,9 +252,9 @@ impl Snp { | |
|
||
if let Some(signer) = signer { | ||
if signer == &vcek.tbs_certificate { | ||
//let mut path = path; | ||
//path.push(vcek.clone()); | ||
//path.check_crl(&certs.crl)?; | ||
let mut path = path; | ||
path.push(vcek.clone()); | ||
path.check_crl(&certs.crl)?; | ||
return Ok(&vcek.tbs_certificate); | ||
} | ||
} | ||
|