tpm2-tools: Fix build
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 tpm2-tools: Fix build
Quoted 14 lines · Marcel Ziswiler
Fix the following build errors:
../sources/tpm2-tools-5.8/lib/object.c: In function 'PEM_read_bio_TSSPRIVKEY_OBJ':../sources/tpm2-tools-5.8/lib/object.c:28:1: error: implicit declaration of function 'ERR_raise' [-Wimplicit-function-declaration]
28 | IMPLEMENT_PEM_read_bio(TSSPRIVKEY_OBJ,TSSPRIVKEY_OBJ,TSSPRIVKEY_OBJ_PEM_STRING,| ^~~~~~~~~~~~~~~~~~~~~~ ../sources/tpm2-tools-5.8/lib/object.c:28:1: error: 'ERR_LIB_PEM' undeclared (first use in this function) 28 | IMPLEMENT_PEM_read_bio(TSSPRIVKEY_OBJ, TSSPRIVKEY_OBJ, TSSPRIVKEY_OBJ_PEM_STRING, | ^~~~~~~~~~~~~~~~~~~~~~ ../sources/tpm2-tools-5.8/lib/object.c:28:1: note: each undeclared identifier is reported only once for each function it appears in ../sources/tpm2-tools-5.8/lib/object.c:28:1: error: 'ERR_R_ASN1_LIB' undeclared (first use in this function) 28 | IMPLEMENT_PEM_read_bio(TSSPRIVKEY_OBJ, TSSPRIVKEY_OBJ, TSSPRIVKEY_OBJ_PEM_STRING, | ^~~~~~~~~~~~~~~~~~~~~~
Quoted 1 line
Signed-off-by Marcel Ziswiler <[email protected]>
Tested-by Emanuele Ghidoli <[email protected]>