Client local handshake implementation.
(conn net.Conn, lisAddr string)
| 99 | |
| 100 | // Client local handshake implementation. |
| 101 | func clientLocalHandshake(conn net.Conn, lisAddr string) (credentials.AuthInfo, error) { |
| 102 | cred := NewCredentials() |
| 103 | ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout) |
| 104 | defer cancel() |
| 105 | |
| 106 | _, authInfo, err := cred.ClientHandshake(ctx, lisAddr, conn) |
| 107 | if err != nil { |
| 108 | return nil, err |
| 109 | } |
| 110 | return authInfo, nil |
| 111 | } |
| 112 | |
| 113 | // Client connects to a server with local credentials. |
| 114 | func clientHandle(hs func(net.Conn, string) (credentials.AuthInfo, error), network, lisAddr string) (credentials.AuthInfo, error) { |
nothing calls this directly
no test coverage detected