pkg/ssh/gssapi.go
Method Krb5InitiatorClient.InitSecContext
has 66 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (k *Krb5InitiatorClient) InitSecContext(target string, token []byte, isGSSDelegCreds bool) ([]byte, bool, error) {
GSSAPIFlags := []int{
ContextFlagREADY,
gssapi.ContextFlagInteg,
gssapi.ContextFlagMutual,
Method Krb5InitiatorClient.InitSecContext
has 9 return statements (exceeds 4 allowed). Open
Open
func (k *Krb5InitiatorClient) InitSecContext(target string, token []byte, isGSSDelegCreds bool) ([]byte, bool, error) {
GSSAPIFlags := []int{
ContextFlagREADY,
gssapi.ContextFlagInteg,
gssapi.ContextFlagMutual,
Function NewKrb5InitiatorClientWithKeytab
has 6 return statements (exceeds 4 allowed). Open
Open
func NewKrb5InitiatorClientWithKeytab(username string, krb5Conf, keytabConf string) (kcl Krb5InitiatorClient, err error) {
c, err := config.Load(krb5Conf)
if err != nil {
return
}
Function NewKrb5InitiatorClientWithCache
has 6 return statements (exceeds 4 allowed). Open
Open
func NewKrb5InitiatorClientWithCache(krb5Conf, cacheFile string) (kcl Krb5InitiatorClient, err error) {
c, err := config.Load(krb5Conf)
if err != nil {
return
}