/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/kex2/base.go
40 строк
1 KB
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package kex2 import ( "context" "errors" "net" "time" keybase1 "github.com/keybase/client/go/protocol/keybase1" "github.com/keybase/go-framed-msgpack-rpc/rpc" ) type LogContext interface { Debug(format string, args ...any) } type baseDevice struct { conn net.Conn //nolint xp rpc.Transporter //nolint deviceID DeviceID //nolint start chan struct{} canceled bool //nolint } // KexBaseArg are arguments common to both Provisioner and Provisionee type KexBaseArg struct { Ctx context.Context LogCtx LogContext Mr MessageRouter Secret Secret DeviceID keybase1.DeviceID // For now, this deviceID is different from the one in the transport SecretChannel <-chan Secret Timeout time.Duration } // ErrCanceled is returned if Kex is canceled by the caller via the Context argument var ErrCanceled = errors.New("kex canceled by caller")