(conn net.Conn)
| 92 | } |
| 93 | |
| 94 | func (*localTC) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, error) { |
| 95 | secLevel, err := getSecurityLevel(conn.RemoteAddr().Network(), conn.RemoteAddr().String()) |
| 96 | if err != nil { |
| 97 | return nil, nil, err |
| 98 | } |
| 99 | return conn, info{credentials.CommonAuthInfo{SecurityLevel: secLevel}}, nil |
| 100 | } |
| 101 | |
| 102 | // NewCredentials returns a local credential implementing credentials.TransportCredentials. |
| 103 | func NewCredentials() credentials.TransportCredentials { |
nothing calls this directly
no test coverage detected