Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
Signed-off-by: Juergen Repp <juergen_repp@web.de>
  • Loading branch information
JuergenReppSIT committed Oct 22, 2024
1 parent 25c7c0f commit 3c83c25
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tss2-tcti/tcti-libtpms.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ tcti_libtpms_dl(TSS2_TCTI_LIBTPMS_CONTEXT *tcti_libtpms)
const char *names[] = {"libtpms.so", "libtpms.so.0"};

for (size_t i = 0; i < ARRAY_LEN(names); i++) {
LOG_ERROR("XXX 7 %s", names[i]);
tcti_libtpms->libtpms = dlopen(names[i], RTLD_LAZY | RTLD_LOCAL);
if (tcti_libtpms->libtpms != NULL) {
break;
Expand Down
1 change: 1 addition & 0 deletions src/tss2-tcti/tctildr-dl.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ handle_from_name(const char *file,
LOG_ERROR("TCTI name truncated in transform.");
return TSS2_TCTI_RC_BAD_VALUE;
}
LOG_ERROR("XXX 1 %s", file_xfrm);
*handle = dlopen(file_xfrm, RTLD_NOW);
if (*handle != NULL) {
return TSS2_RC_SUCCESS;
Expand Down
1 change: 1 addition & 0 deletions tss2-dlopen/tss2-dlopen-esys.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ init_dlhandle(void)
{
if (dlhandle)
return TSS2_RC_SUCCESS;
LOG_ERROR("XXX 2 %s", LIB);
dlhandle = dlopen(LIB, RTLD_NOW | RTLD_LOCAL);
if (!dlhandle) {
WARN("Library " LIB " not found: %s.", dlerror());
Expand Down
1 change: 1 addition & 0 deletions tss2-dlopen/tss2-dlopen-fapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ init_dlhandle(void)
{
if (dlhandle)
return TSS2_RC_SUCCESS;
LOG_ERROR("XXX 4 %s", LIB);
dlhandle = dlopen(LIB, RTLD_NOW | RTLD_LOCAL);
if (!dlhandle) {
WARN("Library " LIB " not found: %s.", dlerror());
Expand Down
1 change: 1 addition & 0 deletions tss2-dlopen/tss2-dlopen-mu.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ init_dlhandle(void)
{
if (dlhandle)
return TSS2_RC_SUCCESS;
LOG_ERROR("XXX 5 %s", LIB);
dlhandle = dlopen(LIB, RTLD_NOW | RTLD_LOCAL);
if (!dlhandle) {
WARN("Library " LIB " not found: %s.", dlerror());
Expand Down
1 change: 1 addition & 0 deletions tss2-dlopen/tss2-dlopen-rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ init_dlhandle(void)
{
if (dlhandle)
return TSS2_RC_SUCCESS;
LOG_ERROR("XXX 6 %s", LIB);
dlhandle = dlopen(LIB, RTLD_NOW | RTLD_LOCAL);
if (!dlhandle) {
WARN("Library " LIB " not found: %s.", dlerror());
Expand Down
1 change: 1 addition & 0 deletions tss2-dlopen/tss2-dlopen-tctildr.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ init_dlhandle(void)
{
if (dlhandle)
return TSS2_RC_SUCCESS;
LOG_ERROR("XXX 3 %s", LIB);
dlhandle = dlopen(LIB, RTLD_NOW | RTLD_LOCAL);
if (!dlhandle) {
WARN("Library " LIB " not found: %s.", dlerror());
Expand Down

0 comments on commit 3c83c25

Please sign in to comment.