teaclave-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ms...@apache.org
Subject [incubator-teaclave] branch develop updated: [attestation] Remove commented useless code
Date Fri, 10 Jan 2020 06:21:33 GMT
This is an automated email from the ASF dual-hosted git repository.

mssun pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git


The following commit(s) were added to refs/heads/develop by this push:
     new 07df32d  [attestation] Remove commented useless code
07df32d is described below

commit 07df32dad60452516badae7b494fb0ab4e595155
Author: Mingshen Sun <bob@mssun.me>
AuthorDate: Thu Jan 9 22:13:01 2020 -0800

    [attestation] Remove commented useless code
---
 attestation/src/quote.rs | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/attestation/src/quote.rs b/attestation/src/quote.rs
index ac6aa3d..b0bdbd5 100644
--- a/attestation/src/quote.rs
+++ b/attestation/src/quote.rs
@@ -266,18 +266,6 @@ impl SgxQuote {
         let sig_cert = webpki::EndEntityCert::from(&sig_cert_dec)
             .map_err(|_| CertVerificationError::InvalidCertFormat)?;
 
-        // Verify if the signing cert is issued by Intel CA
-        // let mut ias_ca_stripped = ias_report_ca_cert.to_vec();
-        // ias_ca_stripped.retain(|&x| x != 0x0d && x != 0x0a);
-        // let head_len = "-----BEGIN CERTIFICATE-----".len();
-        // let tail_len = "-----END CERTIFICATE-----".len();
-        // let full_len = ias_ca_stripped.len();
-        // let ias_ca_core: &[u8] = &ias_ca_stripped[head_len..full_len - tail_len];
-        // let ias_cert_dec = base64::decode_config(ias_ca_core, base64::STANDARD)
-        //     .map_err(|_| CertVerificationError::InvalidCertFormat)?;
-
-        // let mut ca_reader = BufReader::new(ias_report_ca_cert);
-
         let mut root_store = rustls::RootCertStore::empty();
         root_store
             .add(&rustls::Certificate(ias_report_ca_cert.to_vec()))


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org


Mime
View raw message