mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-27 19:40:29 +00:00
Revert "update jwt-go to v3.0.0-4-g01aeca5"
This commit is contained in:
3
vendor/github.com/dgrijalva/jwt-go/rsa_utils.go
generated
vendored
3
vendor/github.com/dgrijalva/jwt-go/rsa_utils.go
generated
vendored
@@ -10,7 +10,6 @@ import (
|
||||
var (
|
||||
ErrKeyMustBePEMEncoded = errors.New("Invalid Key: Key must be PEM encoded PKCS1 or PKCS8 private key")
|
||||
ErrNotRSAPrivateKey = errors.New("Key is not a valid RSA private key")
|
||||
ErrNotRSAPublicKey = errors.New("Key is not a valid RSA public key")
|
||||
)
|
||||
|
||||
// Parse PEM encoded PKCS1 or PKCS8 private key
|
||||
@@ -62,7 +61,7 @@ func ParseRSAPublicKeyFromPEM(key []byte) (*rsa.PublicKey, error) {
|
||||
var pkey *rsa.PublicKey
|
||||
var ok bool
|
||||
if pkey, ok = parsedKey.(*rsa.PublicKey); !ok {
|
||||
return nil, ErrNotRSAPublicKey
|
||||
return nil, ErrNotRSAPrivateKey
|
||||
}
|
||||
|
||||
return pkey, nil
|
||||
|
||||
Reference in New Issue
Block a user