TUN-2547: TunnelRPC definitions for Authenticate flow

This commit is contained in:
Adam Chalmers
2019-11-18 10:28:18 -06:00
parent 6ea9b5c3ff
commit ca7fbf43da
7 changed files with 876 additions and 224 deletions

View File

@@ -327,6 +327,7 @@ type TunnelServer interface {
GetServerInfo(ctx context.Context) (*ServerInfo, error)
UnregisterTunnel(ctx context.Context, gracePeriodNanoSec int64) error
Connect(ctx context.Context, parameters *ConnectParameters) (ConnectResult, error)
Authenticate(ctx context.Context, originCert []byte, hostname string, options *RegistrationOptions) (*AuthenticateResponse, error)
}
func TunnelServer_ServerToClient(s TunnelServer) tunnelrpc.TunnelServer {