tpm2: edit tpm2_get_or_create_srk() comment

Adjust the comment to correct the return value, i.e. 1 for SRK created, 0 for
SRK already exists, <0 on error.
This commit is contained in:
Dan Streetman
2023-10-02 22:58:13 +01:00
committed by Luca Boccassi
parent 359d4b04e8
commit 3ed342562a
+2 -1
View File
@@ -1174,7 +1174,8 @@ static int tpm2_get_srk(
return tpm2_index_to_handle(c, TPM2_SRK_HANDLE, session, ret_public, ret_name, ret_qname, ret_handle);
}
/* Get the SRK, creating one if needed. Returns 0 on success, or < 0 on error. */
/* Get the SRK, creating one if needed. Returns 1 if a new SRK was created and persisted, 0 if an SRK already
* exists, or < 0 on error. */
int tpm2_get_or_create_srk(
Tpm2Context *c,
const Tpm2Handle *session,