diff options
author | Cherrg <michael@gnehr.de> | 2019-07-06 17:16:43 +0200 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-07-06 16:16:43 +0100 |
commit | 86750325c76ec18c253fabd4aeed72caca0ee946 (patch) | |
tree | 96fcbcf078e9170c627f723ef6967c29b28f4b8d /vendor/github.com/dgrijalva/jwt-go/rsa.go | |
parent | 49ee9d27718c31d5ab4fe9543fefc90cd40d4405 (diff) | |
download | gitea-86750325c76ec18c253fabd4aeed72caca0ee946.tar.gz gitea-86750325c76ec18c253fabd4aeed72caca0ee946.zip |
workaround broken drone build (#7362)
* workaround broken swagger
only master brach is not working, latest release seems to work
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* make vendor
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* Don't export GO111MODULE
* set go-swagger to fixed release version
mentioned here: https://github.com/go-gitea/gitea/pull/7362#discussion_r300831537
Signed-off-by: Michael Gnehr <michael@gnehr.de>
Diffstat (limited to 'vendor/github.com/dgrijalva/jwt-go/rsa.go')
-rw-r--r-- | vendor/github.com/dgrijalva/jwt-go/rsa.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/github.com/dgrijalva/jwt-go/rsa.go b/vendor/github.com/dgrijalva/jwt-go/rsa.go index 0ae0b1984e..e4caf1ca4a 100644 --- a/vendor/github.com/dgrijalva/jwt-go/rsa.go +++ b/vendor/github.com/dgrijalva/jwt-go/rsa.go @@ -7,6 +7,7 @@ import ( ) // Implements the RSA family of signing methods signing methods +// Expects *rsa.PrivateKey for signing and *rsa.PublicKey for validation type SigningMethodRSA struct { Name string Hash crypto.Hash @@ -44,7 +45,7 @@ func (m *SigningMethodRSA) Alg() string { } // Implements the Verify method from SigningMethod -// For this signing method, must be an rsa.PublicKey structure. +// For this signing method, must be an *rsa.PublicKey structure. func (m *SigningMethodRSA) Verify(signingString, signature string, key interface{}) error { var err error @@ -73,7 +74,7 @@ func (m *SigningMethodRSA) Verify(signingString, signature string, key interface } // Implements the Sign method from SigningMethod -// For this signing method, must be an rsa.PrivateKey structure. +// For this signing method, must be an *rsa.PrivateKey structure. func (m *SigningMethodRSA) Sign(signingString string, key interface{}) (string, error) { var rsaKey *rsa.PrivateKey var ok bool |