-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TCTI: Separate namespaces for internal struct #2843
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -622,7 +622,7 @@ TSS2_RC Tss2_Tcti_Cmd_Init (TSS2_TCTI_CONTEXT *tctiContext, size_t *size, | |||||
} | ||||||
|
||||||
/* public info structure */ | ||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_cmd_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = TCTI_CMD_NAME, | ||||||
.description = TCTI_CMD_DESCRIPTION, | ||||||
|
@@ -633,5 +633,5 @@ const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
const TSS2_TCTI_INFO* | ||||||
Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_cmd_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -530,7 +530,7 @@ Tss2_Tcti_Device_Init ( | |||||
return TSS2_RC_SUCCESS; | ||||||
} | ||||||
|
||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_device_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-device", | ||||||
.description = "TCTI module for communication with Linux kernel interface.", | ||||||
|
@@ -542,5 +542,5 @@ const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
const TSS2_TCTI_INFO* | ||||||
Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_device_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -280,7 +280,7 @@ Tss2_Tcti_I2c_Ftdi_Init (TSS2_TCTI_CONTEXT* tcti_context, size_t* size, const ch | |||||
return Tss2_Tcti_I2c_Helper_Init (tcti_context, size, &tcti_platform); | ||||||
} | ||||||
|
||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_i2c_ftdi_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-i2c-ftdi", | ||||||
.description = "TCTI for communicating with TPM through the USB-FTDI-I2C converter.", | ||||||
|
@@ -291,5 +291,5 @@ const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
const TSS2_TCTI_INFO * | ||||||
Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_i2c_ftdi_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -846,7 +846,7 @@ TSS2_RC Tss2_Tcti_I2c_Helper_Init (TSS2_TCTI_CONTEXT* tcti_context, size_t* size | |||||
return TSS2_RC_SUCCESS; | ||||||
} | ||||||
|
||||||
static const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_i2c_helper_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-i2c-helper", | ||||||
.description = "Platform independent TCTI for communication with TPMs over I2C.", | ||||||
|
@@ -861,5 +861,5 @@ static const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
|
||||||
const TSS2_TCTI_INFO* Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_i2c_helper_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -880,7 +880,7 @@ Tss2_Tcti_Libtpms_Init( | |||||
} | ||||||
|
||||||
/* public info structure */ | ||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_libtpms_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-libtpms", | ||||||
.description = "TCTI module for communication with the libtpms library.", | ||||||
|
@@ -891,5 +891,5 @@ const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
const TSS2_TCTI_INFO * | ||||||
Tss2_Tcti_Info(void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_libtpms_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -666,7 +666,7 @@ Tss2_Tcti_Mssim_Init ( | |||||
} | ||||||
|
||||||
/* public info structure */ | ||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_mssim_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-socket", | ||||||
.description = "TCTI module for communication with the Microsoft TPM2 Simulator.", | ||||||
|
@@ -677,5 +677,5 @@ const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
const TSS2_TCTI_INFO* | ||||||
Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_mssim_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -286,7 +286,7 @@ Tss2_Tcti_Pcap_Init ( | |||||
} | ||||||
|
||||||
/* public info structure */ | ||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_pcap_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-pcap", | ||||||
.description = "TCTI module for logging TPM commands in pcapng format.", | ||||||
|
@@ -297,5 +297,5 @@ const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
const TSS2_TCTI_INFO* | ||||||
Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_pcap_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -188,7 +188,7 @@ Tss2_Tcti_Spi_Ftdi_Init (TSS2_TCTI_CONTEXT* tcti_context, size_t* size, const ch | |||||
return Tss2_Tcti_Spi_Helper_Init (tcti_context, size, &tcti_platform); | ||||||
} | ||||||
|
||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_spi_ftdi_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-spi-ftdi", | ||||||
.description = "TCTI for communicating with TPM through the USB-FTDI-SPI converter.", | ||||||
|
@@ -199,5 +199,5 @@ const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
const TSS2_TCTI_INFO * | ||||||
Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_spi_ftdi_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -767,7 +767,7 @@ TSS2_RC Tss2_Tcti_Spi_Helper_Init (TSS2_TCTI_CONTEXT* tcti_context, size_t* size | |||||
return TSS2_RC_SUCCESS; | ||||||
} | ||||||
|
||||||
static const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_spi_helper_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-spi-helper", | ||||||
.description = "Platform independent TCTI for communication with TPMs over SPI.", | ||||||
|
@@ -782,5 +782,5 @@ static const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
|
||||||
const TSS2_TCTI_INFO* Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_spi_helper_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -314,7 +314,7 @@ Tss2_Tcti_Spi_Ltt2go_Init (TSS2_TCTI_CONTEXT* tcti_context, size_t* size, const | |||||
return Tss2_Tcti_Spi_Helper_Init (tcti_context, size, &tcti_platform); | ||||||
} | ||||||
|
||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_ltt2go_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-spi-ltt2go", | ||||||
.description = "TCTI for communicating with LetsTrust-TPM2Go.", | ||||||
|
@@ -325,5 +325,5 @@ const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
const TSS2_TCTI_INFO * | ||||||
Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_ltt2go_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -197,7 +197,7 @@ Tss2_Tcti_Spidev_Init (TSS2_TCTI_CONTEXT* tcti_context, size_t* size, const char | |||||
return Tss2_Tcti_Spi_Helper_Init (tcti_context, size, &platform); | ||||||
} | ||||||
|
||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_spidev_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-spidev", | ||||||
.description = "TCTI for communicating with a TPM via spidev.", | ||||||
|
@@ -208,5 +208,5 @@ const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
const TSS2_TCTI_INFO * | ||||||
Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_spidev_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -639,7 +639,7 @@ Tss2_Tcti_Swtpm_Init ( | |||||
} | ||||||
|
||||||
/* public info structure */ | ||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_swtpm_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-swtpm", | ||||||
.description = "TCTI module for communication with the swtpm.", | ||||||
|
@@ -650,5 +650,5 @@ const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
const TSS2_TCTI_INFO* | ||||||
Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_swtpm_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -315,7 +315,7 @@ Tss2_Tcti_Tbs_Init ( | |||||
return TSS2_RC_SUCCESS; | ||||||
} | ||||||
|
||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_tbs_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-tbs", | ||||||
.description = "TCTI module for communication with Windows TPM Base Services", | ||||||
|
@@ -326,5 +326,5 @@ const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
const TSS2_TCTI_INFO* | ||||||
Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_tbs_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -587,7 +587,7 @@ TSS2_RC Tss2_Tcti_TctiLdr_Init (TSS2_TCTI_CONTEXT *tctiContext, size_t *size, | |||||
} | ||||||
|
||||||
__attribute__((weak)) | ||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tctildr_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tctildr", | ||||||
.description = "TCTI module for dynamically loading other TCTI modules", | ||||||
|
@@ -615,5 +615,5 @@ __attribute__((weak)) | |||||
const TSS2_TCTI_INFO* | ||||||
Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tctildr_info; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -265,7 +265,7 @@ Tss2_Tcti_Fuzzing_Init ( | |||||
} | ||||||
|
||||||
/* public info structure */ | ||||||
const TSS2_TCTI_INFO tss2_tcti_info = { | ||||||
const TSS2_TCTI_INFO tss2_tcti_fuzzing_info = { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.version = TCTI_VERSION, | ||||||
.name = "tcti-fuzzing", | ||||||
.description = "TCTI module for fuzzing the System API.", | ||||||
|
@@ -276,5 +276,5 @@ const TSS2_TCTI_INFO tss2_tcti_info = { | |||||
const TSS2_TCTI_INFO* | ||||||
Tss2_Tcti_Info (void) | ||||||
{ | ||||||
return &tss2_tcti_info; | ||||||
return &tss2_tcti_fuzzing_info; | ||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndreasFuchsTPM any reason not to make these
static
too, just to reduce the incidence of these?