aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/x509/root_plan9.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/x509/root_plan9.go')
-rw-r--r--src/crypto/x509/root_plan9.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/crypto/x509/root_plan9.go b/src/crypto/x509/root_plan9.go
index 09f0e23033..2dc4aaf5d7 100644
--- a/src/crypto/x509/root_plan9.go
+++ b/src/crypto/x509/root_plan9.go
@@ -7,7 +7,6 @@
package x509
import (
- "io/ioutil"
"os"
)
@@ -24,7 +23,7 @@ func loadSystemRoots() (*CertPool, error) {
roots := NewCertPool()
var bestErr error
for _, file := range certFiles {
- data, err := ioutil.ReadFile(file)
+ data, err := os.ReadFile(file)
if err == nil {
roots.AppendCertsFromPEM(data)
return roots, nil