aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/crypto/ssh/server.go
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2020-12-20 10:36:07 -0500
committerGitHub <noreply@github.com>2020-12-20 17:36:07 +0200
commite0a84d78809f4b19247ec7538e76f73b1f4c499f (patch)
treeea4f043a30f0b3bf2a1d0f2e665a3ca7c0d0acad /vendor/golang.org/x/crypto/ssh/server.go
parentf3c4baa84b8fa7afb3eab137b4c5e3544bd9e761 (diff)
downloadgitea-e0a84d78809f4b19247ec7538e76f73b1f4c499f.tar.gz
gitea-e0a84d78809f4b19247ec7538e76f73b1f4c499f.zip
dep: update crypto. info: https://golangtutorial.dev/news/fix-in-crypto-package/ (#14067)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'vendor/golang.org/x/crypto/ssh/server.go')
-rw-r--r--vendor/golang.org/x/crypto/ssh/server.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/golang.org/x/crypto/ssh/server.go b/vendor/golang.org/x/crypto/ssh/server.go
index 7d42a8c88d..b6911e8306 100644
--- a/vendor/golang.org/x/crypto/ssh/server.go
+++ b/vendor/golang.org/x/crypto/ssh/server.go
@@ -572,6 +572,10 @@ userAuthLoop:
perms = candidate.perms
}
case "gssapi-with-mic":
+ if config.GSSAPIWithMICConfig == nil {
+ authErr = errors.New("ssh: gssapi-with-mic auth not configured")
+ break
+ }
gssapiConfig := config.GSSAPIWithMICConfig
userAuthRequestGSSAPI, err := parseGSSAPIPayload(userAuthReq.Payload)
if err != nil {