Commit Graph

14 Commits

Author SHA1 Message Date
Marten Seemann
60a3d1748e
pass the peer ID to SecureInbound in the SecureTransport and SecureMuxer (#211)
The peer ID may be empty. This will be the common case. In that case,
connections from any peer are accepted.
2021-09-08 03:34:32 -07:00
Marten Seemann
e952b3702c
remove deprecated constructor for the insecure transport (#206) 2021-07-22 12:16:57 -07:00
Aarsh Shah
a7d9ced9f9
Secure Muxer Interface (#180) 2021-02-14 17:45:11 +05:30
Max Inden
a39b84ea2e
sec/insecure/insecure.go: Fix typo (#167)
`SecureInbound` secures an inbound and not an outbound connection.
2020-09-18 19:38:38 +02:00
Steven Allen
9df5e4fcaf fix: don't drop bytes in the insecure transport
gogo's varint reader buffers internally. If you use it then throw it away,
you'll drop data. This commit reverts to using msgio, but uses the varint
reader/writers instead.
2020-04-02 20:44:44 -07:00
Steven Allen
0ad6b1c741
Merge pull request #52 from mhchia/patch-1
fix: get `remoteID` from pb message in plaintext
2020-01-11 09:17:07 +01:00
Steven Allen
c465e0d6d3 fix(plaintext): regenerate protobuf code 2019-12-02 12:17:27 -05:00
Yusef Napora
f06e38f2e8
use varints for delimiting plaintext 2.0 msgs (#74)
* use varints for delimiting plaintext 2.0 msgs

* lower size limit, fix comment

* go mod tidy - rm unused msgio dependency
2019-11-12 11:52:55 -05:00
Cole Brown
d50ea9bc1f Ensure all tests pass without weak RSA key flag 2019-08-28 11:34:22 -04:00
Kevin Mai-Husan Chia
cd824a7045
Get remoteID from pb message 2019-08-23 12:31:04 +08:00
Yusef Napora
62b2c6c482
bring back plaintext 2.0.0 with new constructor (#42)
* bring back plaintext 2.0.0 with new constructor

* fix deprecation comment

* rm unused context argument

* only check remote id validity if we actually have keys

* bring back msgio & simultaneous read/write
2019-07-30 16:46:24 -04:00
Raúl Kripalani
8890e1b22b
Revert "update insecure transport to plaintext/2.0.0 (#37)" (#38)
This reverts commit b5729d89f3.
2019-07-15 00:10:22 +01:00
Yusef Napora
b5729d89f3
update insecure transport to plaintext/2.0.0 (#37)
* add plaintext/2.0.0 (with ugly protoc hack)

* gofmt

* gofmt (for real this time)

* add `go_package` option to proto files

* Revert "add `go_package` option to proto files"

5a543a79bd

* less hacky protobuf imports

* add doc comment for PublicKeyFromProto

* clean up handshake

* go fmt, lol

* use network.MessageSizeMax for ggio reader
2019-07-12 13:24:30 -04:00
Raúl Kripalani
6e566d10f4
Absorb go-libp2p abstractions and core types into this module (#1) 2019-05-22 18:31:11 +01:00