[prev in list] [next in list] [prev in thread] [next in thread] 

List:       trousers-tech
Subject:    Re: [TrouSerS-tech] tcsi_caps_tpm.c patch
From:       Wyllys Ingersoll <wyllys.ingersoll () sun ! com>
Date:       2008-12-09 21:54:48
Message-ID: 493EE928.4040503 () sun ! com
[Download RAW message or body]

Here is a the tcsi_caps_tpm.c patch,  this time using FlushSpecific.


*** src/tcs/tcsi_caps_tpm.c.old Mon Jul 30 12:56:33 2007
--- src/tcs/tcsi_caps_tpm.c     Tue Dec  9 13:46:04 2008
***************
*** 91,98 ****
--- 91,108 ----
        if (!result) {
                result = tpm_rsp_parse(TPM_ORD_GetCapabilityOwner, 
txBlob, paramSize, pVersion,
                                       pNonVolatileFlags, 
pVolatileFlags, pOwnerAuth);
+ #ifndef __sun__
        }
+ #else
+       } else if (result == 0x0a) {
+               /* ATML TPMs do not release the auth sessions when this 
command fails */
+               /* so we force a reset to avoid running out of sessions. */

+               (void) TCSP_FlushSpecific_Internal(hContext, 
pOwnerAuth->AuthHandle,
+                   TPM_RT_AUTH);
+       }
+ #endif /* __sun__ */
+
        LogResult("GetCapowner", result);
  done:
        auth_mgr_release_auth(pOwnerAuth, NULL, hContext);


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
TrouSerS-tech mailing list
TrouSerS-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/trousers-tech
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic