File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ import (
22
22
"fmt"
23
23
"math/big"
24
24
25
- "github.com/golang/glog"
26
25
pb "github.com/google/go-sev-guest/proto/sevsnp"
27
26
"github.com/pborman/uuid"
28
27
"golang.org/x/crypto/cryptobyte"
29
28
"golang.org/x/crypto/cryptobyte/asn1"
29
+ klog "k8s.io/klog/v2"
30
30
)
31
31
32
32
const (
@@ -676,15 +676,15 @@ func (c *CertTable) Proto() *pb.CertificateChain {
676
676
var err error
677
677
vcek , err = c .GetByGUIDString (VcekGUID )
678
678
if err != nil {
679
- glog .Warningf ("VCEK certificate not found in data pages: %v" , err )
679
+ klog .Warningf ("VCEK certificate not found in data pages: %v" , err )
680
680
}
681
681
ask , err = c .GetByGUIDString (AskGUID )
682
682
if err != nil {
683
- glog .Warningf ("ASK certificate not found in data pages: %v" , err )
683
+ klog .Warningf ("ASK certificate not found in data pages: %v" , err )
684
684
}
685
685
ark , err = c .GetByGUIDString (ArkGUID )
686
686
if err != nil {
687
- glog .Warningf ("ARK certificate not found in data pages: %v" , err )
687
+ klog .Warningf ("ARK certificate not found in data pages: %v" , err )
688
688
}
689
689
return & pb.CertificateChain {
690
690
VcekCert : vcek ,
Original file line number Diff line number Diff line change @@ -3,17 +3,18 @@ module github.com/google/go-sev-guest
3
3
go 1.19
4
4
5
5
require (
6
- github.com/golang/glog v1.0.0
7
6
github.com/google/go-cmp v0.5.7
8
7
github.com/pborman/uuid v1.2.0
9
8
github.com/pkg/errors v0.9.1
10
9
go.uber.org/multierr v1.8.0
11
10
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e
12
11
golang.org/x/sys v0.0.0-20220608164250-635b8c9b7f68
13
12
google.golang.org/protobuf v1.28.0
13
+ k8s.io/klog/v2 v2.80.1
14
14
)
15
15
16
16
require (
17
+ github.com/go-logr/logr v1.2.0 // indirect
17
18
github.com/google/uuid v1.0.0 // indirect
18
19
go.uber.org/atomic v1.7.0 // indirect
19
20
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect
Original file line number Diff line number Diff line change 1
1
github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
2
2
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
3
3
github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
4
- github.com/golang/glog v1.0 .0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ =
5
- github.com/golang/glog v1.0 .0 /go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4 =
4
+ github.com/go-logr/logr v1.2 .0 h1:QK40JKJyMdUDz+h+xvCsru/bJhvG0UxvePV0ufL/AcE =
5
+ github.com/go-logr/logr v1.2 .0 /go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A =
6
6
github.com/golang/protobuf v1.5.0 /go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk =
7
7
github.com/google/go-cmp v0.5.5 /go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE =
8
8
github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o =
@@ -36,3 +36,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8
36
36
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c /go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM =
37
37
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo =
38
38
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b /go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM =
39
+ k8s.io/klog/v2 v2.80.1 h1:atnLQ121W371wYYFawwYx1aEY2eUfs4l3J72wtgAwV4 =
40
+ k8s.io/klog/v2 v2.80.1 /go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0 =
Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ import (
28
28
"sync"
29
29
"time"
30
30
31
- "github.com/golang/glog"
32
31
"github.com/google/go-sev-guest/abi"
33
32
"github.com/google/go-sev-guest/kds"
34
33
spb "github.com/google/go-sev-guest/proto/sevsnp"
35
34
"github.com/pborman/uuid"
36
35
"github.com/pkg/errors"
37
36
"go.uber.org/multierr"
37
+ klog "k8s.io/klog/v2"
38
38
)
39
39
40
40
var (
@@ -112,7 +112,7 @@ func (r *AMDRootCerts) FromDER(ask []byte, ark []byte) error {
112
112
113
113
arkCert , err := x509 .ParseCertificate (ark )
114
114
if err != nil {
115
- glog .Errorf ("could not parse ARK certificate: %v" , err )
115
+ klog .Errorf ("could not parse ARK certificate: %v" , err )
116
116
}
117
117
r .ArkX509 = arkCert
118
118
return nil
You can’t perform that action at this time.
0 commit comments