Documentation
¶
Index ¶
Constants ¶
View Source
const CName = "common.net.secure"
Variables ¶
View Source
var ( // ProtoVersion 0 - first any-sync version with raw tcp connections // ProtoVersion 1 - version with yamux over tcp and quic // ProtoVersion 2 - acl compatible version // ProtoVersion 3 - acl with breaking changes / multiplayer // ProtoVersion 4 - new sync compatible version // ProtoVersion 5 - sync with no entry space // ProtoVersion 6 - sync with key value messages // ProtoVersion 7 - sync with new invites // ProtoVersion 8 - acl: transfer ownership feature, space header V1 // ProtoVersion 9 - nested derived objects, delete restrictions (bridge release v0.11.Y) // ProtoVersion 10 - reserved (not used, version alignment gap) // ProtoVersion 11 - reserved (not used, version alignment gap) // ProtoVersion 12 will align with v0.12.X ProtoVersion = uint32(9) )
Functions ¶
func CtxAllowAccountCheck ¶ added in v0.5.25
CtxAllowAccountCheck upgrades the context to allow identity check on handshake
func CtxIsAccountCheckAllowed ¶ added in v0.5.25
CtxIsAccountCheckAllowed checks if the "allowAccountCheck" flag is set to true in the provided context.
Types ¶
type SecureService ¶
type SecureService interface {
SecureOutbound(ctx context.Context, conn net.Conn) (cctx context.Context, err error)
HandshakeOutbound(ctx context.Context, conn io.ReadWriteCloser, peerId string) (cctx context.Context, err error)
SecureInbound(ctx context.Context, conn net.Conn) (cctx context.Context, err error)
HandshakeInbound(ctx context.Context, conn io.ReadWriteCloser, remotePeerId string) (cctx context.Context, err error)
TlsConfig() (*tls.Config, <-chan crypto.PubKey, error)
app.Component
}
func New ¶
func New() SecureService
Click to show internal directories.
Click to hide internal directories.