mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-10-31 11:22:28 +00:00 
			
		
		
		
	Mitigate error output from extraneous handles
Unrelated handles in use will no longer result in misleading console output.
This commit is contained in:
		| @@ -76,7 +76,7 @@ lasthdl="" | ||||
| for hdl in $(tpm2_getcap handles-persistent|awk '{print $2}'); do | ||||
|     tpm2_startauthsession --policy-session --session=session.ctx | ||||
|     tpm2_policypcr -Q --session=session.ctx --pcr-list="sha256:15" --policy=pcr15.sha256.policy | ||||
|     unsealeddata=$(tpm2_unseal --auth=session:session.ctx -Q -c $hdl) | ||||
|     unsealeddata=$(tpm2_unseal --auth=session:session.ctx -Q -c $hdl 2>/dev/null) | ||||
|     tpm2_flushcontext session.ctx | ||||
|     if [[ $unsealeddata == "CONFLUENT_APIKEY:"* ]]; then | ||||
|         confluent_apikey=${unsealeddata#CONFLUENT_APIKEY:} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user