[Incident]: Some users report they are unable to access the case portal. Please see this community notice for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can you create a binary that contacts both server and client trusted storage?

Can you create a binary that contacts both server and client trusted storage?

Summary

Can you create a binary that contacts both server and client trusted storage?

Question

I am currently writing a DLL that is supposed to loop through the local and server side trusted storages
to list the contents. It works fine to get the number of products in client trusted storage using
code like this:

if (!flxActCommonHandleOpen(&myServerHandle, FLX_ACT_APP, &myServerError))
{
printf("Failed to open server handle");
return false;
}

if (!flxActCommonLicSpcCreate(myServerHandle, &myServerlicense))
{
printf("Failed to create LicSpc\n");
return false;
}

if (!flxActCommonLicSpcPopulateFromTS(myServerlicense))
{
printf("Failed to populate from TS\n");
return false;
}

noOfProducts = flxActCommonLicSpcGetNumberProducts(myServerlicense);
printf("Found %i server products!\n", noOfProducts);

However, if I replace the FLX_ACT_APP with FLX_ACT_SVR to get data from server trusted storage,
the flxActCommonHandleOpen call fails with major error code 5005, minor error code 71040, and syserrno 23.
What could be the cause of this problem?

I would like to have one DLL that reads both from client side trusted storage and server side trusted storage.
Are there any known problems related to doing it this way?

Answer

You can't do this as a single DLL, as they can only be prepped for one type. So you'd need 2 DLLs, one for the server and one for the client. Then the main utility could make calls to either one.
Labels (1)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Dec 20, 2018 09:36 PM
Updated by: