• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tpm2-software / tpm2-abrmd / 951
80%

Build:
DEFAULT BRANCH: master
Ran 01 Oct 2018 03:22PM UTC
Jobs 1
Files 62
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
951

push

travis-ci

flihp
Handle ContextSave and ContextLoad operations for sessions.

This commit contains structural changes that are required for handling
the context gap response code. The previous approach was as passive as
possible when it came to handling sessions. The ResourceManager passed
all ContextSave and ContextLoad commands through to the TPM and
extracting the data it needed from them as they passed. This data was
sufficient for us to load and save contexts when clients referenced them
in the handle / auth area of a command.

This design works so long as we don't need to load / save a session
context in between a ContextSave & ContextLoad from the Connection that
owns it. We previously worked around this by refusing to do this. This
was fine since the TPM throws errors if it receives a command that
references sessions that aren't loaded and we were just preserving this
behavior.

This design falls down if we ever encounter a situation in which we
*must* break the rules described above. Handling the context gap is
exactly this situation. This commit changes this design as follows:

SessionEntry: This is where we store the context object when it's saved.
We now maintain two copies of the context object. The first is the copy
that the ResourceManager uses, the second is the one that we expose to
the client. These TPMS_CONTEXT structures are stored in their marshalled
form. We also add a few utility functions to make handling these blobs
easier.

tpm2-header: This commit adds a convenience function to this module for
setting the header fields in a memory blob. This is very useful when
we're constructing response buffers to send back to the caller on behalf
of the TPM.

Tpm2Command: We've added two new functions to create TPM2_ContextLoad
and TPM2_ContextSave commands. Now that we're storing the TPMS_CONTEXT
structures as marshalled blobs we use a different interface in the
AccessBroker to send Tpm2Command objects that we generate manually.
Since the ResourceManager... (continued)

2904 of 3614 relevant lines covered (80.35%)

578.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 951.1 01 Oct 2018 03:22PM UTC 0
80.35
Travis Job 951.1
Source Files on build 951
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #951
  • e37e33eb on github
  • Prev Build on master (#948)
  • Next Build on master (#956)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc