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.
|
|
|
|
//
|
2019-05-23 01:31:11 +08:00
|
|
|
// 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"
|
2019-05-23 01:31:11 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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
|
2019-05-23 01:31:11 +08:00
|
|
|
|
|
|
|
// 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
|