]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tpm2-util: rename tpmKey → primary
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Aug 2022 13:35:25 +0000 (15:35 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 12 Aug 2022 17:56:08 +0000 (02:56 +0900)
Let's use the nomenclature from the spec. "tpmKey" is just too genric.

src/shared/tpm2-util.c

index b13fe875d4ffaf888784479a4292e3aa6caf5b9f..0018c45aaa7d6e4abe5c31d0e037a95d81214c97 100644 (file)
@@ -598,7 +598,7 @@ static int tpm2_get_best_pcr_bank(
 
 static int tpm2_make_encryption_session(
                 ESYS_CONTEXT *c,
-                ESYS_TR tpmKey,
+                ESYS_TR primary,
                 ESYS_TR *ret_session) {
 
         static const TPMT_SYM_DEF symmetric = {
@@ -624,7 +624,7 @@ static int tpm2_make_encryption_session(
          * recover the salt, which is then used for key derivation. */
         rc = sym_Esys_StartAuthSession(
                         c,
-                        tpmKey,
+                        primary,
                         ESYS_TR_NONE,
                         ESYS_TR_NONE,
                         ESYS_TR_NONE,
@@ -659,7 +659,7 @@ static int tpm2_make_encryption_session(
 
 static int tpm2_make_pcr_session(
                 ESYS_CONTEXT *c,
-                ESYS_TR tpmKey,
+                ESYS_TR primary,
                 ESYS_TR parent_session,
                 uint32_t pcr_mask,
                 uint16_t pcr_bank, /* If UINT16_MAX, pick best bank automatically, otherwise specify bank explicitly. */
@@ -709,7 +709,7 @@ static int tpm2_make_pcr_session(
 
         rc = sym_Esys_StartAuthSession(
                         c,
-                        tpmKey,
+                        primary,
                         ESYS_TR_NONE,
                         parent_session,
                         ESYS_TR_NONE,