Debian Codegraph @

debian/patches/0001-Replace-gocertifi-with-system-cert.patch

raw symbols SCIP
1 From: Shengjing Zhu <[email protected]>
2 Date: Sat, 17 Dec 2022 15:11:03 +0800
3 Subject: Replace gocertifi with system cert
4
5 ---
6 client.go | 4 ++--
7 1 file changed, 2 insertions(+), 2 deletions(-)
8
9 diff --git a/client.go b/client.go
10 index a2c9a6c..be8d7b0 100644
11 --- a/client.go
12 +++ b/client.go
13 @@ -6,6 +6,7 @@ import (
14 "compress/zlib"
15 "crypto/rand"
16 "crypto/tls"
17 + "crypto/x509"
18 "encoding/base64"
19 "encoding/hex"
20 "encoding/json"
21 @@ -24,7 +25,6 @@ import (
22 "sync"
23 "time"
24
25 - "github.com/certifi/gocertifi"
26 pkgErrors "github.com/pkg/errors"
27 )
28
29 @@ -338,7 +338,7 @@ var MaxQueueBuffer = 100
30
31 func newTransport() Transport {
32 t := &HTTPTransport{}
33 - rootCAs, err := gocertifi.CACerts()
34 + rootCAs, err := x509.SystemCertPool()
35 if err != nil {
36 log.Println("raven: failed to load root TLS certificates:", err)
37 } else {