summaryrefslogtreecommitdiff
path: root/src/verify.go
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2022-03-04 13:57:11 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-05 12:26:13 +0200
commitd356e7e4389ff62a14421cd62ee6d0b1b36fcbe1 (patch)
tree360ad612d3d9ce51331cf98e6642c4a7290ce2ab /src/verify.go
parent7c5e5081161572102a56fa8495208a9eabb0b224 (diff)
Format: Run gofmt
Signed-off-by: Jeroen Wijenbergh <jeroenwijenbergh@protonmail.com>
Diffstat (limited to 'src/verify.go')
-rw-r--r--src/verify.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/verify.go b/src/verify.go
index c9aa573..012e732 100644
--- a/src/verify.go
+++ b/src/verify.go
@@ -126,11 +126,11 @@ func verifyWithKeys(signatureFileContent string, signedJson []byte, expectedFile
// VerifyErrorCode Simplified error code for public interface.
type VerifyErrorCode = VPNErrorCode
type VerifyError = VPNError
+
// detailedVerifyErrorCode used for unit tests.
type detailedVerifyErrorCode = detailedVPNErrorCode
type detailedVerifyError = detailedVPNError
-
const (
ErrUnknownExpectedFileName VerifyErrorCode = iota + 1 // Unknown expected file name specified. The signature has not been verified.
ErrInvalidSignature // Signature is invalid (for the expected file type).
@@ -177,4 +177,3 @@ func (code detailedVerifyErrorCode) ToVerifyErrorCode() VerifyErrorCode {
}
panic("invalid detailedVerifyErrorCode")
}
-