fn create_css(&mut self, css_path: &Path) -> Result<(), Error> {
        let signed_enclave = if let Some(signed_enclave) = &self.signed_enclave {
            rerun_if_changed!(signed_enclave
                .as_os_str()
                .to_str()
                .expect("Invalid UTF-8 in signed enclave path"));
            signed_enclave.clone()
        } else {
            warning!("Signed enclave not provided, trying to sign it...");
            let mut signed_enclave_name = "lib".to_owned();
            signed_enclave_name.push_str(&self.name);
            let mut signed_enclave = self.out_dir.join(&signed_enclave_name);
            signed_enclave.set_extension("signed.so");
            self.sign_enclave(&signed_enclave)?;
            signed_enclave
        };

        let mut dump_path = self.out_dir.join(&self.name);
        dump_path.set_extension("dump");
        if self
            .signer
            .dump(&signed_enclave, css_path, &dump_path)
            .status()?
            .success()
        {
            Ok(())
        } else {
            Err(Error::SgxSignDump)
        }
    }
/// Get a CSS file dump to the path
Get a CSS file dump to the path
Get a CSS file dump to the path
fn create_css(&mut self, css_path: &Path) -> Result<(), Error> {
        let signed_enclave = if let Some(signed_enclave) = &self.signed_enclave {
            rerun_if_changed!(signed_enclave
                .as_os_str()
                .to_str()
                .expect("Invalid UTF-8 in signed enclave path"));
            signed_enclave.clone()
        } else {
            warning!("Signed enclave not provided, trying to sign it...");
            let mut signed_enclave_name = "lib".to_owned();
            signed_enclave_name.push_str(&self.name);
            let mut signed_enclave = self.out_dir.join(&signed_enclave_name);
            signed_enclave.set_extension("signed.so");
            self.sign_enclave(&signed_enclave)?;
            signed_enclave
        };
        let mut dump_path = self.out_dir.join(&self.name);
        dump_path.set_extension("dump");
        if self
            .signer
            .dump(&signed_enclave, css_path, &dump_path)
            .status()?
            .success()
        {
            Ok(())
        } else {
            Err(Error::SgxSignDump)
        }
    }
fn create_css ( & mut self , css_path : & Path ) -> Result < ( ) , Error > { let signed_enclave = if let Some ( signed_enclave ) = & self . signed_enclave { rerun_if_changed ! ( signed_enclave as_os_str ( ) to_str ( ) expect ( " " ) ) ; signed_enclave . clone ( ) } else { warning ! ( " " ) ; let mut signed_enclave_name = " " . to_owned ( ) ; signed_enclave_name . push_str ( & self . name ) ; let mut signed_enclave = self . out_dir . join ( & signed_enclave_name ) ; signed_enclave . set_extension ( " " ) ; self . sign_enclave ( & signed_enclave ) ? ; signed_enclave } ; let mut dump_path = self . out_dir . join ( & self . name ) ; dump_path . set_extension ( " " ) ; if self . signer . dump ( & signed_enclave , css_path , & dump_path ) . status ( ) ? . success ( ) { Ok ( ( ) ) } else { Err ( Error :: SgxSignDump ) } }
Get a CSS file dump to the path
Get a CSS file dump to the path
&mut self
css_path
&Path
&mut self
css_path
&Path