Skip to content

Commit f98ae4a

Browse files
committed
revoke: replace uses of deprecated io/ioutil
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 9d4d8c6 commit f98ae4a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

revoke/revoke.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"errors"
1414
"fmt"
1515
"io"
16-
"io/ioutil"
1716
"net/http"
1817
neturl "net/url"
1918
"sync"
@@ -318,21 +317,21 @@ func sendOCSPRequest(server string, req []byte, leaf, issuer *x509.Certificate)
318317
return ocsp.ParseResponseForCert(body, leaf, issuer)
319318
}
320319

321-
var crlRead = ioutil.ReadAll
320+
var crlRead = io.ReadAll
322321

323322
// SetCRLFetcher sets the function to use to read from the http response body
324323
func SetCRLFetcher(fn func(io.Reader) ([]byte, error)) {
325324
crlRead = fn
326325
}
327326

328-
var remoteRead = ioutil.ReadAll
327+
var remoteRead = io.ReadAll
329328

330329
// SetRemoteFetcher sets the function to use to read from the http response body
331330
func SetRemoteFetcher(fn func(io.Reader) ([]byte, error)) {
332331
remoteRead = fn
333332
}
334333

335-
var ocspRead = ioutil.ReadAll
334+
var ocspRead = io.ReadAll
336335

337336
// SetOCSPFetcher sets the function to use to read from the http response body
338337
func SetOCSPFetcher(fn func(io.Reader) ([]byte, error)) {

0 commit comments

Comments
 (0)