From d3ecb0e029eaa992c1b44bb7c522cab0aeadfb23 Mon Sep 17 00:00:00 2001 From: chaosinthecrd Date: Tue, 23 Jan 2024 11:04:53 +0000 Subject: [PATCH] fixing function definitions Signed-off-by: chaosinthecrd --- cmd/verify.go | 4 ++-- go.mod | 4 +++- go.sum | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cmd/verify.go b/cmd/verify.go index a66a8121..a9b05f8d 100644 --- a/cmd/verify.go +++ b/cmd/verify.go @@ -161,8 +161,8 @@ func runVerify(ctx context.Context, vo options.VerifyOptions) error { verifiers, witness.VerifyWithSubjectDigests(subjects), witness.VerifyWithCollectionSource(collectionSource), - witness.VerifyWithPolicyTimestampServers(ptsv), - witness.VerifyWithPolicyCACerts(policyRoots), + witness.VerifyWithPolicyTimestampAuthorities(ptsv), + witness.VerifyWithPolicyCARoots(policyRoots), ) if err != nil { return fmt.Errorf("failed to verify policy: %w", err) diff --git a/go.mod b/go.mod index 465378af..abc0b988 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/in-toto/witness go 1.19 +replace github.com/in-toto/go-witness => ../go-witness + require ( github.com/in-toto/go-witness v0.2.0 github.com/sirupsen/logrus v1.9.3 @@ -32,7 +34,7 @@ require ( github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect github.com/agnivade/levenshtein v1.1.1 // indirect github.com/aws/aws-sdk-go v1.44.334 // indirect - github.com/cloudflare/circl v1.3.3 // indirect + github.com/cloudflare/circl v1.3.7 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect github.com/cyphar/filepath-securejoin v0.2.4 // indirect github.com/davecgh/go-spew v1.1.1 // indirect diff --git a/go.sum b/go.sum index 3a600731..d09a1fd3 100644 --- a/go.sum +++ b/go.sum @@ -68,8 +68,9 @@ github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWR github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs= github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= +github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= +github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=