Inconsistency between tpm documentation and headers

Solution Verified - Updated -

Issue

I'm trying to write some code that utilized TPM encryption. The man 3 tpmUnsealFile documentation says to:

#include <tpm_unseal/tpm_unseal.h>

and that the signature for tpmUnsealFile is:

`int tpmUnsealFile(char* file, char** data, int* size);

If you look at the header file, which is actually at /usr/include/tpm_tools/tpm_unseal.h, the signature for that function is:

int tpmUnsealFile(char*, unsigned char**, int*, BOOL)

Environment

  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In