File: remove_gocertifi

package info (click to toggle)
golang-github-github-smimesign 0.2.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 600 kB
  • sloc: makefile: 3
file content (47 lines) | stat: -rw-r--r-- 2,042 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Author: Leo Antunes <costela@debian.org>
Date:   Wed Nov 2 01:27:25 2022 +0100
Forwarded: not-needed

Index: golang-github-github-smimesign/command_verify.go
===================================================================
--- golang-github-github-smimesign.orig/command_verify.go
+++ golang-github-github-smimesign/command_verify.go
@@ -8,7 +8,6 @@ import (
 	"io"
 	"os"
 
-	"github.com/certifi/gocertifi"
 	cms "github.com/github/smimesign/ietf-cms"
 	"github.com/pkg/errors"
 )
@@ -169,7 +168,7 @@ func verifyOpts() x509.VerifyOptions {
 	if err != nil {
 		// SystemCertPool isn't implemented for Windows. fall back to mozilla trust
 		// store.
-		roots, err = gocertifi.CACerts()
+		roots, err = x509.SystemCertPool()
 		if err != nil {
 			// Fall back to an empty store. Verification will likely fail.
 			roots = x509.NewCertPool()
Index: golang-github-github-smimesign/go.mod
===================================================================
--- golang-github-github-smimesign.orig/go.mod
+++ golang-github-github-smimesign/go.mod
@@ -3,7 +3,6 @@ module github.com/github/smimesign
 go 1.12
 
 require (
-	github.com/certifi/gocertifi v0.0.0-20180118203423-deb3ae2ef261
 	github.com/davecgh/go-spew v1.1.1 // indirect
 	github.com/pborman/getopt v0.0.0-20180811024354-2b5b3bfb099b
 	github.com/pkg/errors v0.8.1
Index: golang-github-github-smimesign/go.sum
===================================================================
--- golang-github-github-smimesign.orig/go.sum
+++ golang-github-github-smimesign/go.sum
@@ -1,5 +1,3 @@
-github.com/certifi/gocertifi v0.0.0-20180118203423-deb3ae2ef261 h1:6/yVvBsKeAw05IUj4AzvrxaCnDjN4nUqKjW9+w5wixg=
-github.com/certifi/gocertifi v0.0.0-20180118203423-deb3ae2ef261/go.mod h1:GJKEexRPVJrBSOjoqN5VNOIKJ5Q3RViH6eu3puDRwx4=
 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
 github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=