/// Obtain target info from QE.
Obtain target info from QE.
Obtain target info from QE .
pub fn init_quote(&self) -> Result<QuoteInfo> {
        let mut req = Request_InitQuoteRequest::new();
        req.set_timeout(LOCAL_AESM_TIMEOUT_US);
        let mut res = self.transact(req)?;
        let (target_info, mut gid) = (res.take_targetInfo(), res.take_gid());
        // AESM gives it to us little-endian, we want big-endian for writing into IAS URL with to_hex()
        gid.reverse();
        Ok(QuoteInfo { target_info, gid })
    }
pub fn init_quote ( & self ) -> Result < QuoteInfo > { let mut req = Request_InitQuoteRequest :: new ( ) ; req . set_timeout ( LOCAL_AESM_TIMEOUT_US ) ; let mut res = self . transact ( req ) ? ; let ( target_info , mut gid ) = ( res . take_targetInfo ( ) , res . take_gid ( ) ) ; // AESM gives it to us little-endian, we want big-endian for writing into IAS URL with to_hex() gid . reverse ( ) ; Ok ( QuoteInfo { target_info , gid } ) }
Obtain target info from QE.
Obtain target info from QE .
&self