-
Notifications
You must be signed in to change notification settings - Fork 11
/
no_gssapi.go
44 lines (34 loc) · 1.12 KB
/
no_gssapi.go
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
35
36
37
38
39
40
41
42
43
44
// +build !kerberos
package gosasl
// GSSAPIMechanism corresponds to GSSAPI SASL mechanism
type GSSAPIMechanism struct {
host string
}
const errorMsg string = "gosasl may have been installed without kerberos support please reinstall with `go get` using the flags `build kerberos`. Alternatively if `go run` is being ran it should be ran with `go run -tags kerberos ...` and the binary should have been build with `go build -tags kerberos ...`."
// NewGSSAPIMechanism returns a new GSSAPIMechanism
func NewGSSAPIMechanism(service string) (mechanism *GSSAPIMechanism, err error) {
panic(errorMsg)
}
func (m *GSSAPIMechanism) start() ([]byte, error) {
panic(errorMsg)
return nil, nil
}
func (m *GSSAPIMechanism) step(challenge []byte) ([]byte, error) {
panic(errorMsg)
return nil, nil
}
func (m GSSAPIMechanism) encode(outgoing []byte) ([]byte, error) {
panic(errorMsg)
return nil, nil
}
func (m GSSAPIMechanism) decode(incoming []byte) ([]byte, error) {
panic(errorMsg)
return nil, nil
}
func (m GSSAPIMechanism) dispose() {
panic(errorMsg)
}
func (m GSSAPIMechanism) getConfig() *MechanismConfig {
panic(errorMsg)
return nil
}