pub fn hierarchy_change_auth(&mut self, auth_handle: AuthHandle, new_auth: Auth) -> Result<()> {
        let ret = unsafe {
            Esys_HierarchyChangeAuth(
                self.mut_context(),
                auth_handle.into(),
                self.required_session_1()?,
                self.optional_session_2(),
                self.optional_session_3(),
                &new_auth.into(),
            )
        };
        let ret = Error::from_tss_rc(ret);
        if ret.is_success() {
            Ok(())
        } else {
            error!("Error changing hierarchy auth: {}", ret);
            Err(ret)
        }
    }
/// Change authorization for a hierarchy root
Change authorization for a hierarchy root
Change authorization for a hierarchy root
pub fn hierarchy_change_auth(&mut self, auth_handle: AuthHandle, new_auth: Auth) -> Result<()> {
        let ret = unsafe {
            Esys_HierarchyChangeAuth(
                self.mut_context(),
                auth_handle.into(),
                self.required_session_1()?,
                self.optional_session_2(),
                self.optional_session_3(),
                &new_auth.into(),
            )
        };
        let ret = Error::from_tss_rc(ret);
        if ret.is_success() {
            Ok(())
        } else {
            error!("Error changing hierarchy auth: {}", ret);
            Err(ret)
        }
    }
pub fn hierarchy_change_auth ( & mut self , auth_handle : AuthHandle , new_auth : Auth ) -> Result < ( ) > { let ret = unsafe { Esys_HierarchyChangeAuth ( self . mut_context ( ) , auth_handle . into ( ) , self . required_session_1 ( ) ? , self . optional_session_2 ( ) , self . optional_session_3 ( ) , & new_auth . into ( ) , ) } ; let ret = Error :: from_tss_rc ( ret ) ; if ret . is_success ( ) { Ok ( ( ) ) } else { error ! ( " " ret ) ; Err ( ret ) } }
Change authorization for a hierarchy root
Change authorization for a hierarchy root
&mut self
auth_handle
AuthHandle
new_auth
Auth
&mut self
auth_handle
AuthHandle
new_auth
Auth