Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions TSS.NET/TSS.Net/SupportClasses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,16 @@ internal void Print(string name, string type, Object o)

type = intType;
}
if(o is TpmHandle)
{
TpmHandle tpmHandle = o as TpmHandle;
//Pring the HT of the handle
string handleName = tpmHandle.GetType().ToString();
//If it is a permanet handle, pring also the RH name
if(tpmHandle.GetType() == Ht.Permanent)
handleName += " -" + ((TpmRh)tpmHandle.handle).ToString();
name = string.Format("({0})", handleName);
}
// Print name and type but not the contents (printed recursively later)
AddLine(B, "{0}@-#{1}", name, type);
// Recurse
Expand Down