From 57285764648185b13ac14034d8ec72917a123aef Mon Sep 17 00:00:00 2001 From: Simon Ott Date: Mon, 25 Mar 2024 10:46:09 +0100 Subject: [PATCH] treewide: fix spelling errors Signed-off-by: Simon Ott --- attestationreport/validationreport.go | 2 +- attestedhttp/client.go | 2 +- ima/ima.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/attestationreport/validationreport.go b/attestationreport/validationreport.go index 2483d557..d67f110f 100644 --- a/attestationreport/validationreport.go +++ b/attestationreport/validationreport.go @@ -781,7 +781,7 @@ func (r *VerificationResult) PrintErr() { } r.DevDescResult.RtmOsCompatibility.PrintErr("RTM OS compatibility") for _, a := range r.DevDescResult.OsAppsCompatibility { - a.PrintErr("OS App compatibiltiy check") + a.PrintErr("OS App compatibility check") } if !r.PolicySuccess { diff --git a/attestedhttp/client.go b/attestedhttp/client.go index 93d41747..ca73d684 100644 --- a/attestedhttp/client.go +++ b/attestedhttp/client.go @@ -178,7 +178,7 @@ func prepareClient(c *Client) error { MaxResponseHeaderBytes: c.Transport.MaxResponseHeaderBytes, WriteBufferSize: c.Transport.WriteBufferSize, ReadBufferSize: c.Transport.ReadBufferSize, - TLSClientConfig: c.Transport.TLSClientConfig, // Ignored becuase of custom DialContext + TLSClientConfig: c.Transport.TLSClientConfig, // Ignored because of custom DialContext IdleConnTimeout: c.Transport.IdleConnTimeout, // Fixed custom TLS dial function to enforce aHTTPS DialTLSContext: func(ctx context.Context, network, addr string) (net.Conn, error) { diff --git a/ima/ima.go b/ima/ima.go index 3fcabedc..ab2b57b0 100644 --- a/ima/ima.go +++ b/ima/ima.go @@ -125,7 +125,7 @@ func parseImaRuntimeDigests(data []byte) ([]ar.PcrEvent, error) { // Parse the template data to retrieve additional information _, eventName, err := parseTemplateData(&template) if err != nil { - log.Tracef("Failed to parse addtional template data: %v", err) + log.Tracef("Failed to parse additional template data: %v", err) } event := ar.PcrEvent{