Skip to content

Commit

Permalink
chore: go1.15 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lubux committed Dec 7, 2023
1 parent 4b5f129 commit 7e59772
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto/verify_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (vh *verifyHandle) verifyCleartext(cleartext []byte) (*VerifyCleartextResul
if len(bytes.TrimSpace(rest)) > 0 {
return nil, errors.New("gopenpgp: cleartext message has trailing text")
}
signature, err := io.ReadAll(block.ArmoredSignature.Body)
signature, err := ioutil.ReadAll(block.ArmoredSignature.Body)
if err != nil {
return nil, errors.Wrap(err, "gopenpgp: signature not parsable in cleartext")
}
Expand Down
2 changes: 1 addition & 1 deletion crypto/verify_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (msg *VerifyDataReader) VerifySignature() (result *VerifyResult, err error)
// ReadAll reads all plaintext data from the reader
// and returns it as a byte slice.
func (msg *VerifyDataReader) ReadAll() (plaintext []byte, err error) {
return io.ReadAll(msg)
return ioutil.ReadAll(msg)
}

// DiscardAll reads all data from the reader and discards it.
Expand Down

0 comments on commit 7e59772

Please sign in to comment.