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

tpm2-software / tpm2-tss / 1128
36%

Build:
DEFAULT BRANCH: master
Ran 03 Apr 2018 09:24PM UTC
Jobs 1
Files 755
Run time 33s
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
1128

push

travis-ci

Philip Tricca
tcti: Use separate structures for the device and mssim TCTI contexts.

Using the same structure for both the device and mssim TCTI was lazy. We
were also using the same magic number for both modules which had the
potential to cause confusion if one library was passed a TCTI
initialized by the other. This patch resolves both of these issues by
breaking the old TSS2_TCTI_CONTEXT_INTEL structure up into the
TSS2_TCTI_COMMON_CONTEXT and a structure specific to the device and
mssim TCTIs.

To accomplish this we rename the old 'tcti' module to 'tcti-common'.
This module defines a context structure containing all of the data
common to both the device and mssim TCTIs. This includes the v2
structure as well as a header structure, the enumeration to track the
state machine as well as the locality. We also create new header files
for the device and mssim TCTI. In these headers we define structures
specific to each module that hold the file descriptor for the device
TCTI and the socket file descriptors for the mssim TCTI.

Another significant change in this commit is the way we're now casting
the TCTI context structures passed into the functions for each TCTI
module. Functions in the device and mssim modules that are passed the
opaque TSS2_TCTI_CONTEXT structure start by first checking the magic
number in the context to be sure it's the right one for the module.
If this succeeds they then "down-cast" the structure to the
TSS2_TCTI_COMMON_CONTEXT and then use this structure to perform all of
the state checks. This reduces the number of unsafe cast operations that
we have to perform.

Finally there are a number of changes in this commit that qualify as
cleanup. This includes some name changes for variable and macro names to
align with the name changes.

Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>

22956 of 27969 relevant lines covered (82.08%)

78.51 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1128.1 03 Apr 2018 09:24PM UTC 0
82.08
Travis Job 1128.1
Source Files on build 1128
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1128
  • 850bb59f on github
  • Prev Build on master (#1125)
  • Next Build on master (#1131)
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