(ai credentials.AuthInfo)
| 79 | type serverHandshake func(net.Conn) (credentials.AuthInfo, error) |
| 80 | |
| 81 | func getSecurityLevelFromAuthInfo(ai credentials.AuthInfo) credentials.SecurityLevel { |
| 82 | if c, ok := ai.(interface { |
| 83 | GetCommonAuthInfo() credentials.CommonAuthInfo |
| 84 | }); ok { |
| 85 | return c.GetCommonAuthInfo().SecurityLevel |
| 86 | } |
| 87 | return credentials.InvalidSecurityLevel |
| 88 | } |
| 89 | |
| 90 | // Server local handshake implementation. |
| 91 | func serverLocalHandshake(conn net.Conn) (credentials.AuthInfo, error) { |
no test coverage detected