ax(ueps): remove banned fmt import, use errors.New
fmt.Errorf with static string replaced by errors.New. Removes banned import per AX RFC-025. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
a3d697b45e
commit
8a4010f4a5
1 changed files with 1 additions and 2 deletions
|
|
@ -7,7 +7,6 @@ import (
|
|||
"crypto/sha256"
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
)
|
||||
|
||||
|
|
@ -129,7 +128,7 @@ func ReadAndVerify(r *bufio.Reader, sharedSecret []byte) (*ParsedPacket, error)
|
|||
if !hmac.Equal(signature, expectedMAC) {
|
||||
// Log this. This is a Threat Event.
|
||||
// "Axiom Violation: Integrity Check Failed"
|
||||
return nil, fmt.Errorf("integrity violation: HMAC mismatch (ThreatScore +100)")
|
||||
return nil, errors.New("integrity violation: HMAC mismatch (ThreatScore +100)")
|
||||
}
|
||||
|
||||
return &ParsedPacket{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue