mirror of
https://github.com/kairos-io/kcrypt-challenger.git
synced 2025-08-25 09:39:08 +00:00
Don't go frenzy when a TPM is not found. Just return.
Because there is no guarantee that a TPM will eventually be found. Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
parent
7a07d5c45b
commit
aa736211af
@ -105,10 +105,7 @@ func Start(ctx context.Context, kclient *kubernetes.Clientset, reconciler *contr
|
|||||||
if !found {
|
if !found {
|
||||||
fmt.Println("No TPM Hash found for", hashEncoded)
|
fmt.Println("No TPM Hash found for", hashEncoded)
|
||||||
conn.Close()
|
conn.Close()
|
||||||
// conn.Close()
|
return
|
||||||
// return
|
|
||||||
continue //will iterate until a TPM is available
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
secret, challenge, err := tpm.GenerateChallenge(ek, at)
|
secret, challenge, err := tpm.GenerateChallenge(ek, at)
|
||||||
|
Loading…
Reference in New Issue
Block a user