Struct tss_sapi::Context
[−]
[src]
pub struct Context { /* fields omitted */ }
Methods
impl Context
[src]
fn device(dev: Option<&str>) -> Result<Context>
[src]
fn socket(host: Option<&str>, port: Option<u16>) -> Result<Context>
[src]
fn password<T: ToString>(&mut self, auth_type: AuthType, passwd: T)
[src]
set the authentication password we will use
fn startup(&self, action: Startup) -> Result<()>
[src]
fn is_owned(&self) -> Result<bool>
[src]
check if the TPM is owned or not
fn take_ownership(&self, auth_type: HierarchyAuth, passwd: &str) -> Result<()>
[src]
take ownership of the TPM setting the Owner, Endorsement or Lockout passwords to passwd