From: Lennart Poettering Date: Tue, 16 Apr 2024 11:43:07 +0000 (+0200) Subject: tpm2-util: import two more symbols from tpm2-tss libraries X-Git-Tag: v256-rc1~127^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9892b7238b0fef076aaed3cf2cf55c886e71e4b8;p=thirdparty%2Fsystemd.git tpm2-util: import two more symbols from tpm2-tss libraries We want to make use of TPM_PolicySigned soon, hence import the necessary symbols from tpm2-tss. --- diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c index 42975cdb970..69f8ee7a7c1 100644 --- a/src/shared/tpm2-util.c +++ b/src/shared/tpm2-util.c @@ -65,6 +65,7 @@ static DLSYM_FUNCTION(Esys_PolicyAuthorizeNV); static DLSYM_FUNCTION(Esys_PolicyGetDigest); static DLSYM_FUNCTION(Esys_PolicyOR); static DLSYM_FUNCTION(Esys_PolicyPCR); +static DLSYM_FUNCTION(Esys_PolicySigned); static DLSYM_FUNCTION(Esys_ReadPublic); static DLSYM_FUNCTION(Esys_StartAuthSession); static DLSYM_FUNCTION(Esys_Startup); @@ -77,6 +78,7 @@ static DLSYM_FUNCTION(Esys_TR_GetTpmHandle); static DLSYM_FUNCTION(Esys_TR_Serialize); static DLSYM_FUNCTION(Esys_TR_SetAuth); static DLSYM_FUNCTION(Esys_TRSess_GetAttributes); +static DLSYM_FUNCTION(Esys_TRSess_GetNonceTPM); static DLSYM_FUNCTION(Esys_TRSess_SetAttributes); static DLSYM_FUNCTION(Esys_Unseal); static DLSYM_FUNCTION(Esys_VerifySignature); @@ -132,6 +134,7 @@ int dlopen_tpm2(void) { DLSYM_ARG(Esys_PolicyGetDigest), DLSYM_ARG(Esys_PolicyOR), DLSYM_ARG(Esys_PolicyPCR), + DLSYM_ARG(Esys_PolicySigned), DLSYM_ARG(Esys_ReadPublic), DLSYM_ARG(Esys_StartAuthSession), DLSYM_ARG(Esys_Startup), @@ -143,6 +146,7 @@ int dlopen_tpm2(void) { DLSYM_ARG(Esys_TR_Serialize), DLSYM_ARG(Esys_TR_SetAuth), DLSYM_ARG(Esys_TRSess_GetAttributes), + DLSYM_ARG(Esys_TRSess_GetNonceTPM), DLSYM_ARG(Esys_TRSess_SetAttributes), DLSYM_ARG(Esys_Unseal), DLSYM_ARG(Esys_VerifySignature));