blob: 27660af736571e35ab6e08b5d34059d9b9d152ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
//go:build !cgo
package sshd
import (
"errors"
"gitlab.com/gitlab-org/gitlab-shell/v14/internal/config"
"gitlab.com/gitlab-org/labkit/log"
)
func LoadGSSAPILib(c *config.GSSAPIConfig) error {
if c.Enabled {
log.New().Error("gssapi-with-mic disabled, built without CGO")
c.Enabled = false
}
return nil
}
type OSGSSAPIServer struct {
ServicePrincipalName string
}
func (*OSGSSAPIServer) AcceptSecContext([]byte) ([]byte, string, bool, error) {
return []byte{}, "", false, errors.New("gssapi is unsupported")
}
func (*OSGSSAPIServer) VerifyMIC([]byte, []byte) error {
return errors.New("gssapi is unsupported")
}
func (*OSGSSAPIServer) DeleteSecContext() error {
return errors.New("gssapi is unsupported")
}
|