Search code examples
c++linuxtpmtss

How to solve TSS.MSR CPP build error in linux


trying to run the makefile in TSS.CPP directory (downloaded from https://github.com/microsoft/ms-tpm-20-ref/tree/main) gives me openssl/sm3.h error file not found

I already tried sudo apt install libssl-dev the error is still there

do i need to do something else? before running the makefile? I run this on Ubuntu


Solution

  • As it's written here https://github.com/microsoft/ms-tpm-20-ref/issues/50 sm3.h shouldn't be used directly. So, it's issue of code developers. Of cause you could copy the headers to /usr/include/openssl and may be your build would be succeed.

    PS sm3.h places in <openssl_source>/include/internals/. You could obtain sources by the command apt source openssl