go-libp2p-core/sec/security.go

23 lines
945 B
Go
Raw Normal View History

2022-08-18 23:54:48 +08:00
// Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/core/sec.
//
// Package sec provides secure connection and transport interfaces for libp2p.
package sec
import (
2022-08-18 23:54:48 +08:00
"github.com/libp2p/go-libp2p/core/sec"
)
// SecureConn is an authenticated, encrypted connection.
2022-08-18 23:54:48 +08:00
// Deprecated: use github.com/libp2p/go-libp2p/core/sec.SecureConn instead
type SecureConn = sec.SecureConn
// A SecureTransport turns inbound and outbound unauthenticated,
// plain-text, native connections into authenticated, encrypted connections.
2022-08-18 23:54:48 +08:00
// Deprecated: use github.com/libp2p/go-libp2p/core/sec.SecureTransport instead
type SecureTransport = sec.SecureTransport
2021-02-14 20:15:11 +08:00
// A SecureMuxer is a wrapper around SecureTransport which can select security protocols
// and open outbound connections with simultaneous open.
2022-08-18 23:54:48 +08:00
// Deprecated: use github.com/libp2p/go-libp2p/core/sec.SecureMuxer instead
type SecureMuxer = sec.SecureMuxer