Skip to content

Conversation

@wmjdgla
Copy link

@wmjdgla wmjdgla commented Aug 17, 2021

Issue #94
Problem was because TpmAtt.h was redefining a number of structs from the SDK's wbcl.h, so they have been removed.
TpmAtt.h also declared 3 functions that are already declared in wbcl.h, but we cannot remove them because TpmAtt dll is exporting these functions and thus they must be declared with the __declspec(dllexport) storage class (which wbcl.h doesn't). TpmAtt is defining and exporting these functions because the repo does not have tpmapi.lib to link against. So no choice but to rename them. An alternative solution may be to use a .def file to export the functions (thereby avoiding the need to redeclare the functions with __declspec(dllexport)). This will allow us to keep the original function name.

Problem was because TpmAtt.h was redefining a number of structs from the SDK's wbcl.h, so they have been removed.
TpmAtt.h also declared 3 functions that are already declared in wbcl.h, but we cannot remove them because TpmAtt dll is exporting these functions and thus they must be declared with the __declspec(dllexport) storage class (which wbcl.h doesn't). TpmAtt is defining and exporting these functions because the repo does not have tpmapi.lib to link against. So no choice but to rename them. An alternative solution may be to use a .def file to export the functions (thereby avoiding the need to redeclare the functions with __declspec(dllexport)). This will allow us to keep the original function name.
@ghost
Copy link

ghost commented Aug 17, 2021

CLA assistant check
All CLA requirements met.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant