Skip to content

Commit

Permalink
removing them again haha
Browse files Browse the repository at this point in the history
Signed-off-by: chaosinthecrd <[email protected]>
  • Loading branch information
ChaosInTheCRD committed Feb 15, 2024
1 parent 2d7d9f8 commit 758242e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cryptoutil/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,6 @@ func TryParsePEMBlock(block *pem.Block) (interface{}, error) {
return key, err
}

key, err = x509.ParsePKIXPublicKey(block.Bytes)
if err == nil {
return key, err
}

key, err = x509.ParsePKCS1PublicKey(block.Bytes)
if err == nil {
return key, err
}

return nil, ErrUnsupportedPEM{block.Type}
}

Expand Down

0 comments on commit 758242e

Please sign in to comment.